hallajs.net

PPTP Client on OpenWRT

PPTP Client on OpenWRT

  1. Refresh the OpenWRT’s repository

    opkg update
    
  2. PPTP client installation

    opkg install ppp-mod-pptp kmod-pptp kmod-nf-nathelper-extra
    reboot
    
  3. OpenWRT network configuration

    config interface 'PPTP_VPN'
            option proto        'pptp'
            option server       'pptp.server'
            option username     'myusername'
            option password     'mypassword'
            option defaultroute '0'  # not using as default route
            option peerdns      '0'  # not using the dns servers
    
  4. (Optional) Adding static routes for connection via your VPN

    config route
            option interface 'PPTP_VPN'
            option target    '10.10.10.0/24'  # LAN / WAN to connect via PPTP
            option gateway   '172.16.0.1'     # gateway from PPTP