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

Manual OpenVPN Setup for Padavan Router

Updated on: 2017-07-21 08:32:37 UTC

Introduction

Our VPN for routers 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.

In order to set up SaferVPN on Padavan router, follow our step by step guide detailed below:

Manual OpenVPN setup

  1. Access your router and navigate to VPN Client and go to the Settings tab.
  2. Select Enable VPN Client and fill in the fields as follows:

    Remote VPN Server (IP or DNS host): Enter one of our server addresses from the link.
    Login: SaferVPN Username
    Password: SaferVPN Password
    OpenVPN Extended configuration:

    remote-cert-tls server
    remote-random
    nobind
    tun-mtu 1500
    tun-mtu-extra 32
    mssfix 1450
    persist-key
    persist-tun
    ping-timer-rem
    reneg-sec 0

    # log /tmp/vpn.log

    ### Syslog verbose level
    verb 3
    mute 10


    1.png


  3. Press Apply and select OpenVPN Certificates & Keys.

    Copy our server's CA certificate into ca.crt field, click here to download and leave the ta.key field blank.

    2.png

  4. After connecting to our service, you should make your changes permanent. You can do this three ways:

    - Run in console command "mtd_storage.sh save".
    - On the page, Advanced Settings > Administration > Settings press button "Commit" to the right of "Commit Internal Storage to Flash Memory Now".
    - Reboot router by pressing Reboot button to the right of "Logout" button.

  5. To prevent traffic leakage in the case of VPN-tunnel drops, you should edit the contents of "Run the Script After Connected/Disconnected to VPN Server" in the VPN Client:

    peer_lan="192.168.9.0"
    peer_msk="255.255.255.0"

    func_ipup()
    {
      if iptables -C FORWARD -j REJECT; then
       iptables -D FORWARD -j REJECT
      fi
      return 0
    }

    unc_ipdown()
    {
      if (! iptables -C FORWARD -j REJECT); then
       iptables -I FORWARD -j REJECT
      fi
      return 0
    }

    logger -t vpnc-script "$IFNAME $1"

    case "$1" in
    up)
     func_ipup
     ;;
    down)
     func_ipdown
     ;;
    esac

  6. You should also block traffic until the tunnel is up. To do that, navigate to Advanced Settings > Customization > Scripts and put in the following lines under "Run After Firewall Rules Restarted":

    if [ -z "$(ip a s tun0 | grep 'state UP')" ] && (! iptables -C FORWARD -j REJECT);
    then
     iptables -I FORWARD -j REJECT
    fi

  7. You should make your changes permanent by the same way, as mentioned in Step 4.

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