diff options
Diffstat (limited to 'tests/files/family-ipv4')
-rw-r--r-- | tests/files/family-ipv4 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/files/family-ipv4 b/tests/files/family-ipv4 new file mode 100644 index 00000000..0700e16d --- /dev/null +++ b/tests/files/family-ipv4 @@ -0,0 +1,14 @@ +#! nft -f + +flush chain ip filter output +delete chain ip filter output +delete table filter + +add table ip filter +add chain ip filter output { type filter hook input priority 0; } + +# IP address +add rule ip filter output ip daddr 192.168.0.1 counter + +# TCP ports +add rule ip filter output tcp dport 22 counter |