Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Newbie here on this particular forum, but not new to Linux or the programs that go with it. I also have a healthy tenure of experience with operating systems and networking in general. But, I'm completely stuck on this.
I have a linux machine running Apache2 and Squid. Both work just fine, and I can easily pass browsing traffic through Squid with an iptables redirect (transparent mode). This machine is also my internal DNS server for "home.local".
Squid:
Runs on port 3127 for transparent proxy
Runs on port 3128 for standard proxy
DNS:
Record for wpad points to web server
Apache:
proxy.pac and wpad.dat files present, virtual server has ServerAlias for wpad
Logs show whichever file is being downloaded (code 200)
MIMETYPES FILE HAS
application/x-ns-proxy-autoconfig pac
application/x-ns-proxy-autoconfig dat
PROXY.PAC / WPAD.DAT
function FindProxyForURL(url, host) {
var proxy = "PROXY 10.10.10.10:3127; DIRECT";
var direct = "DIRECT";
return proxy;
}
I have also attempted to use port 3128 for the proxy in the files, but the results are the same.
If I configure the browser to use port 3128 directly, it works fine. I am not able to get the browser to recognize the proxy via Auto Discovery or an Autoconfiguration URL.
In linux I usually put in the proxy.pac file in browser network settings. Did you put it in or trying let it automatically install?
Linux has never fixed proxy.pac for global and never will. Trying to put it there will never work for most apps. It does seem to work for some browsers.
Right now you are just trying to get part of the deal to work correct? Then move on to full operation.
Can put proxy.pac file as a local file too if needed.
Predominantly, I want WPAD to auto-configure Mac, android, and i-Devices. These devices all leave the house network and return later on. And, I don't want to be futzing with the settings every time I pass one through the front door.
I detailed what I had done and how I observed the files being acquired - what sort of tests are you referring to, though?
I did take a proxy.pac that was working in IE, turned off the use of that file and set it to auto-discover. The same file was delivered to the browser, but the browser did not use the proxy.
Define correctly. What I ultimately want is to be able to use auto discovery.
Focus testing on my Apple devices.
Mac
Set the proxy to automatically discover as a system level setting. Firefox sends all traffic through the proxy, even when attempting to exclude Amazon.com. Safari sends nothing through the proxy. Set Firefox to auto discover (system not discovering) and nothing is routed to the proxy.
iPad
Set network to auto discover, Safari routes nothing to the proxy.
I've verified that the proxy.pac file is being downloaded.
Instead of using http some address for proxy.pac. Make it some local location. It should work. Example of windows might be (and I forget it now) something like c:\someplace\proxy.pac as I recall. That would be the location of your proxy file and what you'd point to in browser to test. Then if works try to get wpad file to assign.
If I load the file as a proxy.pac in Firefox, it doesn't work. The exact same file queried from Mac OSX as proxy.pac via DHCP/DNS will cause Firefox to function properly, but Safari will not. And it seems that it isn't just Safari on the Mac - the iPad doesn't work properly either even though the OS does pick up the file.
There's no rhyme or reason to this that I can find.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.