Forum Discussion
KJ_50941
Nimbostratus
Jan 11, 2018Need to allow certain IP address to F5 VIP.
I need to restric F5 VIP to allow certain IP addresses.It appear I need to create datagroup ( allowed-nets) from F5 GUi with allow list of ip addresses. does below iRule works as is?
when CLIEN...
WithF5
Nimbostratus
Jan 11, 2018Hi mate,
you need to ident your algorithm if you want it to work.
when CLIENT_ACCEPTED {
if { not [([IP::client_addr] equals allowed-nets)] }
{
log local0. "[IP::client_addr] is not permitted to site xxxx"
reject
}
}
Also, I don't think that networks defined in the data group will work... you need to use the full IP /32 (ex. 192.168.1.1, 192.168.1.2 ... ). You can do it in the CLI to make it faster.
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