summaryrefslogtreecommitdiffstats
path: root/tests/files/family-ipv6
diff options
context:
space:
mode:
Diffstat (limited to 'tests/files/family-ipv6')
-rw-r--r--tests/files/family-ipv613
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/files/family-ipv6 b/tests/files/family-ipv6
new file mode 100644
index 00000000..cfc740c1
--- /dev/null
+++ b/tests/files/family-ipv6
@@ -0,0 +1,13 @@
+#! nft -f
+
+add table ip6 filter
+add chain ip6 filter output { type filter hook output priority 0 ; }
+
+# IP address
+add rule ip6 filter output ip6 daddr 2001:6f8:974::1 counter
+
+# Next protocol
+add rule ip6 filter output ip6 nexthdr tcp
+
+# TCP ports
+add rule ip6 filter output tcp dport 22 counter