benward1 Posted March 25, 2023 Posted March 25, 2023 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’.
dmj Posted March 26, 2023 Posted March 26, 2023 There's some example configurations here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_PAC_file https://en.wikipedia.org/wiki/Proxy_auto-config
benward1 Posted March 26, 2023 Author Posted March 26, 2023 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"; }}
3s-gtech Posted March 26, 2023 Posted March 26, 2023 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.
ibpalle Posted March 27, 2023 Posted March 27, 2023 A great resource for PAC file creation is this: https://findproxyforurl.com/
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now