veket官方网站论坛

veket

 找回密码
 要注册
搜索
查看: 829|回复: 0

veket V20 vpn L2TP拨号设置

[复制链接]
发表于 2021-1-11 17:34 | 显示全部楼层 |阅读模式
在veket v20中设置L2TP拨号设置
   linux 配置 l2tp-client
1,安装xl2tpd和ppp
  点击VEKET选择---桌面管理---在线安装软件--搜索xl2tpd和ppp并安装。
    截图_2021-01-11_17-31-17.png
2,修改文件/etc/xl2tpd/xl2tpd.conf
[global]

[lac testvpn]
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
2.png

原文出处:https://www.cnblogs.com/th-lyc/p/11226464.html
您需要登录后才可以回帖 登录 | 要注册

本版积分规则

QQ|手机版|Archiver|veket官方网站论坛 ( 粤ICP备 11052856 )

GMT+8, 2024-4-28 05:15

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表