[squid-users] Problems with wpad in Squid3

Marcio Demetrio Bacci marciobacci at gmail.com
Wed Sep 9 20:39:11 UTC 2015


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 <http://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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20150909/150b8332/attachment.html>


More information about the squid-users mailing list