git: afbb7dc0a51e - main - tests/netpfil: start ipfilter for ipfnat firewall type
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Jul 2026 13:40:12 UTC
The branch main has been updated by siva:
URL: https://cgit.FreeBSD.org/src/commit/?id=afbb7dc0a51e4d4c227bdf00770d1ad821cf9889
commit afbb7dc0a51e4d4c227bdf00770d1ad821cf9889
Author: Siva Mahadevan <siva@FreeBSD.org>
AuthorDate: 2026-06-30 16:40:00 +0000
Commit: Siva Mahadevan <siva@FreeBSD.org>
CommitDate: 2026-07-22 13:35:51 +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
---
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 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