diff options
| author | coasteen <coasteen@proton.me> | 2026-08-05 11:21:20 +0330 |
|---|---|---|
| committer | coasteen <coasteen@proton.me> | 2026-08-05 11:21:20 +0330 |
| commit | 65551ab77d6b6dbeca2e6b63de6ac3fd64ab5d61 (patch) | |
| tree | e08ff74f504998bc80993250b027791721ca6cfb /etc/nftables.conf | |
Diffstat (limited to 'etc/nftables.conf')
| -rw-r--r-- | etc/nftables.conf | 21 |
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 + } +} |
