- Installed pptp-linux
- Optionally you can install pptpconfig which will make life easier with the client configuration part. For that You have to add the below source to your sources.list "deb http://quozl.linux.org.au/pptp/pptpconfig ./"
- Collected the server details needed
- PPTP Server Name - vpn.yourdomain.com
- VPN User Name - user1
- VPN Password - passw0rd
- Connection Name - vpn1
- Edited the file /etc/ppp/chap-secrets to add the line "user1 PPTP passw0rd *"
- created a file /etc/ppp/peers/vpn1. Entered the configuration details as below.
pty "pptp vpn.yourdomain.com - -nolaunchpppd"
name user1
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam vpn1
With this the configuration finished. You can start the tunnel by issueing
- 'sudo pppd call vpn1' or 'pon vpn1'.
- for debug info try 'sudo pon veveo debug dump logfd 2 nodetach'
To stop the pptp tunnel, do a "sudo pkill pppd". You will be able to see the connection status/details in "/var/log/messages"
For me this much was easy. This didnt worked for me straight away. Fair enough, then after a long search I could find that pptp to work through my Juniper Netscreen (ns25) firewall, opening tcp port 1723 is not enough, I should allow the "GRE Protocol" (protocol 47) pass through. I added a custom service for GRE and then everything was working fine.
I am planning to implement a linux SSL vpn server later when I get time. But anyway only after learning the advantages and disadvantages of the SSL VPN.