nft add table filter
nft add chain inet filter input
nft add rule inet filter input tcp dport ssh accept
nft add rule inet filter input tcp dport http accept
nft add rule inet filter input drop
table inet filter { chain input { tcp dport 22 accept tcp dport 80 accept drop } }
table inet filter { chain input { type filter hook input priority 0; iifname lo accept tcp dport 22 accept log prefix "---ELDOB---" drop } chain forward { type filter hook forward pirority 0; } chain output { type filter hook output pirority 0; } } table ip nat { chain postrouting { type nat hook postrouting priority srcnat; policy accept; ip saddr 191.168.10.0/24 oif "enp0s8" masquerade } }