Use PPTP VPN on Linux

PPTP client

  1. Setup up a PPTP VPN configuration named “hpcvpn”

    # pptpsetup --create hpcvpn --server vpn.your.server \
    --username USERNAME --password PASSWORD --encrypt
  2. For the first time, connect with debugging information

    # pon hpcvpn debug dump logfd 2 nodetach
    # Ctrl + C
  3. Connect to VPN

    # pon hpcvpn
  4. Add route table entry

    # ip route add IP_OF_VPN/24 dev ppp0
  5. Work on π with SSH connection.

    $ ssh IP_OF_VPN
  6. Work done. Disconnect from VPN.

    # poff hpcvpn