Hi all,
I have set up the squid proxy server with dansguardian following
http://howtoforge.com/squid-proxy-se...auto-detection
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 "DIRECT";
else
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.
Recent comments
12 hours 23 min ago
19 hours 4 min ago
22 hours 54 min ago
1 day 33 min ago
1 day 8 hours ago
1 day 18 hours ago
1 day 19 hours ago
1 day 22 hours ago
2 days 3 hours ago
2 days 3 hours ago