Forum Discussion
enlowb_27270
Nimbostratus
Mar 19, 2009Irule conversion help needed
I have an irule from version 4.x that I need help converting to 9.x.
Version 4.x irule below:
if (client_addr == 172.27.16.0 netmask 255.255.255.0) {
use pool PS_Portal
}
else { redirect to "https://%h/%u"}
So I need a rule that says if you are in the 172.27.16.0/24 network use pool PS_Poortal otherwise convert http to https with same host same uri. Thanks in advance for the help...
- The_Bhattman
Nimbostratus
I think this is what you are looking forwhen HTTP_REQUEST { if { [IP::addr [IP::client_addr]/24 equals 172.27.16.0 ] } { pool PS_Portal } else { HTTP::redirect "https://[HTTP::host][HTTP::uri]" } }
- enlowb_27270
Nimbostratus
Awesome... Thanks a bunch...
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