nft add rule inet filter input tcp dport 443 accept

Category: Security & Hardening

nft add rule inet filter input tcp dport 443 accept

Allow HTTPS traffic in the nftables input chain

Accepts TCP connections to port 443, the standard HTTPS port, in the input chain. Combine several services with a set, for example tcp dport { 80, 443 } accept. This pairs with the established,related rule for well-behaved connections.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.