git: d1deb682f2f0 - main - pf tests: Make if_enc.sh stick to utils.subr interface
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 13 Aug 2024 12:15:10 UTC
The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=d1deb682f2f01788f6a6a84ec24ba3d6605d000f commit d1deb682f2f01788f6a6a84ec24ba3d6605d000f Author: Igor Ostapenko <pm@igoro.pro> AuthorDate: 2024-08-13 11:32:37 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2024-08-13 12:14:08 +0000 pf tests: Make if_enc.sh stick to utils.subr interface Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D46280 --- tests/sys/netpfil/pf/if_enc.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/sys/netpfil/pf/if_enc.sh b/tests/sys/netpfil/pf/if_enc.sh index a6d258e40e33..2e9060d4aa68 100644 --- a/tests/sys/netpfil/pf/if_enc.sh +++ b/tests/sys/netpfil/pf/if_enc.sh @@ -172,10 +172,10 @@ ipfwoff_ip4_pfil_in_after_stripping_body() jexec bgw sysctl net.inet.ipsec.filtertunnel=0 jexec bgw sysctl net.enc.in.ipsec_filter_mask=2 # after stripping jexec bgw sysctl net.enc.out.ipsec_filter_mask=1 # before outer header - echo ' - rdr on enc0 proto tcp to 4.0.0.1 port 666 -> 4.0.0.44 - pass - ' | jexec bgw pfctl -ef- + jexec bgw pfctl -e + pft_set_rules bgw \ + "rdr on enc0 proto tcp to 4.0.0.1 port 666 -> 4.0.0.44" \ + "pass" # Prepare the catcher on host b echo "unexpected" > ./receiver