Forum Discussion

mart_58302's avatar
mart_58302
Icon for Nimbostratus rankNimbostratus
Sep 23, 2008

Destination based redirect irule, a'la cache.pac implementing?

Hello.

 

 

 

We are using F5 for proxy servers gateway, and everything works fine, but due routings in proxy's if the clients destination is local network, the proxy's can't connect to local network, so in web browsers are using cache.pac where is defined, that if destination is local network, traffic goes directly, not via F5. Example:

 

 

function FindProxyForURL(url, host) {

 

if(shExpMatch(host, "*[^0123456789.]*") == false)

 

if( isInNet(host, "127.0.0.0", "255.0.0.0")

 

|| isInNet(host, "172.17.0.0", "255.255.0.0")

 

|| isInNet(host, "172.18.0.0", "255.255.0.0")

 

 

)

 

return "DIRECT";

 

else

 

return "PROXY proxygateway.internal:8080; DIRECT";

 

)

 

 

But clients who can't read/use the cache.pac can't connect local network at all, so is it possible on the F5 with irule do same thing as with cache.pac, that if destination is local network F5 redirects all this traffic to the network directly and without any NAT/SNAT?

35 Replies