summaryrefslogtreecommitdiffstats
path: root/files/examples/ipv4-nat.nft
diff options
context:
space:
mode:
Diffstat (limited to 'files/examples/ipv4-nat.nft')
-rwxr-xr-xfiles/examples/ipv4-nat.nft8
1 files changed, 8 insertions, 0 deletions
diff --git a/files/examples/ipv4-nat.nft b/files/examples/ipv4-nat.nft
new file mode 100755
index 00000000..fd3bb40c
--- /dev/null
+++ b/files/examples/ipv4-nat.nft
@@ -0,0 +1,8 @@
+#!/usr/sbin/nft -f
+
+table nat {
+ 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; }
+}