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
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