Open port Linux iptables

  • 0 Replies
  • 2806 Views
*

Brandon

  • Newbie
  • *
  • 7
  • +0/-0
    • View Profile
Open port Linux iptables
« 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