Hello Guys,
I have problem in deploying proxy.pac(tried wpad.dat too) file with dhcp server , Ive searched several suggestions but it still it didnt work . The squid proxy settings with it restrictions configurations will take effect if it is manually in-putted in the browser.I badly need your ideas and suggestions..
been hardly trying to solve this issue..
redhat release : CentOS release 6.6 (Final)
rpm -q squid : squid-3.1.10-29.el6.x86_64
You may refer below for my configuration :
/etc/httpd/conf/httpd.conf
AddType application/x-ns-proxy-autoconfig .dat
AddType application/x-ns-proxy-autoconfig .pac
_________
/var/www/html/proxy.pac
function FindProxyForURL(url, host)
{ if (isInNet(myIpAddress(), "192.168.1.0", "255.255.255.0")
return "PROXY 192.168.1.16:3128";
else
return "DIRECT";
}
______
DHCP Server (other linux box)
/etc/dhcp/dchpd.conf
#specify DNS server ip and additional DNS server ip
option domain-name-servers 8.8.8.8, 8.8.4.4;
#specify default lease time
default-lease-time 28800;
#specify Max lease time
max-lease-time 30800;
#specify log method
#log-facility local7;
#option local-wpad code 252 = text;
option local-pac-server code 252 = text;
option local-pac-server "http://192.168.1.16/proxy.pac\n";
# option local-wpad "http://192.168.1.16/wpad.dat";
#Configuring subnet and iprange
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.230 192.168.1.253;
option broadcast-address 192.168.1.255;
authoritative;
#Default gateway ip
option routers 192.168.1.5;
}