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...
ekaleido
Cirrus
Jul 28, 2016Create an IP datagroup containing the IPs you want to allow, then try this...
when CLIENT_ACCEPTED {
set yesno [class match [IP::client_addr] equals "allowed_ip"]
switch $yesno {
"" { discard }
default { log local0. "Accepted client from [IP::client_addr" }
}
}
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