Forum Discussion

raphael_norber1's avatar
raphael_norber1
Icon for Nimbostratus rankNimbostratus
Sep 15, 2006

redirect on IP addy

im trying to do a simple rule. i want to specify multiple ip addresses/ranges that will goto a pool, and everyone else redirected to a different site. im trying to use "or" to add multiple ranges, but my syntax is messed up somewhere. below is my rule. ultimately, it would be nice to create a list of some kind and be able to add/remove ips from the list rather than joining a bunch with or's. much appreciate any help:

 

 

when HTTP_REQUEST {

 

 

if { (not [IP::addr [IP::client_addr] equals 10.2.1.0/255.255.255.0]) or

 

(not [IP::addr [IP::client_addr] equals 10.1.6.0/255.255.255.0]) } {

 

 

HTTP::redirect "http://sitedown.website.com/sitedown.html"

 

} else {

 

pool www

 

}

 

}

3 Replies

No RepliesBe the first to reply

Recent Discussions