Skip to contentSkip to conversation

files: add arp filter and add in/output to nat skeleton

PATCH New Florian Westphal 1 participant 1 message Aug 23, 2017 netfilter

lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH v2 1/1 files: add arp filter and add in/output to nat skeleton

---
v2: forgot to git-add arp-filter...

 files/nftables/Makefile.am | 3 ++-
 files/nftables/arp-filter  | 6 ++++++
 files/nftables/ipv4-nat    | 6 ++++--
 files/nftables/ipv6-nat    | 6 ++++--
 4 files changed, 16 insertions(+), 5 deletions(-)
 create mode 100644 files/nftables/arp-filter
files/nftables/Makefile.am +2 -1
index a4c7ac7c980b..77d5c2a66e8f 100644
@@ -1,6 +1,7 @@
 
 pkgsysconfdir = ${sysconfdir}/nftables
-dist_pkgsysconf_DATA =	bridge-filter	\
+dist_pkgsysconf_DATA =	arp-filter	\
+			bridge-filter	\
 			inet-filter	\
 			ipv4-filter	\
 			ipv4-mangle	\
files/nftables/arp-filter new file +6 -0
new file mode 100644
index 000000000000..bcabf28ad99c
@@ -0,0 +1,6 @@
+#! @sbindir@nft -f
+
+table arp filter {
+	chain input		{ type filter hook input priority 0; }
+	chain output		{ type filter hook output priority 0; }
+}
files/nftables/ipv4-nat +4 -2
index 01c6c3d8d6a1..130a729b1d36 100644
@@ -1,6 +1,8 @@
 #! @sbindir@nft -f
 
 table nat {
-	chain prerouting	{ type nat hook prerouting priority -150; }
-	chain postrouting	{ type nat hook postrouting priority -150; }
+	chain prerouting	{ type nat hook prerouting priority -100; }
+	chain input		{ type nat hook input priority 100; }
+	chain output		{ type nat hook output priority -100; }
+	chain postrouting	{ type nat hook postrouting priority 100; }
 }
files/nftables/ipv6-nat +4 -2
index 3f57c56dea78..e7816860f4a7 100644
@@ -1,6 +1,8 @@
 #! @sbindir@nft -f
 
 table ip6 nat {
-	chain prerouting	{ type nat hook prerouting priority -150; }
-	chain postrouting	{ type nat hook postrouting priority -150; }
+	chain prerouting	{ type nat hook prerouting priority -100; }
+	chain input 		{ type nat hook input priority 100; }
+	chain output  		{ type nat hook output priority -100; }
+	chain postrouting	{ type nat hook postrouting priority 100; }
 }
Signature · 1 line
2.13.0