A big thanks to John Naughton from Riverbed Support for pointing me in the right direction to get this TrafficScript rule working as desired. The finished product was to add some additional parentheses (see in bold below) where needed. As a side note, Notepad++ helps with showing what is bracketed with parentheses. ############# # VARIABLES # ############# # Look up the URL path $path = http.getpath(); # Look up the remote client IP address $ip = request.getRemoteIP(); ############## # CONDITIONS # ############## if ((( !string.ipmaskmatch ( $ip, "10.10.10.10/32") && !string.ipmaskmatch( $ip, "10.64.0.0/16" ) && !string.ipmaskmatch( $ip, "10.16.10.0/24" ) && !string.ipmaskmatch( $ip, "10.16.20.0/24" ) && !string.ipmaskmatch( $ip, "10.16.30.0/24" )) && (string.startsWithI( $path, "/beef" ) || string.startsWithI( $path, "/chicken" ) || string.startsWithI( $path, "/pork" ) || string.startsWithI( $path, "/bacon" ) || string.startsWithI( $path, "/veggies" )))) # # ACTION # { http.redirect( " http://www.google.com " ); }
... View more