Hi Experts.
Trying to implement the Proxy Auto Configuration on a W2003 AD environment.
I think I have all the steps pretty clear, but I am stuck on some annoying situation that probably is something that I am missing.
I created a GPO that enables the "Auto Configuration" on my computer.
I created a proxy.pac file that configures my Proxy settings depending on the IP of my laptop (office range or VPN range > Proxy / others > No Proxy).
I pasted this file (renamed as "wpad.dat") to the root of my internal IIS web server.
I created an alias (cname) record on my DNS server named "wpad" pointing to the IIS server FQDN.
Problem: after 30 minutes, the PING WPAD still times out, EVEN from the DNS server itself.
I should have been missing really basic here....
After many tries (flush dns, etc...) I deleted the CNAME record, and created a HOST record, pointing to the IP of the IIS internal server.
Same issue: after many tries, the PING WPAD is still timing out.
Everything else seem to be working fine, but I just can not ping the wpad record (the ping to the IIS server itself, or even to a DIFFERENT CNAME record that was pointing to the same server are working just fine.
Any clue??
One last question regarding the PAC file itself:
My idea is to deploy a PAC file like this:
##########################
##########
##########
###
function FindProxyForURL(url, host)
{
if (isInNet(myIpAddress(), "172.16.2.0", "255.255.255.0"))
if (isInNet(myIpAddress(), "172.16.20.0", "255.255.255.0"))
if (isInNet(myIpAddress(), "10.251.0.0", "255.255.248.0"))
return "PROXY 145.47.86.151:8080";
else
return "DIRECT";
}
##########################
##########
##########
####
Where ("172.16.2.0", "255.255.255.0") and ("172.16.20.0", "255.255.255.0") are my two sites IP ranges and ("10.251.0.0", "255.255.248.0") is my VPN IP range.
Should I expect any problem with the VPN IP range? I mean, how the "FindProxyForURL(url, host)" function handles the fact that you have an IP (home Internet connection, hotel Internet connection, AirCard, etc...) and then you build a VPN tunnel that has a NEW IP address on top of that first one? Would this script work to enable the Proxy to those VPN users?
Thanks in advance guys.