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
2 votes
1 answer
42 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 ...
  • 121
0 votes
0 answers
154 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 ...
0 votes
0 answers
1k 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 ...
0 votes
1 answer
498 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 ...
  • 124
0 votes
0 answers
2k 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 ...
1 vote
0 answers
277 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 ...
  • 1,622
0 votes
1 answer
4k 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 ...
3 votes
2 answers
2k 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:///...
  • 31
0 votes
0 answers
4k 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://...
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 ...
  • 49
0 votes
0 answers
7k 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 ...
  • 3,365
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 ...
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'...
  • 446
0 votes
1 answer
2k 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 ...
12 votes
3 answers
14k 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 ...
  • 305
1 vote
0 answers
608 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 ...
  • 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 ...
0 votes
1 answer
3k 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 ...
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 ...
0 votes
0 answers
864 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 "...
  • 1
12 votes
2 answers
16k 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 ...
  • 121
0 votes
1 answer
2k 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 ...
  • 842
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 ...
  • 405
0 votes
1 answer
243 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")) { ...
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 ...
  • 305
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 ...
  • 407
1 vote
0 answers
229 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 ...
  • 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 ...
  • 522
14 votes
3 answers
49k 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 ...
  • 511
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 ...
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 ...
  • 121
4 votes
1 answer
6k 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 ...
's 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 (...
  • 1,435
5 votes
2 answers
13k 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") || ...
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.
  • 1,861
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.
  • 1,861
2 votes
2 answers
3k 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) ...
  • 354
1 vote
3 answers
10k 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 ...
  • 897