Smart PPTP connect/disconnect scripts for XP
When you are using PPTP connection in XP, you get the situation when the connection is established, that XP sets the default routing to your established PPTP connection, that is why some of your local network connectivities can be broken.
The following script establishes the selected PPTP connection and modifies the routing table to preserve your local connectivities:
rasdial PPTP-CONN username password
route add 172.19.0.0 mask 255.255.255.0 %VPNIP%
route add 0.0.0.0 mask 0.0.0.0 192.168.1.1
This script assumes that you local network is 192.168.1.0/255.255.255.0, your remote network over PPTP VPN is 172.19.0.0/255.255.255.0, and your PPTP connection name is `PPTP-CONN'. You should customize it (including user name and password) for your setting.
Disconnect script:
rasdial OTS-PPTP /disconnect