在RouterOS 7.x 搭建L2TP Server服务端

Rain (UID:3) 铁粉 2025-7-2 189

在RouterOS 7.x 搭建L2TP Server服务端

# 开启nat
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1

# 开启l2tp服务端 并启用ipsec为2025
/interface l2tp-server server
set enabled=yes ipsec-secret=2025 use-ipsec=yes

# 新建ip地址池
/ip pool
add name=pool1 ranges=172.16.1.1-172.16.1.253

# 设置l2tp服务端地址池
/ppp profile
add name=l2tp-pool1 local-address=172.16.1.254 remote-address=pool1

# 新开用户名1001-1253,密码为2025
:for i from=1001 to=1253 do={/ppp secret add name=$i password=2025 profile=l2tp-pool1}

免责声明:

此内容由本站网友原创或转载自网络公开渠道,仅供学习测试使用,禁止商用,著作权归原作者所有;
本站不对此内容担负法律责任,请于下载后24小时内删除;
如发现内容侵权或违规,请联系本站,我们将在12小时内及时做删除或屏蔽处理!邮箱:[email protected]


最新回复 (0)

您可以在 登录 or 注册 后,对此帖发表评论!

返回
发新帖
自助推广 自助积分购买 我的推广
展示位加载中...
赞助商家我要入驻