Here is the easiest way how to do it, if you are not furious about (tray) window applications:
1. Install networkmanager and plugins supporting VPN connection.
Packages are usually available in repositories:
network-manager-applet
2. VPN PPTP needs Plugins:
networkmanager-pptp
Reboot. The file is autostarting at launching (the Desktop Entry is in /etc/xdg/autostart/nm-applet.desktop). To enable networking through NetworkManager write sudo NetworManager. To (re)open its GUI in tray write nm-applet. The name is in Desktop Entry as EXEC.
You can ask in terminal about status of your connection by nmcli -p c
-p means pretty
c connection
If you get furious by windows applications:
1. Install pptpclient.
2. Set up your_tunnel in /etc/ppp/peers/<TUNNEL>
3. Debug: pon my_tunnel debug dump logfd 2 nodetach (if it is correctly it should no stop)
3. Connection to VPN: pon my_tunnel
4.Routing: the best run as sudo..
To access anything on the remote network, you need to add a new route to your routing table.
Deamon to run: pon my_tunnel
Check if you have ppp0 device: ip addr
Then:
ip link set ppp0 up
ip route add X.Y.10.0 dev ppp0
- the tunnel from the client to the server is ppp0,
- the remote network uses addresses starting with X.Y.
5. Enjoy!! :D)
PPTP client is compatible with Windows, Linux, OpenBSD, FreeBSD, NetBSD..
PPTP Client was known as pptp-linux and was written by C. Scott Ananian under RedHat. Then it was developed under OpenSSL software project.