summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Hagen <kim.hagen@external.t-mobile.nl>2017-06-15 13:28:11 +0200
committerKim Hagen <kim.sidney@gmail.com>2017-08-28 08:54:39 +0200
commit75b6e17505b68308316b4fd0b5908bb3772cfb4a (patch)
tree285086774dd2f5fd1120a84d21991511b9d5d935
parentab61fa92c2e63813cd35e275d67cbb6d398891df (diff)
downloadvyos-opennhrp-lithium.tar.gz
vyos-opennhrp-lithium.zip
change the whack command to use NHRP_DESTNBMA for client/right subnetlithium
-rwxr-xr-xetc/opennhrp-script2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/opennhrp-script b/etc/opennhrp-script
index ab27a30..0af3e42 100755
--- a/etc/opennhrp-script
+++ b/etc/opennhrp-script
@@ -47,7 +47,7 @@ peer-up)
fi
if grep "${NHRP_SRCADDR}" "${_nhrp_ipsec}"; then
ipsec whack --delete --name $_connection > /dev/null 2>&1
- ipsec whack --name $_connection --host $NHRP_SRCNBMA --clientprotoport gre --to --host $NHRP_DESTNBMA --client $NHRP_SRCNBMA/32 --clientprotoport gre --psk $_pfs --encrypt $_ipsec_args || exit 1
+ ipsec whack --name $_connection --host $NHRP_SRCNBMA --clientprotoport gre --to --host $NHRP_DESTNBMA --client $NHRP_DESTNBMA/32 --clientprotoport gre --psk $_pfs --encrypt $_ipsec_args || exit 1
ipsec up $_connection || exit 1
fi
fi