Search squid archive

Re: Problems with wpad in Squid3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Too many unknowns here to guess, so if I were you I'd start with rebooting the client, logging in and starting a sniffer (like wireshark) - just looking at port 53 and port 80

Then start your browser (that is set to automatic network/proxy) and see what happens. What should happen is that it looks for wpad.<DOMAIN DHCP GAVE IT> and if it's Windows it should also look for wpad.<AD.DOMAIN>

If either exist it will then try to download /wpad.dat via HTTP and acts on the content

We use WPAD - it works great. I'd suggest ditching the DHCP option - that only ever worked for MSIE - stick to WPAD via DNS which works for all browsers

Jason

PS: also note WPAD is about browsers - so don't expect miracles for non-browser applications. Some apps can use it - bit most can't

On 10/09/15 08:39, Marcio Demetrio Bacci wrote:
Hi,

I'm having the following problem with my squid3:

When I set the browser: "Auto-Detect proxy settings for this network" does not work.

When we report: "Manual proxy configuration" works.

Follow my configuration files:

/var/www/wpad.dat
function FindProxyForURL(url, host) {
    if (shExpMatch(url,"*.empresa.com/*"))
        {
            return "DIRECT";
        }
    if (isInNet(host, "192.168.0.0","255.255.252.0"))
        {
            return "DIRECT";
        }
    return "PROXY 192.168.0.69:3128";
}


/etc/dhcp/dhcpd.conf
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
authoritative;
option wpad-url code 252 = text;
ddns-domainname "cmb.empresa.com.";
option domain-name "cmb.empresa.com.";

 
subnet 192.168.0.0 netmask 255.255.252.0 {
  range 192.168.1.1 19.168.3.253;
  option routers 192.168.0.1;
  option domain-name-servers 192.168.0.25,192.168.0.10;
  option broadcast-address 192.168.3.255;
  option wpad-url "http://192.168.0.69/wpad.dat\n";
   
}


/etc/bind/db.empresa.com
;
$TTL    600
@    IN    SOA    dns1.cmb.emprea.com. root.cmb.empresa.com. (
              2015083001; Serial
             300        ; Refresh
             300        ; Retry
                    600        ; Expire
             900 )    ; Negative Cache TTL
;
@        IN    NS     dns1.cmb.emprea.com.   
@        IN    MX 10   webmail.cmb.emprea.com.
...
proxy        IN    A    192.168.0.69
wpad        IN    CNAME    proxy


Is there any tool to test my proxy ?

Do I need to set any library in apache2 ?

Regards,

Márcio Bacci



_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users


-- 
Cheers

Jason Haar
Corporate Information Security Manager, Trimble Navigation Ltd.
Phone: +1 408 481 8171
PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux