Date: Thu, 13 Feb 2025 12:39:09 GMT From: Kristof Provost <kp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 26fb3871b725 - main - pf tests: add basic ! received-on test case Message-ID: <202502131239.51DCd9rY075718@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=26fb3871b725aba60005c69d634b7179cd605b82 commit 26fb3871b725aba60005c69d634b7179cd605b82 Author: Kristof Provost <kp@FreeBSD.org> AuthorDate: 2025-02-10 16:42:48 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2025-02-13 12:38:45 +0000 pf tests: add basic ! received-on test case Sponsored by: Rubicon Communications, LLC ("Netgate") --- tests/sys/netpfil/pf/pass_block.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/sys/netpfil/pf/pass_block.sh b/tests/sys/netpfil/pf/pass_block.sh index abd303bae6e6..d5ff37b6c167 100644 --- a/tests/sys/netpfil/pf/pass_block.sh +++ b/tests/sys/netpfil/pf/pass_block.sh @@ -366,6 +366,16 @@ received_on_body() ping -c 1 203.0.113.2 atf_check -s exit:2 -o ignore \ ping -c 1 203.0.113.3 + + # Test '! received-on' + pft_set_rules alcatraz \ + "pass in" \ + "block ! received-on ${epair_one}b" + + atf_check -s exit:0 -o ignore \ + ping -c 1 192.0.2.1 + atf_check -s exit:2 -o ignore \ + ping -c 1 198.51.100.1 } received_on_cleanup()
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202502131239.51DCd9rY075718>