Forum Discussion
F5_LB_Eng
Cirrostratus
Jan 22, 2014Need 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
jgranieri
Nimbostratus
Jan 22, 2014Here 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]" } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects