veket官方网站论坛

nazhenfeng2008 发表于 2021-1-11 17:34

veket V20 vpn L2TP拨号设置

在veket v20中设置L2TP拨号设置
   linux 配置 l2tp-client
1,安装xl2tpd和ppp
点击VEKET选择---桌面管理---在线安装软件--搜索xl2tpd和ppp并安装。
   
2,修改文件/etc/xl2tpd/xl2tpd.conf



name = test01                                                      ;L2TP的账号
lns = 1.1.1.1                                                            ;L2TP的服务器IP
pppoptfile = /etc/ppp/peers/testvpn.l2tpd            ;PPPD拨号时的配置文件
ppp debug = yes

3,设置拨号配置文件。文件路径/etc/ppp/peers/testvpn.l2tpd其中testvpn.l2tpd 可能需要自己新建一个文件。
testvpn.l2tpd 配置文件内容如下:
remotename testvpn
user "test01"
password "Gn4JOfYXu"
unit 0
nodeflate
nobsdcomp
noauth
persist
nopcomp
noaccomp
maxfail 5
debug
4.重启电脑
5.开始拨号,连接VPN服务器。
echo "c testvpn" > /var/run/xl2tpd/l2tp-control   ;拨号
echo "d testvpn" > /var/run/xl2tpd/l2tp-control   ;断开连接
6.如果拨号成功后还是访问不了内网就需要添加一条路由。
route add -net 192.168.6.0/24 gw 10.5.0.100
说明:192.168.6.0/24是局域网内网地址,10.5.0.100是VPN L2TP服务器的IP
7.查看拨号是否成功使用ifconfig


原文出处:https://www.cnblogs.com/th-lyc/p/11226464.html
页: [1]
查看完整版本: veket V20 vpn L2TP拨号设置