From 7bbd2f36a7ca1717d39bb621520d5d72a8159011 Mon Sep 17 00:00:00 2001 From: RainbowLand Date: Mon, 11 Sep 2017 16:22:52 +0800 Subject: [PATCH] Fix multiple devices simultaneously cannot connect from behind the same NAT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复一个NAT下只能链接一个客户端问题.现在L2TP和XAUTH都可以在同一个内网中的多个设备同时登陆了. --- vpnsetup_centos.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vpnsetup_centos.sh b/vpnsetup_centos.sh index 66ac0ec..bb6bf38 100755 --- a/vpnsetup_centos.sh +++ b/vpnsetup_centos.sh @@ -242,6 +242,8 @@ conn l2tp-psk type=transport phase2=esp also=shared + leftnexthop=%defaultroute + rightnexthop=%defaultroute conn xauth-psk auto=add @@ -259,6 +261,8 @@ conn xauth-psk ikev2=never cisco-unity=yes also=shared + leftnexthop=%defaultroute + rightnexthop=%defaultroute EOF # Specify IPsec PSK