dhcp + wpad + firefox

Eduardo Henrique dupotter at gmail.com
Thu Aug 16 11:58:12 UTC 2007


==========DCHP==========================================
look my dhcpd.conf (Distro: Linux CentOS 4.5)
ddns-update-style interim;
ignore client-updates;
option wpad code 252 = text;
authoritative;

option wpad code 252 = text;
option wpad "http://192.168.0.5:8181/wpad.dat\n<http://192.168.0.5:8181/wpad.dat%5Cn>
";


subnet 192.168.0.0 netmask 255.255.255.0 {


# --- default gateway
       option routers                  192.168.0.5;
       option subnet-mask              255.255.255.0;

       option domain-name              "agrovale.com.br";
#       ddns-update-style               interim;
       option domain-name-servers      201.10.128.3, 201.10.120.3;

       option time-offset              -18000; # Eastern Standard Time
       option ntp-servers              192.168.0.10; # Define cliente dhcpd
utilizar serv. ntp
       option netbios-name-servers     192.168.0.10; # Define quem e o
servidor wins
# --- Selects point-to-point node (default is hybrid). Don't change this
unless
# -- you understand Netbios very well
       option netbios-node-type 8; # Parametro utilizado junto com
netbios-name-servers

#       range dynamic-bootp 192.168.0.128 192.168.0.254;
       default-lease-time 91600;
       max-lease-time 91600;

       # we want the nameserver to appear at a fixed address



#****************************************************************#
#------------------------ CPD - AGROVALE ------------------------#
#****************************************************************#

       host gilmar {
               hardware ethernet 00:0A:5E:53:F8:1D;
               fixed-address 192.168.0.31;

=========WPAD.DAT=============================================

My wpad.dat (tested with *.pac too)

function FindProxyForURL(url, host) {
if(isPlainHostName(host))
  return "DIRECT";
else
  return "PROXY 192.168.0.5:3128";
}

=========APACHE===============================================
My apache was not modified. just I started the service

The wpad.dat is /var/www/html

my url: http://192.168.0.5/wpad.dat


I do not know. Some idea?

Regards,
Eduardo Henrique.


2007/8/15, Sameh Attia <sattia at gmail.com>:
>
> We have this setup working with both FF and IE with option 252 too.
> The DHCP is one component of this setup. Other is ur web server, ie.
> Apache.
> Give us more details.
> On 8/15/07, Eduardo Henrique <dupotter at gmail.com> wrote:
> >
> > Hi,
> > the mozilla firefox don't work with wpad in the dhcpd.conf.
> >
> > somebody already tested this solution?
> >
> > (my english is not very good)
> >
> >
> > Thanks,
> > Eduardo Henrique (dupotter).
> >
> >
> >
> >
>
>
> --
> Sameh Attia
> --
> The two basic principles of Windows system administration:
>
>    * For minor problems, reboot
>    * For major problems, reinstall
>
> dc -e
>
> '603178305900664311156641389051003470569569613466992253686426210705237258P'
>
>
>
>


-- 
Eduardo Henrique (dupotter)




More information about the dhcp-users mailing list