在OpenWRT安裝PPTP Client端
一、首先用ssh登陆到路由器 二、安装pptp软件包 opkg update opkg install pptp 三、配置接口
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'
. option 'pppd_options' 'mppe required' .
第四行vpnuesrname换为自己的VPN帐号
第五行vpnpassword换来自己的VPN密码
第六行vpn.example.org or ipaddress换为自己的VPN地址,最好是用IP
第七行的beffering是VPN缓冲,1为开启,0为禁止
第八行如果你的VPN不需要加密可以不要。
四、完成以上动作后reboot路由器。重启完成后登陆到路由器内,在网络-接口中会多了一个VPN接
口,现在可以直接在LUCI中进行配置了。
相关推荐: