openwrt VPN Client 配置

来源:互联网 发布:ubuntu 精简 编辑:程序博客网 时间:2024/06/10 03:49

1. 编译要求

修改menuconfig编译选项kernel modules  --->    Netfilter Extensions  --->         <*> kmod-nf-nathelper-extra    Network Support  --->         -*- kmod-gre        <*> kmod-gre6        -*- kmod-ppp         <*>   kmod-mppe        <*>   kmod-pppol2tp        -*-   kmod-pppox        <*>   kmod-pptpNetwork  --->     Instant Messaging  --->         <*> umurmur-openssl    <*> ppp    <*>   ppp-mod-pppoe    <*>   ppp-mod-pppol2tp     <*>   ppp-mod-pptp    <*>   ppp-mod-radiusLuCI  --->    Protocols  --->         -*- luci-proto-ppp  


2.修改网卡配置文件


#vi /etc/config/networkconfig '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'


3.修改VPN配置文件

vi /etc/ppp/options.pptp在末尾追加   refuse-eap    refuse-pap    refuse-chap    refuse-mschap <code class="hljs rsl has-numbering"></code>

4.重启系统


5.在LuCI中配置

<pre name="code" class="html">修改改接口下服务器地址、账号、密码修改接口下防火墙设置,分配到Wan区域










0 0
原创粉丝点击