From 0cf01c0eb8246299e319ef84faff633e4ae604d5 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Mon, 29 Jan 2018 02:11:16 -0600 Subject: [PATCH] Update ipsec.conf - Switch to new keyword 'modecfgdns' in Libreswan 3.23 --- vpnsetup.sh | 3 +-- vpnsetup_centos.sh | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/vpnsetup.sh b/vpnsetup.sh index 12eeb30..53a342e 100755 --- a/vpnsetup.sh +++ b/vpnsetup.sh @@ -255,8 +255,7 @@ conn xauth-psk auto=add leftsubnet=0.0.0.0/0 rightaddresspool=$XAUTH_POOL - modecfgdns1=$DNS_SRV1 - modecfgdns2=$DNS_SRV2 + modecfgdns="$DNS_SRV1, $DNS_SRV2" leftxauthserver=yes rightxauthclient=yes leftmodecfgserver=yes diff --git a/vpnsetup_centos.sh b/vpnsetup_centos.sh index ae7e9bb..05f1bf1 100755 --- a/vpnsetup_centos.sh +++ b/vpnsetup_centos.sh @@ -243,8 +243,7 @@ conn xauth-psk auto=add leftsubnet=0.0.0.0/0 rightaddresspool=$XAUTH_POOL - modecfgdns1=$DNS_SRV1 - modecfgdns2=$DNS_SRV2 + modecfgdns="$DNS_SRV1, $DNS_SRV2" leftxauthserver=yes rightxauthclient=yes leftmodecfgserver=yes