diff options
author | Florian Westphal <fw@strlen.de> | 2024-04-03 12:28:12 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2024-04-25 13:25:19 +0200 |
commit | 96a22e33dd26b01a6711412508d28d8cabd66e87 (patch) | |
tree | fc6abe8cbb5c2e222bbf1dc516b6d32f8a05680a /tests/shell/testcases/packetpath/dumps/policy.nft | |
parent | 9da7b00aa886012c0e59e73aa19e05a8d1568540 (diff) |
tests: packetpath: add check for drop policy
check that policy can be changed from accept to drop and that the kernel
acts on this.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/testcases/packetpath/dumps/policy.nft')
-rw-r--r-- | tests/shell/testcases/packetpath/dumps/policy.nft | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/shell/testcases/packetpath/dumps/policy.nft b/tests/shell/testcases/packetpath/dumps/policy.nft new file mode 100644 index 00000000..e625ea6c --- /dev/null +++ b/tests/shell/testcases/packetpath/dumps/policy.nft @@ -0,0 +1,11 @@ +table inet filter { + chain underflow { + } + + chain input { + type filter hook input priority filter; policy drop; + icmp type echo-reply accept + ip saddr 127.0.0.1 ip daddr 127.0.0.2 counter packets 3 bytes 252 accept + goto underflow + } +} |