Forum Discussion
Hey thanks for the quick response. Here's the irule and data groups (abbreviated).
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals allowedip]} {
} elseif { [class match [IP::client_addr] equals blockedsrcaddress]} {
drop
} elseif { [class match [whereis [IP::client_addr] country] equals blockedcountries]} {
drop
} elseif { [class match [IP::local_addr] equals blockeddstaddress]} {
drop
} else {
} }
ltm data-group internal allowedip { records { 12.129.. { data FrontBridge_9 } 12.129.. { data FrontBridge_3 }
ltm data-group internal blockedcountries { records { AR { data Argentina } AT { data Austria } BG {
ltm data-group internal blockeddstaddress { records { 87.255.51.. { data Netherlands_Virus_Communications }
ltm data-group internal blockedsrcaddress { records { 198.20.. { data Shodan_CIDR } } type ip }