Forum Discussion
adrianglendinning
Nimbostratus
Mar 26, 2024Converting A10 aFlex rules to F5 iRules
Hi, We are moving onto F5s and Im having an issue with an irule The A10 aflex rules are as follows A10 when HTTP_REQUEST { set uri [string tolower [HTTP::uri]] if { ($uri starts_with "<....
JRahm
Admin
Mar 26, 2024Hi adrianglendinning your class syntax is a little off. Try this:
when HTTP_REQUEST priority 500 {
if { [string tolower [HTTP::uri]] starts_with "/my/url/here" &&
![class match -- [IP::client_addr] equals Test_IPs1] &&
![class match -- [IP::client_addr] equals Test_IPs2] } {
drop
}
}
also you can combine those two classes into a single class to simplify the condition a little unless there's a good reason to keep them separate.
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
