Domai
Jul 28, 2016Altostratus
iRule help to allow 2 ip's only
Hello I have a question regarding packet filtering and need help with simple iRule help I need to allow 2 ip's only to acesss a VIP.
If I use packet filtering it applies to all the VIP's correct? If yes what is the point using packet filtering?
iRule help I need is as below - (Will the below work) I need client with 1.1.1.1 and 2.2.2.2 to access the VIP.
when CLIENT_ACCEPTED {
if { ![IP::addr [IP::client_addr] equals 1.1.1.1] or [IP::client_addr] equals 2.2.2.2] }{ discard } else {
log local0. "Allowed Traffic" } }