PPTP VPN Ubuntu

Installing PPTP VPN on Ubuntu 20.x

How to setup PPTP VPN in Ubuntu (GUI & CLI)

Select one of these tutorials

    Installing PPTP in Ubuntu 20.x using command line

  1. First, get the latest updates:
  2. sudo apt-get update

    And switch to root by typing sudo -s


  3. Go to the follwoing direction:
    cd /etc/ppp/peers

    Please note: if you unable to go this direction, probably you did not install PPTP Client, so install it:

    apt install pptp-linux

  4. Create PPTP file:
  5. touch PPTP

  6. Edit the file you created (PPTP):
  7. nano /etc/ppp/peers/PPTP

  8. Copy the follwoing texts to your editor:
  9. pty "pptp Your_Server_IP --nolaunchpppd --debug"
    name Your_Username
    password Your_Password
    remotename PPTP
    require-mppe-128
    require-mschap-v2
    refuse-eap
    refuse-pap
    refuse-chap
    refuse-mschap
    noauth
    debug
    persist
    maxfail 0
    defaultroute
    replacedefaultroute
    usepeerdns

    To save the file press Ctrl+X and enter Y to exit and then Enter key.
    Note: To see your server IP address, login here with your username and password.


  10. Change the PPTP file permission:
    chmod 600 /etc/ppp/peers/PPTP

  11. Connecting and disconnecting VPN:
  12. To connect:

    pon PPTP

    And disconnect:

    poff PPTP
    Or Ctrl+C

    Installing PPTP VPN in Ubuntu 20.x using GUI (Graphical User Interface)

  1. Go to the "Network Settings":
  2. PPTP VPN connection on Ubuntu 20.x - Step 1 PPTP VPN connection on Ubuntu 20.x - Step 1
  3. In "Network" window, click on "+":
  4. PPTP VPN connection on Ubuntu 20.x - Step 2
  5. Choose "Point-to-Point Tunneling Protocol (PPTP)" as your connection type:
  6. PPTP VPN connection on Ubuntu 20.x - Step 3
  7. In next screen, add your gateway address and your VPN username & password, then click "Advanced..."
  8. PPTP VPN connection on Ubuntu 20.x - Step 4

    Note: Gateway: To see your server IP address, login here with your username and password.


  9. In advance settings, make sure the settings are the same as what is shown in the picture that is provided. Hit "OK" when done.
  10. PPTP VPN connection on Ubuntu 20.x - Step 5
  11. Click on "Add" button:
  12. PPTP VPN connection on Ubuntu 20.x - Step 6
  13. Now you are ready to connect. Click on network icon from tray area and connect to VPN. (or you can connect from Network window) Enjoy!:
  14. PPTP VPN connection on Ubuntu 20.x - Step 7