OpenWRT Install L2TP Client

Install Client

opkg update
# 安装 L2TP 客户端
opkg install --force-depends xl2tpd ppp-mod-pppol2tp
# 安装 IPsec 客户端 (strongSwan)
opkg install strongswan-full strongswan-mod-eap-mschapv2
restart
# 配置 IPsec 预共享密钥 (PSK)
vi /etc/ipsec.secrets
# 格式: %any 服务器IP : PSK "您的预共享密钥"
%any VPN_SERVER_IP : PSK "YOUR_PRESHARED_KEY"  # 替换为实际的预共享密钥
# /etc/xl2tpd/xl2tpd.conf 增加共享密钥
vim /etc/xl2tpd/xl2tpd.conf
[global]
port = 1701
auth file = /etc/xl2tpd/xl2tp-secrets
access control = no

;[lns default]
;exclusive = yes
;ip range = 192.168.254.202-192.168.254.210
;lac = 10.0.1.2
;hidden bit = no
;local ip = 192.168.254.200
;length bit = yes
;refuse authentication = yes
;name = VersaLink
;ppp debug = yes
;pppoptfile = /etc/ppp/options.xl2tpd

;[lac left]
;lns = 10.0.1.2
;refuse authentication = yes
;name = VersaLink
;ppp debug = yes
;pppoptfile = /etc/ppp/options.xl2tpd

Create Link

Static route

ifconfig

版权声明:
作者:Akiraka
链接:https://www.akiraka.net/other/1503.html
来源:Akiraka
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
海报
OpenWRT Install L2TP Client
Install Client opkg update # 安装 L2TP 客户端 opkg install --force-depends xl2tpd ppp-mod-pppol2tp # 安装 IPsec 客户端 (strongSwan) opkg install str……
<<上一篇
下一篇>>
文章目录
关闭
目 录