mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
pf tests: Make if_enc.sh stick to utils.subr interface
Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D46280
This commit is contained in:
parent
34063cb714
commit
d1deb682f2
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue