I am hosting a PPTP VPN on a Windows 7 machine at my house. I am running both the VPN and Privoxy behind a firewall. The firewall is properly configured, and the VPN and Privoxy are both working fine. I can route traffic from my iPhone through the proxy just fine since the VPN client has a built-in proxy config section.
However, the VPN client I am running on my laptop does not have a proxy config section. I am able to route through the proxy just fine by manually configuring the proxy settings in Firefox 5, but I am looking for a way to automate this based on whether the IP of the VPN is present in ipconfig or not. I am trying to do this through a PAC file, but I'm new to proxy auto config and not having much success. Here is my current PAC file with the IP/ports removed:
function FindProxyForURL(url, host)
{
if (isInNet(myIpAddress(), "VPN IP HERE", "255.255.255.0"))
return "PROXY PROXY IP HERE:PROXY PORT HERE";
else
return "DIRECT";
}
This does not route me through the proxy automatically when the VPN is connected. I assume it has something to do with the fact that I have two IPs on the machine, one from the public network I am on and the other from the VPN. What do I need to do to fix my configuration?