sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
Category: Self-Hosting
sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
Allow inbound TCP connections on port 80 at the iptables level
Directly adds an iptables rule to accept inbound TCP on port 80. Use UFW for day-to-day management; use iptables directly for advanced scenarios.