ChadiABN_250580
Feb 21, 2016Nimbostratus
Blocking multiple IPs with iRules
Hi,
I am trying to block multiple IP's with iRules but unable to do so.
Currently using the below command, but everytime there is a new ip, I need to create an iRule for that & bind it to the virtual server.
when CLIENT_ACCEPTED { if { [IP::addr [IP::client_addr] equals 1.1.1.1/32] } { log local0. "Blocking [IP::client_addr]" reject } }
Is there a way to create a group where all IP addresses can be added & automatically blocked? or what is the best way of doing so? probably a nested If statement.
Thanks for the help. Chadi