diff options
| author | Kristof Provost <kp@FreeBSD.org> | 2021-11-08 12:28:43 +0000 |
|---|---|---|
| committer | Kristof Provost <kp@FreeBSD.org> | 2021-12-01 12:43:25 +0000 |
| commit | 407930b9f9bbfc10164677ed0732e867a871a513 (patch) | |
| tree | 1acfbc55e974deab770feda16aa4bc5abf22cbfd /tests | |
| parent | 73ef1f7462e95f12747a6ff33c0cbb2bc4f848b7 (diff) | |
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/sys/netpfil/pf/table.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/sys/netpfil/pf/table.sh b/tests/sys/netpfil/pf/table.sh index ff2a68b81224..41ff4e3da84e 100644 --- a/tests/sys/netpfil/pf/table.sh +++ b/tests/sys/netpfil/pf/table.sh @@ -214,6 +214,34 @@ automatic_cleanup() pft_cleanup } +atf_test_case "pr259689" "cleanup" +pr259689_head() +{ + atf_set descr 'Test PR 259689' + atf_set require.user root +} + +pr259689_body() +{ + pft_init + + vnet_mkjail alcatraz + jexec alcatraz pfctl -e + + pft_set_rules alcatraz \ + "pass in" \ + "block in inet from { 1.1.1.1, 1.1.1.2, 2.2.2.2, 2.2.2.3, 4.4.4.4, 4.4.4.5 }" + + atf_check -o match:'block drop in inet from <__automatic_.*:6> to any' \ + -e ignore \ + jexec alcatraz pfctl -sr -vv +} + +pr259689_cleanup() +{ + pft_cleanup +} + atf_init_test_cases() { atf_add_test_case "v4_counters" @@ -221,4 +249,5 @@ atf_init_test_cases() atf_add_test_case "pr251414" atf_add_test_case "network" atf_add_test_case "automatic" + atf_add_test_case "pr259689" } |
