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:

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 } }