Mikrotik RouterOS/ROS 配置搭建L2TP server+ipsec服务器端

 
更多

L2TP (Layer 2 Tunneling Protocol)是一种通常用于VPN的协议。在MikroTik设备上搭建L2TP服务器可以完成远程连接和全局网络的通信。下面的脚本在MikroTik上搭建L2TP VPN服务器。

#建立地址池
/ ip pool add name="vp_pool" ranges=10.88.1.1-10.88.1.200

#建立模板
/ ppp profile add dns-server=114.114.114.114,223.6.6.6 local-address=10.88.1.254 name=vp_profile only-one=yes remote-address=vp_pool

#添加用户
/ppp secret add name=r1 password=123456 profile=vp_profile

#开启服务,ipsec密钥为123456(自行修改)
/int l2tp-ser ser set enabled=yes use-ipsec=yes ipsec-secret=123456

#添加NAT
/ ip firewall nat add chain=srcnat src-address=10.88.1.0/24 action=masquerade comment=vp_pool

打赏

本文固定链接: https://www.cxy163.net/archives/2496 | 绝缘体

该日志由 绝缘体.. 于 2024年12月07日 发表在 未分类 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: Mikrotik RouterOS/ROS 配置搭建L2TP server+ipsec服务器端 | 绝缘体
关键字: , , , ,

Mikrotik RouterOS/ROS 配置搭建L2TP server+ipsec服务器端:等您坐沙发呢!

发表评论


快捷键:Ctrl+Enter