< BACK TO BLOG

nftables in Almalinux

Published Wed Sep 11 2024



sudo nft add table inet filter

sudo nft add chain inet filter input { type filter hook input priority 0 \; }

sudo nft add rule inet filter input ip saddr x.x.x.x tcp dport 22 accept

sudo nft add rule inet filter input tcp dport 22 drop




Subscribe to my Newsletter

Get the latest posts delivered right to your inbox