Section: Firewalling with nftables and iptables

Allow a port with UFW

bash
bash
sudo ufw allow 443/tcp
Explanation

Allow inbound TCP on a specific port.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Firewalling with nftables and iptables
Allow SSH with nftables
Permit inbound SSH traffic.
OpenIn sheetbashsame section
Allow SSH with iptables
Insert a rule allowing inbound SSH.
OpenIn sheetbashsame section
Show UFW status
Inspect uncomplicated firewall status and rules.
OpenIn sheetbashsame section
Allow service with firewalld
Permanently allow the HTTPS service.
OpenIn sheetbashsame section
Show nftables rules
Display the active nftables ruleset.
OpenIn sheetbashsame section
Create nftables table
Create an inet filter table.
OpenIn sheetbashsame section