git: e1e6a16abfd8 - stable/15 - tests/netpfil: start ipfilter for ipfnat firewall type
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 25 Jul 2026 00:57:53 UTC
The branch stable/15 has been updated by siva:
URL: https://cgit.FreeBSD.org/src/commit/?id=e1e6a16abfd8d99a3dc2d15d7a79b8270e497c15
commit e1e6a16abfd8d99a3dc2d15d7a79b8270e497c15
Author: Siva Mahadevan <siva@FreeBSD.org>
AuthorDate: 2026-06-30 16:40:00 +0000
Commit: Siva Mahadevan <siva@FreeBSD.org>
CommitDate: 2026-07-25 00:56:48 +0000
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
(cherry picked from commit afbb7dc0a51e4d4c227bdf00770d1ad821cf9889)
---
tests/sys/netpfil/common/utils.subr | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/sys/netpfil/common/utils.subr b/tests/sys/netpfil/common/utils.subr
index 8f298960bef5..366b4c83fe68 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