VPS Board - A forum for Linux VPS guides and tutorials, hosting and server offers,

Dedicated servers => Guides and Tutorials => Topic started by: Brandon on December 07, 2016, 01:47:22 PM

Title: Open port Linux iptables
Post by: Brandon on December 07, 2016, 01:47:22 PM
This will show open ports
netstat -lntu

show firewall rules: iptables --list

iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT
iptables -I INPUT -p tcp -m tcp --dport 22 -j ACCEPT
iptables-save