summaryrefslogtreecommitdiff
path: root/etc/nftables.conf
diff options
context:
space:
mode:
Diffstat (limited to 'etc/nftables.conf')
-rw-r--r--etc/nftables.conf21
1 files changed, 21 insertions, 0 deletions
diff --git a/etc/nftables.conf b/etc/nftables.conf
new file mode 100644
index 0000000..8acb952
--- /dev/null
+++ b/etc/nftables.conf
@@ -0,0 +1,21 @@
+table inet filter {
+ chain input {
+ type filter hook input priority 0; policy drop;
+ iif lo accept
+ ct state established,related accept
+ iif enp4s0 accept
+ tcp dport 8443 iif enp3s0 accept
+ }
+ chain forward {
+ type filter hook forward priority 0; policy drop;
+ ct state established,related accept
+ iif enp4s0 oif enp3s0 accept
+ }
+}
+
+table ip nat {
+ chain postrouting {
+ type nat hook postrouting priority 100;
+ oif enp3s0 masquerade
+ }
+}