slesh_219299
Feb 23, 2017Cirrus
irule allow only one IP to VIP
Hi guys I need to allow only one ip to vip and will this help ?
when CLIENT_ACCEPTED {
if { ( [IP::addr [IP::client_addr] equals "11.22.33.44"] )
} then {
Allow
} else {
DROP
reject
}
}
Ok I had to go with data group
when CLIENT_ACCEPTED { Check the data group if { ! ([class match [IP::client_addr] equals allow_2_IP ]) } { Not valid client drop }
}
works fine but if someone have irule which allow only 2 ips it would be great also 🙂