iptables -A INPUT -p tcp --dport 80 -j ACCEPT

Category: Networking

iptables -A INPUT -p tcp --dport 80 -j ACCEPT

Allow incoming TCP traffic on port 80

-A appends to the INPUT chain, -p tcp specifies the protocol, --dport is the destination port, -j ACCEPT is the action. Order matters — rules are evaluated top-to-bottom and the first match wins.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.