As you can see, it is inefficient, and it doesn’t account for all possibilities. Let me explain what I am aiming.
If an `HTTP_REQUEST` comes to “lists.example.com” (`[HTTP::host]`), and the URI (`[HTTP::uri]`) isn’t “/cgi-bin/wa?SUBEDIT1*” (that is, “cgi-bin/wa?SUBEDIT1”, and anything after it), redirect it unless it is from an IP on the “LISTSERV-TST_Allowed_IPs”, in which case, allow anything on the URI and continue to it.
@JRahm thank you, and very close! I want every client not on “LISTSERV-TST_Allowed_IPs” to be allowed to access line 2, but only line 2. Redirect is there is no match.
Allow access to everything matching “/cgi-bin/wa*” to every client on “LISTSERV-TST_Allowed_IPs” data group.
traffic policies are certainly a good option if you don’t already have iRules in place. Personally, if I have any iRules on a virtual, I’ll stick with iRules so I’m not splitting the logic into multiple sources of responsibility. But, if it can all be done in a policy (or multiple policies) that’s the better path.
I know this is out of the scope of my cry for help, but I don’t think I will be able to accomplish what I need with iRules. The page I am trying to “lock” posts to “/cgi-bin/wa” (a form, passing hidden inputs). That “/cgin-bin/wa” does everything.