Forum Discussion
enlowb_27270
Mar 18, 2009Nimbostratus
I 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]" }
}