Jump to content

Recommended Posts

Posted
Can someone help me make a PAC file? I want to setup Lightspeed Rocket proxy and believe I’ll need this if I don’t want the filter ‘inline’.
Posted

Thank you so much! Sorry for sounding stupid, how would I reverse this?

 

So I want the 'if (dnsDomainIs(host, "example.com"))' bit to be any website, and then the 'else' bit to be 10.* - our internal addresses.

 

 

 

function FindProxyForURL(url, host) { if (dnsDomainIs(host, "example.com")) { return "PROXY 192.168.1.1:8080"; } else { return "DIRECT"; }}

Posted

 

 

 

function FindProxyForURL(url, host) { if (dnsDomainIs(host, "example.com")) { return "PROXY 192.168.1.1:8080"; } else { return "DIRECT"; }}

 

if (isInNet(host, "10.*", "255.240.0.0")) {return "DIRECT";}

else { return "PROXY 192.168.1.1:8080"; }

 

Change the subnet mask to suit. You’ll need to nest this as appropriate.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...