From 4c47137e7ff62cb8f278071e4164c6b3dfff1134 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sun, 11 Feb 2018 01:05:13 -0600 Subject: [PATCH] Add modecfgdns note --- extras/vpnupgrade.sh | 10 ++++++++++ extras/vpnupgrade_centos.sh | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/extras/vpnupgrade.sh b/extras/vpnupgrade.sh index a0ff1e3..9a66c0f 100644 --- a/extras/vpnupgrade.sh +++ b/extras/vpnupgrade.sh @@ -179,6 +179,16 @@ echo echo "Libreswan $SWAN_VER was installed successfully! " echo +cat <<'EOF' +Note: Users upgrading to Libreswan 3.23 or newer should edit + "/etc/ipsec.conf" and replace these two lines: + modecfgdns1=DNS_SERVER_1 + modecfgdns2=DNS_SERVER_2 + with a single line like this: + modecfgdns="DNS_SERVER_1, DNS_SERVER_2" + Then run "service ipsec restart". +EOF + } ## Defer setup until we have the complete script diff --git a/extras/vpnupgrade_centos.sh b/extras/vpnupgrade_centos.sh index 30961ee..80379d8 100644 --- a/extras/vpnupgrade_centos.sh +++ b/extras/vpnupgrade_centos.sh @@ -180,6 +180,16 @@ echo echo "Libreswan $SWAN_VER was installed successfully! " echo +cat <<'EOF' +Note: Users upgrading to Libreswan 3.23 or newer should edit + "/etc/ipsec.conf" and replace these two lines: + modecfgdns1=DNS_SERVER_1 + modecfgdns2=DNS_SERVER_2 + with a single line like this: + modecfgdns="DNS_SERVER_1, DNS_SERVER_2" + Then run "service ipsec restart". +EOF + } ## Defer setup until we have the complete script