Forum Discussion
Need Irule to block traffic from certain IPs
Hi All,
Could some help me to get a irule to block traffic from certain IPs for a URL.
Regards Prasanna AR
3 Replies
- jgranieri
Nimbostratus
Here is one example that only allows specific IP's/networks
when CLIENT_ACCEPTED { set clientip [IP::client_addr] if { not ( [class match [IP::client_addr] equals Customer_Allowed_IP] ) } { reject log local0. "Client Source IP: $clientip has been denied access to: [IP::local_addr]:[TCP::local_port]" } }
- Philippe_CLOUP
Employee
Hi prasanna, something like this ?
when HTTP_REQUEST { if {[IP::client_addr] eq "10.1.1.1"} { log locla0. "matching" } } - F5_LB_Eng
Cirrostratus
Thanks for your reply...
i want to redirect to these IP address to sorry page URL...
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com