Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th July 2009, 08:31
drake495 drake495 is offline
Junior Member
 
Join Date: Jul 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Squid proxy w/ Dansguardian Ubuntu wpad.dat not working

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.
Reply With Quote
Sponsored Links
  #2  
Old 12th July 2009, 20:59
mtcoombes mtcoombes is offline
Junior Member
 
Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

A question that comes to mind immediately is, did you set up DHCP and/or DNS? The wpad.dat script is only hosted by the web server, but the auto-detect portion is handled by option 252 in DHCP, i.e. without some means of telling the clients where to find the script, you'll have to manually point them to the script.
Reply With Quote
  #3  
Old 12th July 2009, 21:19
drake495 drake495 is offline
Junior Member
 
Join Date: Jul 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, I will look into that. It's not a huge deal. I was just trying to figure out what I had overlooked.

I am just learning for future projects. In the future I will have an actual dhcp server and not just my linksys router with dd-wrt on it.

Although dd-wrt is pretty cool.
Reply With Quote
  #4  
Old 26th July 2009, 19:31
Upsurged Upsurged is offline
Junior Member
 
Join Date: Jul 2009
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi, I am new to the above subject as well. I wante to install the squid for faster browsing in my home network with proxy auto detect. The above tutorial is working fine, if i note the squid server address in the browser, but the option Auto-detect is not working. Any help would be appreciated.

I have included the below after referring to other posts, still no luck.


/etc/dhcp3/dhcpd.conf:
...
option custom-proxy-server code 252 = text;
option custom-proxy-server "http://192.168.1.1/wpad.dat";
...
Reply With Quote
  #5  
Old 14th August 2009, 06:42
m1_davidson m1_davidson is offline
Junior Member
 
Join Date: Jul 2007
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by Upsurged View Post
Hi, I am new to the above subject as well. I wante to install the squid for faster browsing in my home network with proxy auto detect. The above tutorial is working fine, if i note the squid server address in the browser, but the option Auto-detect is not working. Any help would be appreciated.

I have included the below after referring to other posts, still no luck.


/etc/dhcp3/dhcpd.conf:
...
option custom-proxy-server code 252 = text;
option custom-proxy-server "http://192.168.1.1/wpad.dat";
...
Not sure whether this is still an issue for you. Is your DHCP server working (i.e. giving out IP settings)?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid Proxy Configuration hellseeker Installation/Configuration 4 17th September 2012 21:36
Transparent reverse squid proxy d31373 Installation/Configuration 5 22nd November 2009 21:44
Unbale to login to Postfix from webmail wasimriz HOWTO-Related Questions 5 6th April 2009 14:49
Mod_Perl Configuration Issue szise Installation/Configuration 4 28th November 2008 13:41
Squid proxy on ubuntu 8 intercept_ns7 HOWTO-Related Questions 0 29th July 2008 17:22


All times are GMT +2. The time now is 22:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.