Forum Discussion
Multiple Source IP address restriction using irule
Hi ,
We have one test site which will go online soon and need them to be publicly accessible for some external testers. But we don't want the entire world to see the sites until they're ready for launch. Is there any way to restrict access to the sites via multiple source IP address using iRules?
Yes, that is possible. You can find a good example here:
https://devcentral.f5.com/questions/restrict-access-to-virtual-servers-based-on-ip-address
- F5_Jeff
Cirrus
you can create a data group (list of allowed IP) then apply an irule something like this
when CLIENT_ACCEPTED { if { not ( [class match [IP::client_addr] equals ] ) } { reject } }
Recent Discussions
Related Content
* 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