diff options
| author | Siva Mahadevan <siva@FreeBSD.org> | 2026-06-30 16:40:00 +0000 |
|---|---|---|
| committer | Siva Mahadevan <siva@FreeBSD.org> | 2026-07-22 13:35:51 +0000 |
| commit | afbb7dc0a51e4d4c227bdf00770d1ad821cf9889 (patch) | |
| tree | 0b78ffb5e49c405926c5fef6859042fa9501bcaa | |
| parent | e27b1cae848219d07f0a12a48990af0558b4cced (diff) | |
tests/netpfil: start ipfilter for ipfnat firewall type
This requested fix[0] was not complete before the change
was committed.
Cleans up this error message when running tests[1]:
"Cannot 'start' ipfilter. Set ipfilter_enable to YES in
/etc/rc.conf or use 'onestart' instead of 'start'."
[0] https://reviews.freebsd.org/D21065?id=60288#inline-131488
[1] https://ci.freebsd.org/job/FreeBSD-main-amd64-test/28917/testReport/sys.netpfil.common/rdr/ipfnat_local_redirect/
Fixes: f97a8a36153a9
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
| -rw-r--r-- | tests/sys/netpfil/common/utils.subr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sys/netpfil/common/utils.subr b/tests/sys/netpfil/common/utils.subr index 8885495cec11..f5013098f5f2 100644 --- a/tests/sys/netpfil/common/utils.subr +++ b/tests/sys/netpfil/common/utils.subr @@ -63,7 +63,7 @@ firewall_config() jexec ${jname} ipf -E jexec ${jname} ipf -Fa -f $cwd/ipf.rule elif [ ${fw} == "ipfnat" ]; then - jexec ${jname} service ipfilter start + jexec ${jname} ipf -E jexec ${jname} ipnat -CF -f $cwd/ipfnat.rule jexec ${jname} pfilctl link -o ipfilter:default-ip4 inet-local jexec ${jname} pfilctl link -o ipfilter:default-ip6 inet6-local |
