Questions tagged [pac]

A proxy auto-config (PAC) file defines how web browsers and other user agents can automatically choose the appropriate proxy server for fetching a given URL.

Filter by
Sorted by
Tagged with
0 votes
0 answers
220 views

Internet application not honouring Proxy PAC file

We have an app (excel add-in) that is configured to get it's proxy settings from IE (WinInet). This is how most modern apps work these days, they just hook into your system/IE proxy settings and use ...
Mucker's user avatar
  • 367
2 votes
1 answer
2k views

Proxy not working via (.PAC file) for specific app

I'm having some strange problem, In company we moved to new proxy. And we applied it via .PAC file to user machines. Internet working fine, but MS Teams not working. But when I set manually on PC ...
Shukurillo Baikhanov's user avatar
0 votes
0 answers
363 views

In ubuntu Set Manual and PAC file both at the same time

I have a requirement, where a ubuntu user will set the manual proxy in the system, and at the same time to drive the traffic according to my software I need to set a PAC file for specific traffic. I ...
VikasPushkar's user avatar
1 vote
0 answers
3k views

How do browsers cache PAC files?

How do browsers and other applications cache PAC files? If I'm serving a PAC file and update the configuration (e.g. add or remove a domain that should go through the proxy), when will different ...
ykaganovich's user avatar
0 votes
1 answer
805 views

PAC File Not Functioning After Modification

I have this weird behavior from a PAC File. I have an existing PAC File that is working fine. Due to recent migrations, I had to start modifying the PAC file, and exclude some IPs and URLs, mainly for ...
sikas's user avatar
  • 126
0 votes
0 answers
4k views

How to get proxy from PAC file using powershell?

My company administrators have setup our machines to get proxy settings from a .pac file. The .pac file is complex and the proxy to use for a URL changes occasionally. I often need to write ...
Martin Brown's user avatar
2 votes
0 answers
559 views

How to convert a pac script into Linux-style proxy environment variables?

On Windows machines (and networks with a lot of Windows machines), the use of Proxy Autoconfiguration scripts is rather ubiquitous for reasons; on Linux distributions (e.g. CentOS), it is more common ...
einpoklum's user avatar
  • 1,722
0 votes
1 answer
6k views

Configure Squid Proxy with PAC File

So i have squid proxy server installed and running on my ec2 instance. my task is to have any pc client connected to the proxy only the proxy when accessing certain sites and will use regular wifi ...
Ghaith Haddad's user avatar
4 votes
2 answers
4k views

Why does "file:///Users/username/Library/proxy.pac" not work in MacOS?

I tested setting up a proxy.pac file via a web server: networksetup -setautoproxyurl "Wi-Fi" "http://localhost/proxy.pac" and via a file directly: networksetup -setautoproxyurl "Wi-Fi" "file:///...
Peter's user avatar
  • 41
0 votes
0 answers
5k views

how to setup openVPN client proxy using PAC (proxy auto-config file)?

I am using an openVPN client to connect to a VPN. But the network that I am currently in sits behind a proxy and it manages proxy via PAC files (Proxy Auto-Config files). I am looking at https://...
g.revolution's user avatar
4 votes
1 answer
2k views

Internet / proxy problems Internet Explorer (PAC file)

we have some internet/proxy problems in our network since 2 weeks. Users are getting sporadic errors "This page can't be displayed" in Internet Explorer 11 when trying to access websites - but not the ...
Niko21's user avatar
  • 49
0 votes
0 answers
8k views

Which options are required to send a PAC file URL via DHCP to Android devices?

I would like the Android devices which connect to WiFi networks to be automatically configured to proxy their HTTP(S) traffic through a web proxy. There is a PAC file available though an URL, which ...
WoJ's user avatar
  • 3,657
5 votes
1 answer
2k views

PAC files linking to other PAC files?

If I am in one autoproxy PAC file and returning the "PROXY xxx.com:80" option, can that link be to another PAC file? Do the url and host parameters for FindProxyForURL(url, host) stay the same or is ...
beauXjames's user avatar
0 votes
1 answer
3k views

Can squid block an access to the specific IP-address which is resolved with a domain name?

I have a .pac file like below. if (dnsDomainIs(host, ".example.com")) { hostip = dnsResolve(host); if (isInNet(hostip, "202.0.0.0", "255.255.255.0")) { return "DIRECT"; } } Now I'...
kujiy's user avatar
  • 476
0 votes
1 answer
3k views

How to properly configure PAC file?

I have a squid + diladele proxy box in my network. I have setup a PAC file that should do the following: 1)If the ip address of the client belongs to the current network (192.168.0.0/24) and tries to ...
Aaron Ullal's user avatar
12 votes
4 answers
17k views

How to debug pac file in chrome without alert function?

I recently experienced a problem with a new pac file with chrome, (same pac file with IE and Firefox works). I supposed that my problem is due to myIpAddress() function, see this post, which do not ...
Antoine's user avatar
  • 305
1 vote
0 answers
650 views

Proxy PAC not working

I have an insanely simple proxy pac file i'm trying to get working.. it looks like this: function FindProxyForURL(url, host) { return "PROXY 66.232.xxx.xxx:808"; } FYI, I xxx'd out the IP to ...
99823's user avatar
  • 133
0 votes
3 answers
6k views

Exclude URL with non-stanard port from Proxy via PAC/WPAD file

I'm running a Squid proxy and want to exclude a certain web address that is accessed over a non-standard port from going through the proxy, rather than open the port in an ACL within squid.conf (seems ...
James White's user avatar
0 votes
1 answer
4k views

bind squid and apache for pac file

EDIT It was some interne rules on FW, sorry for the inconvenience and thanks for your advices I have a server with Squid (2.7.STABLE9) on a Debian (Wheezy 7.1) and I add an Apache2 (2.2.22) for send ...
user63946's user avatar
1 vote
1 answer
3k views

Proxy - Pac file - ipv6 with myAdresse()?

I'm tryig to make a proxy pac file for my Squid. I suppose to change redirection if the user is in my network or if he is at home for example, and I try to make it whith the myAdress() function. I ...
user63946's user avatar
0 votes
0 answers
883 views

Internet Explorer proxy pac files

We have a simple pac file used for staff in work and at home: function FindProxyForURL(url, host) { /* Exclude "Portico" URL */ if (shExpMatch(url, "*google.com*")) { return "...
MPB's user avatar
  • 1
12 votes
2 answers
18k views

How can I debug PAC (proxy auto config) on Windows 8.1 (IE11 and Modern UI)?

On older systems such as Windows 7 + IE10, calling "alert()" in the PAC file would cause a dialog being shown. However, with Windows 8.1 no dialogs are displayed even if IE11 seems to be making use ...
Jackie Ku's user avatar
  • 121
0 votes
1 answer
3k views

Proxy Auto Config (PAC) dnsResolve() function return values

Good Morning! I have a rather simple question. Does anyone have a function reference for the dnsResolve() function in Proxy Auto Configuration scripts? Or for that matter, a function reference for ...
Neil's user avatar
  • 852
3 votes
1 answer
3k views

Automatic Proxy Configuration Script - Lab Setup Process

I have a requirement to set a test machine which utilises automatic proxy configuration using a WPAD.DAT file. This is to replicate a customer environment (that we can't use for testing) so we may ...
Damo's user avatar
  • 415
0 votes
1 answer
316 views

PAC file return statement with "+" sign

I saw a PAC file written like this toky1 = "PROXY webproxy2.mycompany.com:8080; "; dirext = "PROXY webproxy1.mycompany.com:8080; "; if (isInNet(myIpAddress(), "10.1.33.0", "255.255.255.0")) { ...
joeloca's user avatar
1 vote
1 answer
3k views

Filter HTTPS URLs with non-transparent proxy

I have set up a Squid v.3.1 + Squidguard, the proxy is configured on each browser via a proxy.pac file. Now if an user goes to a blocked site with HTTP (e.g. http://www.facebook.com) the Url filter ...
J.B.'s user avatar
  • 325
1 vote
1 answer
1k views

How to override the network DHCP Server settings to be specific to my own .conf file?

Basically, I have want to test out WPAD(Web Proxy Autodiscovery Protocol ) , PAC. But I would like to do it without touching the Network DHCP server. So, can you suggest a way in which I can achieve ...
rahulg's user avatar
  • 417
1 vote
0 answers
235 views

proxy auto configuration file requests

What might be causing bursts of 10 - 20 proxy auto config file requests? I am seeing bursts of requests for our PAC file, which is hosted on an internal Apache server. Some bursts are up to 20 per ...
Pete's user avatar
  • 271
1 vote
1 answer
2k views

ISA 2006 switch to kerberos causes authentication problems for some users

In our large corporate environment we have 4 ISA 2006 servers set up. The users (WinXP IE8) are configured with an automatic proxy configuration script. Recently, the PAC was modified to return FQDN ...
Ed Manet's user avatar
  • 532
15 votes
3 answers
55k views

How to automatically configure username/password with proxy PAC file?

I have rather complex proxy setup and one of those proxies requires username/password. Is there a way to configure the username/password so that users don't have to enter them when traffic is ...
Raynet's user avatar
  • 521
1 vote
2 answers
4k views

Proxy Auto config (PAC) exception

I want to configure a proxy pac file that has the same list of exception as the ones I have on IE -> Internet Options -> Connections -> LAN settings -> Advanced and after I can see the exception in ...
Artur Carvalho's user avatar
1 vote
1 answer
2k views

.pac file and Firefox's network.proxy.socks_remote_dns setting

Does anyone know if Firefox's setting network.proxy.socks_remote_dns would apply to a SOCKS proxy set by a .pac file or only when manually entered in network options? I ask because I use a dynamic ssh ...
emergence's user avatar
  • 121
4 votes
1 answer
7k views

using IPv6 addresses in proxy.pac

When creating PAC files, one can use functions like isInNet, for example if (isInNet(host, "10.9.9.9", "255.0.255.0")) return "DIRECT"; However, it doesn't make sense to use IP and wildcard/mask when ...
user avatar
0 votes
3 answers
3k views

proxy.pac file performance optimization

I reroute certain websites through a proxy with a proxy.pac file. It basically looks like this: if (shExpMatch(host, "www.youtube.com")) { return "PROXY proxy.domain.tld:8080; DIRECT" } if (...
Tuinslak's user avatar
  • 1,475
5 votes
2 answers
14k views

dnsResolve and isInNet functions Problem

We have a Proxy.pac file: function FindProxyForURL(url, host) { if (dnsResolve("ProxyServer") == "10.1.1.116") if (dnsDomainLevels(host) == 0 || isInNet(host, "10.0.0.0","255.0.0.0") || ...
carloslone's user avatar
2 votes
1 answer
1k views

Prevent MSIE 8 from reloading PAC file

How do I prevent Internet Explorer from reloading the PAC file? I need to stop IE8 from reloading the PAC file on every request the browser makes. I only require it to load once per session.
darkAsPitch's user avatar
  • 1,941
3 votes
1 answer
3k views

How Do I Prevent MSIE 8 From Reloading PAC File?

Exactly what the title says. I need to stop IE 8 from reloading the PAC file on every request the browser makes. I only require it to load once per session.
darkAsPitch's user avatar
  • 1,941
2 votes
2 answers
4k views

Global (computer-wide) proxy settings from pac file

Our company just changed proxy settings from using one proxy server to a bunch and inserted pac files to IE settings. The problem is, any software that doesn't allow setting proxy script (pac file) ...
Andrey's user avatar
  • 354
1 vote
3 answers
12k views

Proxy.pac file - accessing a site on non standard port to be sent direct

We are about to start using a proxy.pac file in our environment. It will be a very simple file with most traffic going to the proxy but a handfull of sites going direct (where they are hosted ...
Kip's user avatar
  • 897