HI, I'm trying to configure a trafficscript rule on our SteelApp VTM. I want to allow BOTH a specified IP address AND an IP range to reach blah.com, and for the following suffixes to be redirected to blah.com/RDWeb: /rpc, /remoteDesktopGateway, Here is my rule: $allowedIPs = [ "123.123.0.1", "109.233.52.0/24" ] ; $ip = request.getremoteip ( ) ; $drop = false ; $arraylen = array.length ( $allowedIPs ) ; $url = http.getHeader ( "Host" ) ; $path = http.getpath ( ) ; for ( $i = 0 ; $i < $arraylen ; $i ++ ) { log.info ( "IP= " . $ip . "AllowedIP= " . $allowedIPs [ $i ] . "" ) ; if ( string.startsWithI ( $url , " blah.com " ) ) { if ( string.containsI ( $path , "/RDWeb" ) || string.containsI ( $path , "/rpc" ) || string.containsI ( $path , "/remoteDesktopGateway" ) ) { if ( $ip == $allowedIPs [ $i ] ) { pool.use ( "Blah_RDS" ) ; break ; } else { $drop = true ; } } else { http.redirect ( "https://blah.com/rdweb" ) ; } } } if ( $drop == true ) { connection.discard ( ) ; } --- This rule compiles fine but doesn't work. Any ideas?
... View more