Forum Discussion

Geethanjali_321's avatar
Geethanjali_321
Icon for Nimbostratus rankNimbostratus
Oct 25, 2012

Packet filter does not work

HI All,

I have implemented a packet filter to block access to a VS from all IP addresses except one. I tried the same through an iRule. But it did not seem to work. Here is the iRule:

when CLIENT_ACCEPTED {
 if { [IP::addr [IP::client_addr] equals x.x.x.x] } {
 drop
 return
}
}

When I tried doing the same with packet filter, by creating a rule which says,

"action:accept" for "source ip:x.x.x.x" and "destination ip: (the ip for that virtual service)".

This should allow only this x.x.x.x ip to access the virtual service. But, all the IPs are having access to the virtual service and looks like the rule is not implemented correctly. Can someone help me with this?

Thanks and Regards,

Geethanjali

15 Replies