N_Int_282362
Feb 15, 2018Nimbostratus
IPBlacklist check with iRules
I have list of IP addresses in Data group called "BlackListIP" and it defined as "String" type instead of "Address" like
"name": "1.1.1.1, 2.2.2.2, 3.3.3.3, 4.4.4.4, 5.5.5.5, 6.6.6.6"
And I have iRule that use for lookup the Client IP address and need to be block if it matched IP address list above
when CLIENT_ACCEPTED { if { [class match [IP::client_addr] contains BlackListIP ] } { reject } }
Let say, right now my client_addr equal to 1.1.1.1, Logically it should work, but after test it out this particular iRule doesn't work as expect. Anything I missed here. Please shed some light.
Thanks,