Forum Discussion
enlowb_27270
Nimbostratus
Mar 17, 2009Need help with irule conversion 4x to 9x
I have a version 4.x irule and was wondering if someone could help convert it to version 9x. Thanks in advance...
Version 4.x irule below:
if (server_addr == one of snat_...
enlowb_27270
Nimbostratus
Mar 18, 2009I have version 4.x below:
if (client_addr == 172.27.16.0 netmask 255.255.255.0) {
use pool PS_Portal}
else {
redirect to "https://%h/%u"
}
Need help converting it to 9.x. I tried to do it see below but it doesn’t work... Any help would be appreciated... It just says if you are in the 172.27.16.0/24 network use pool PS_Portal anyone elce redirect to https same host same uri. Thanks in advance..
Version 9x below that doesnt work:
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 172.27.16.0/24] } {
pool PS_Portal }
else { HTTP::redirect "https://[HTTP::host][HTTP::uri]" }
}
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
