我的ISP使用L2TP将用户连接到互联网。我在Windows上有一个工作连接,现在我试图将它克隆到一个Ubuntu上。当然,我得到间歇性的“服务启动失败”和“服务意外停止”错误,就像其他人一样。
第一个跳过的似乎是L2TP主机名解析。在Windows上,我用域名形式写了它;我想它是通过DHCP解决的。在Ubuntu名称解析上失败:
Started the VPN service, PID 7461
Saw the service appear; activating connection
VPN connection: (ConnectInteractive) reply received
V
我已通过预共享密钥为L2TP虚拟专用网连接配置了Windows Server 2016。服务器的LAN端地址为192.10.0.100。我可以从LAN端访问VPN。 在本地网络之外,我收到一条错误消息,提示“远程服务器没有响应”,并提到可能存在NAT或防火墙问题。 以下是我为VPN制定的规则: NAT add action=dst-nat chain=dstnat comment="NAT Rule for L2TP General Port 500" \
dst-address="Mikrotik public IP Address"
我试图在2台服务器( CentOS 7和Ubuntu 16 )之间设置CentOS隧道
On CentOS 7 end I有以下内容:
ip l2tp add tunnel tunnel_id 6000 peer_tunnel_id 5000 encap udp local LOCAL_IP remote REMOTE_IP udp_sport 5002 udp_dport 6002
ip l2tp add session tunnel_id 6000 session_id 1000 peer_session_id 2000
ip link set l2tpeth0 up mtu 1488
i