WPAD Auto Discovery of Proxy (Squid) not working with DHCP. RHEL/CentOS
Hi Friends,
I have tried to use DHCP server to broadcast the wpad.dat file for my network but it’s not working. My configuration is below….
Server OS CentOS 5.4 (Kernel 2.6.18-164.el5)
Client OS Windows XP (IE 6, Crome & Firefox 4/5 ) and RHEL 5.3 firefox
IPTables = Stopped
SELinux = Disabled
wpad.dat
/var/www/html/wpad.dat (or proxy.pac)
function FindProxyForURL(url,host)
{
return "PROXY 192.168.162.128:3128";
}
Apache confige
/etc/httpd/conf/httpd.conf
AddType application/x-ns-proxy-autoconfig .dat
AddType application/x-ns-proxy-autoconfig .pac
DHCP Config
/etc/dhcpd.conf
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
ddns-update-style interim;
#ignore client-updates;
option wpad code 252 = text;
#option wpad "http://192.168.162.133/proxy.pac";
subnet 192.168.162.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.162.1;
option subnet-mask 255.255.255.0;
# option nis-domain "domain.com";
option domain-name "mynet.org";
option domain-name-servers 192.168.162.2;
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.5.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.162.2 192.168.162.254;
default-lease-time 21600;
max-lease-time 43200;
I have tried wpad.dat and proxy.pac both in DHCP config file.
If I am setting the url (http://192.168.162.128:3128) in browser it’s working and using my squid proxy server but when I checked “Automatically detect proxy setting for this network” it’s not supplying the proxy setting to the client. I have tried it with IE, Firefox and Crome but result is same.
Pls help and Thanks in advance….
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 768 Linux Foundation IT Professional Programs
- 379 Cloud Engineer IT Professional Program
- 175 Advanced Cloud Engineer IT Professional Program
- 75 DevOps IT Professional Program - Discontinued
- 7 DevOps & GitOps IT Professional Program
- 101 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 4 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 11 Cloud & Containers Training
- 1 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 2 Open Source Best Practice Training
- 3 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 796 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 91 Storage
- 771 Linux Distributions
- 81 Debian
- 68 Fedora
- 23 Linux Mint
- 13 Mageia
- 24 openSUSE
- 151 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 119 Mobile Computing
- 20 Android
- 84 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 395 Off Topic
- 121 Introductions
- 30 Study Material
- 1K Programming and Development
- 310 Kernel Development
- 689 Software Development
- 1K Software
- 399 Applications
- 182 Command Line
- 5 Compiling/Installing
- 69 Games
- 318 Installation
- Archived
- 183 Small Talk
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)