步骤

  1. opkg update
  2. opkg install ppp-mod-pptp
  3. opkg install luci-proto-ppp

在OpenWRT安裝PPTP Client端

  1. 首先用ssh登陆到路由器
  2. 安装pptp软件包
    opkg update
    opkg install pptpd
  3. 配置接口 vi /etc/config/network 在末行添加如下代码: config 'interface' 'vpn' option 'ifname' 'pptp-vpn' option 'proto' 'pptp' option 'username' 'vpnusername' option 'password' 'vpnpassword' option 'server' 'vpn.example.org or ipaddress' option 'buffering' '1'

第四行vpnuesrname换为自己的VPN帐号

第五行vpnpassword换来自己的VPN密码

第六行vpn.example.org or ipaddress换为自己的VPN地址,最好是用IP 第七行的beffering是VPN缓冲,1为开启,0为禁止

第八行如果你的VPN不需要加密可以不要。 4. 完成以上动作后reboot路由器。重启完成后登陆到路由器内,在网络-接口中会多了一个VPN接 口,现在可以直接在LUCI中进行配置了。

 

重启路由器会产出新的网卡