To create a tunnel connecting to microsoft VPN server is not a difficult. With the help of pptpconfig GUI, let see how to do it.
First of all, you need to make sure whether pptpconfig was installed. Check out ubuntu geek for pptpconfig installation guide for ubuntu linux. You can have more details info regarding pptp client at pptpclient.sourceforge.net. For download pptpconfig rpm, check out rpmfind.net.
Create a tunnel with pptpconfig
pptpclient.sourceforge.net document section covers very complete guide for most common linux distro. In this examples, we show you the most common way to connect to NT VPN, if you facing problem or search for advance settings info, we recommend you read the pptpclient.sourceforge.net document section.
Lets get started. You must run pptpconfig in root permission, either you execute it with gksudo or simply with sudo.
As you can see in GUI, it split configurations into few tabs (Server, Routing, DNS, Encryption, Miscellaeous), the most important tabs are Server, routing and Encryption.
At server tab, put any name into ‘Name‘ text input, put your vpn server domain name or IP into ‘Server‘ area. Fill in your username and password. Switch to routing and select ‘client to LAN‘, then switch to tab Encryption. The most common options to check is ‘Require Microsoft Point-to-point Encryption (MPPE)‘.
Click Add button to add ans save the vpn settings, select that line you added and click start button. If it success, it means you already hook up. Double check with ifconfig, you should now see ppp0 network interface up with IP assigned.
ppp0 Link encap:Point-to-Point Protocol inet addr:10.168.28.47 P-t-P:10.168.28.46 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1496 Metric:1 RX packets:311 errors:0 dropped:0 overruns:0 frame:0 TX packets:156 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:30001 (29.2 KiB) TX bytes:11054 (10.7 KiB)
Accessing host or servers behind VPN.
You should able to connect straigh away, but I do facing problem accessing servers behind that vpn i connected to. The reason was the route is not properly setup. I do try to setup at routing tab in pptpconfig, but somehow it do not configure for me correctly. Okay, if you are facing the same problem, first check the routing table with route command.
I get this line which I know it was wrong, the netmask should be 255.255.255.0, and I want to access the entire LAN instead of just this machine with IP 10.168.28.46.
10.168.28.46 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
Never mind, delete the unwanted route and reconfigure a correct one.
sudo route del 10.168.28.46
Setup a new route, where it allows you to access entire LAN of 10.168.28.0/24.
sudo route add -net 10.168.28.0 netmask 255.255.255.0 dev ppp0
Ok, done. you can actually terminate your pptpconfig GUI application, the connection will stay until you stop it by hitting stop button.
pptpconfig was build using glade and php-gtk by Quozl. Thanks to ditesh@myoss for the information.
[tags] vpn installation, vpn linux, vpn configuration, vpn to windows, nt vpn, virtual private network[/tags]