$ sudo iptables -A INPUT -p tcp -dport 80 -j ACCEPT $ sudo iptables -A INPUT -p tcp -dport 22 -j ACCEPT Note that we have specified protocol with -p option and the corresponding port for each protocol with –dport (destination port) option: Enter the following commands to enable them. We want our HTTP (port 80), https (port 443), ssh (port 22) connections from outside continue to work.
0 Comments
Leave a Reply. |