Fred_Zandvliet_
Oct 27, 2015Nimbostratus
Move Permanently execpt for different ip's
Hello,
I have this irule and it's working fine but now i have to add a new ipaddress in the range C.D.0.0/16. How can i do this?
when HTTP_REQUEST { if {not ([IP::addr [getfield [IP::client_addr] "%" 1] equals A.B.0.0/16]) } { set my_loc "https://[HTTP::host][HTTP::uri]" TCP::respond "HTTP/1.1 301 Moved Permanently\r\nLocation: $my_loc\r\nConnection: close\r\nContent-Length: 0\r\n\r\n" TCP::close
} }
Greetings, Fred