Forum Discussion
Leonjsr_323498
Nimbostratus
Oct 28, 2017Help with irule ip whitelist for uri
Hi, when I use this config, I get two errors associated with line 6,
error: [undefined procedure: and][and]
error: [undefined procedure: not][not]
`
I am trying to allow anyone access to m...
Jad_Tabbara__J1
Cirrostratus
Oct 28, 2017Hello Leon,
Please try the following irule, I've corrected the syntax.
when HTTP_REQUEST {
set host [string tolower [HTTP::header "Host"]]
if { $host starts_with "mous.123.com" } {
snatpool mous_SNAT
node 172.21.1.157 80
} elseif { $host starts_with "mous-anet.123.com" } {
if { ([string tolower [HTTP::uri]] equals "/cgi-bin/dfkiosk.ph") and not ([class match [IP::client_addr] equals "mouse-anetDEV-Restricted"])} {
drop
} else {
snatpool mous_SNAT
node 172.21.1.161 80
}
} elseif { $host starts_with "mousrf-anet.123.com" } {
snatpool mous_SNAT
node 172.21.1.159 80
}
}
Waiting for you feedback
Regards
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
