]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
files: provide 'raw' table equivalent
authorFlorian Westphal <fw@strlen.de>
Tue, 14 Mar 2017 19:12:30 +0000 (20:12 +0100)
committerFlorian Westphal <fw@strlen.de>
Wed, 15 Mar 2017 12:34:16 +0000 (13:34 +0100)
useful for the 'ct zone set' statement, it has to be done before
the conntrack lookup but preferrably after the defragmention hook.

In iptables, the functionality resides in the CT target which is
restricted to the raw table.  This provides the skeleton for nft.

Signed-off-by: Florian Westphal <fw@strlen.de>
files/nftables/Makefile.am
files/nftables/ipv4-raw [new file with mode: 0644]
files/nftables/ipv6-raw [new file with mode: 0644]

index 1378e2b684f1d02b176f9dc2fb456c31ff6fb7a3..a4c7ac7c980b8d5c92270f5c61375931dce1de4e 100644 (file)
@@ -5,9 +5,11 @@ dist_pkgsysconf_DATA = bridge-filter   \
                        ipv4-filter     \
                        ipv4-mangle     \
                        ipv4-nat        \
+                       ipv4-raw        \
                        ipv6-filter     \
                        ipv6-mangle     \
-                       ipv6-nat
+                       ipv6-nat        \
+                       ipv6-raw
 
 install-data-hook:
        ${SED} -i 's|@sbindir[@]|${sbindir}/|g' ${DESTDIR}${pkgsysconfdir}/*
diff --git a/files/nftables/ipv4-raw b/files/nftables/ipv4-raw
new file mode 100644 (file)
index 0000000..19773ee
--- /dev/null
@@ -0,0 +1,6 @@
+#! @sbindir@nft -f
+
+table raw {
+       chain prerouting        { type filter hook prerouting priority -300; }
+       chain output            { type filter hook output priority -300; }
+}
diff --git a/files/nftables/ipv6-raw b/files/nftables/ipv6-raw
new file mode 100644 (file)
index 0000000..5ee56a8
--- /dev/null
@@ -0,0 +1,6 @@
+#! @sbindir@nft -f
+
+table ip6 raw {
+       chain prerouting        { type filter hook prerouting priority -300; }
+       chain output            { type filter hook output priority -300; }
+}