Forum Discussion
Brad_Parker
Oct 27, 2015Cirrus
This should do the trick.
when HTTP_REQUEST {
if { not ([IP::addr [getfield [IP::client_addr] "%" 1] equals A.B.0.0/16] || [IP::addr [getfield [IP::client_addr] "%" 1] equals C.D.0.0/16]) } {
HTTP::respond 301 noserver Location "https://[HTTP::host][HTTP::uri]" Connection close
TCP::close
}
}