I have set up the squid proxy server with dansguardian following
It is working correctly except for one detail.
I configured the proxy server to serve the wpad.dat file with apache. It serves the page fine when you browse to 192.168.2.138/wpad.dat
(Manually setting the proxy in the browser works perfectly btw)
However all browsers on multiple OS's prompt the download, but don't know what to do with it afterwards.
I set the mime type up as instructed in the tutorial.
derek@proxy:/var/www$ cat /etc/apache2/httpd.conf
AddType application/x-ns-proxy-autoconfig .dat
And I made sure to reload apache2 settings.
Is there something I'm missing? I set firefox to auto-detect proxy settings for this network, but it isn't configuring the proxy in the browser.
It works if I put 192.168.2.138/wpad.dat in the automatic proxy configuration url box but thats not what the tutorial said to do.
Here is the script.
derek@proxy:/var/www$ cat wpad.dat
function FindProxyForURL(url, host)
if (isInNet(host, "192.168.2.1", "255.255.255.0"))
return "PROXY 192.168.2.138:8080";
Do I need to chmod the script to make it executable? (edit: that didn't work either)
Any help is appreciated.