diff options
author | tobhe <tobhe@cvs.openbsd.org> | 2020-01-17 10:01:19 +0000 |
---|---|---|
committer | tobhe <tobhe@cvs.openbsd.org> | 2020-01-17 10:01:19 +0000 |
commit | b5f3b70fbebe77039a2ff1681ee798a3cfc2d6ed (patch) | |
tree | 659ddd95ed20dfdb091c11dadedeb241482c8fb4 /regress/sbin/iked | |
parent | eef3579a3d0824cdad9cf8138b31bb30a6f04906 (diff) |
Reset udpencap_port sysctl in cleanup in case the run-udpencap-port
test fails.
Diffstat (limited to 'regress/sbin/iked')
-rw-r--r-- | regress/sbin/iked/live/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/regress/sbin/iked/live/Makefile b/regress/sbin/iked/live/Makefile index 27207425a77..10cf4690ba7 100644 --- a/regress/sbin/iked/live/Makefile +++ b/regress/sbin/iked/live/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.6 2020/01/16 20:06:53 tobhe Exp $ +# $OpenBSD: Makefile,v 1.7 2020/01/17 10:01:18 tobhe Exp $ # Copyright (c) 2020 Tobias Heider <tobhe@openbsd.org> # @@ -121,9 +121,11 @@ SETUP_CA = \ cleanup: -ssh ${LEFT_SSH} 'rm -f /tmp/test.conf; ipsecctl -F; pkill iked; \ - rm -f /etc/iked/ca/*; rm -f /etc/iked/certs/*; rm -f /etc/iked/private/*' + rm -f /etc/iked/ca/*; rm -f /etc/iked/certs/*; rm -f /etc/iked/private/*; \ + sysctl "net.inet.esp.udpencap_port=4500"' -ssh ${RIGHT_SSH} 'rm -f /tmp/test.conf; ipsecctl -F; pkill iked; \ - rm -f /etc/iked/ca/*; rm -f /etc/iked/certs/*; rm -f /etc/iked/private/*' + rm -f /etc/iked/ca/*; rm -f /etc/iked/certs/*; rm -f /etc/iked/private/*; \ + sysctl "net.inet.esp.udpencap_port=4500"' setup_certs: ca-both.crt left-from-ca-both.crt left.key right-from-ca-both.crt \ right.key ca-left.crt right-from-ca-left.crt ca-right.crt left-from-ca-right.crt |