A few more things worth noting. I have not been able to get the vpn plug-in for networkmanager to work, and, of course, pptpconfig doesn't get me connected. You can use pptpconfig to set up a tunnel descriptor.
Code:
#!/bin/sh
#connect to work
sudo pon [name of your pptpconfigured tunnel]
#wait for connection
sleep 10
#add routes
route add -net [remote network ip] netmask [netmask] dev ppp0
In my case, my company's internal network addresses are all virtual and based on 10.*.*.*. Therefore, I set up my remote network ip as 10.0.0.0 and the netmask as 255.0.0.0.
Next, I checked /etc/resolv.conf after executing the previous lines. I found that there was no "search" entry. Some may not need this, but I needed to alter /etc/resolv.conf to include the line:
search [remote domain name]
As part of the configuration actions of pon (IIRC) resolv.conf will be modified to include the ip addresses for dns to use for name resolution on the tunnel. In my case, these lines alone weren't enough to enable proper DNS names for protocols. I had to type everything in as IP addresses, not names. Adding the "search" line in resolv.conf ended up doing the trick.
Finally, I created a short shell script to automate all this, taking a command line arg of "on" or "off" to start or stop the vpn tunnel. This could be placed in init.d to enable automatic startup of the tunnel if needed. If anyone would like a copy of the script, let me know.
Bookmarks