To use our apps and setups, make sure you have an active SaferVPN account

Manual PPTP Setup on Raspberry Pi device

Updated on: 2017-08-24 12:34:49 UTC

Introduction

Our VPN immediately protects your internet privacy and security while giving you full internet freedom and instant access to content streaming

Connect every device in your entire home or office with a Plug & Play SaferVPN Router.

Before setup, make sure you have:

  1. Raspberry Pi with an active internet connection
  2. Active SaferVPN account

Install PPTP VPN client

Within the Raspberry Pi terminal run the following commend:

sudo apt-get install pptp-linux 

Configure the PPTP connection

  1.  Create a new file (/etc/ppp/peers/safervpn) using text editors like vi or nano with the following contents:

    client
    dev tun
    proto tcp
    remote us1.safervpn.com 1195**
    resolv-retry infinite
    nobind
    auth-user-pass auth.txt
    tun-mtu 1500
    tun-mtu-extra 32
    mssfix 1450
    persist-key
    persist-tun
    auth-user-pass
    cipher AES-256-CBC
    comp-lzo
    verb 3
    <ca>
    -----BEGIN CERTIFICATE-----
    MIID0TCCAzqgAwIBAgIJAIAY7o4hWfbqMA0GCSqGSIb3DQEBBQUAMIGiMQswCQYD
    VQQGEwJVUzELMAkGA1UECBMCQ0ExFTATBgNVBAcTDFNhbkZyYW5jaXNjbzERMA8G
    A1UEChMIU2FmZXJWUE4xETAPBgNVBAsTCFNhZmVyVlBOMREwDwYDVQQDEwhTYWZl
    clZQTjERMA8GA1UEKRMIU2FmZXJWUE4xIzAhBgkqhkiG9w0BCQEWFHN1cHBvcnRA
    c2FmZXJ2cG4uY29tMB4XDTEzMDExNTE2MjcxNFoXDTIzMDExMzE2MjcxNFowgaIx
    CzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEVMBMGA1UEBxMMU2FuRnJhbmNpc2Nv
    MREwDwYDVQQKEwhTYWZlclZQTjERMA8GA1UECxMIU2FmZXJWUE4xETAPBgNVBAMT
    CFNhZmVyVlBOMREwDwYDVQQpEwhTYWZlclZQTjEjMCEGCSqGSIb3DQEJARYUc3Vw
    cG9ydEBzYWZlcnZwbi5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMef
    VxKeb/VHVPAiVVdQ7pGGkYyGo6O2X3sxsRpD1608K3XGjEJPxTOP6inlhId5kcLu
    XkTExMJ7jMKijfkc8X5PwddrLPM3YZhDSCX4bpAM7A6I2vIrzIehmLD6vhjKlZEo
    NW4Zvqw+MTI3AgRs6HitCK6pbAsLdUThnu1Ct6k9AgMBAAGjggELMIIBBzAdBgNV
    HQ4EFgQUBdj5XEOedAlnxm0RLLaoDNdcNcowgdcGA1UdIwSBzzCBzIAUBdj5XEOe
    dAlnxm0RLLaoDNdcNcqhgaikgaUwgaIxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJD
    QTEVMBMGA1UEBxMMU2FuRnJhbmNpc2NvMREwDwYDVQQKEwhTYWZlclZQTjERMA8G
    A1UECxMIU2FmZXJWUE4xETAPBgNVBAMTCFNhZmVyVlBOMREwDwYDVQQpEwhTYWZl
    clZQTjEjMCEGCSqGSIb3DQEJARYUc3VwcG9ydEBzYWZlcnZwbi5jb22CCQCAGO6O
    IVn26jAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBABh33bPRBv5blvI1
    OrHrSqHyCWwabd6YeKuxM4RiIVVuzjwMmR4yhZhaNA0K07XHSVbdQGjfZGelzye4
    Xd3Uj5R7YPtCvlyavjPVU0fCIKISZaIZ5Le1E3wcrwvA2k6oy9uCjsGkyGfv224w
    ibQxtH8dV3ItFb3AZpHRurL/UmTR
    -----END CERTIFICATE-----
    </ca>


    ** Note: Please replace the following -

    A) us1.safervpn.com 1195 with one of the SaferVPN Server Hostname 
    B) SaferVPN_Username_Here with your SaferVPN Username
    C) SaferVPN_Password_Here with your SaferVPN Password

  2. Run the following command:

    sudo pon /etc/ppp/peers/safervpn

  3. In case there is some issue while running the setup, you can run this command pon FILENAME debug dump logfd 2 nodetach and you can share the logs with us for assistance.

Configure SaferVPN to run on startup

In case you want SaferVPN to start automatically on startup please follow the next steps:
  1. Create the following script in /etc/init.d/pptp :

    #! /bin/sh

    case "$1" in
      start)
        sleep 5
        pon /etc/ppp/peers/safervpn
        echo "PPTP Started"
        ;;
      stop)
        poff /etc/ppp/peers/safervpn
        echo "PPTP Stopped"
        ;;
      *)
        echo "Usage: /etc/init.d/pptp {start|stop}"
        exit 1
        ;;
    esac

    exit 0

  2. Run the following command:

    update-rc.d /etc/init.d/pptp defaults

Need help installing our VPN on another device? Check out our: VPN for Windows, VPN for MAC, VPN for iOS, VPN for Android, VPN Router, and our VPN Chrome Extension.

GET SAFERVPN NOW Go to top
Have more questions? Submit a request