Forum Discussion
Domai
Altostratus
Jul 28, 2016iRule 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 corre...
Yann_Desmarest
Cirrus
Jul 28, 2016Hi,
Packet filter apply to vlans. It's more general than just blocking access to those 2 IPs on a single Virtual Server.
Your simple irule can do the trick without enabling Packet filter. You just have a small issue in the if condition :
when CLIENT_ACCEPTED {
if { !([IP::client_addr] eq "1.1.1.1" or [IP::client_addr] eq "2.2.2.2") } {
discard
} else {
log local0. "Allowed Traffic"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects