Latest News: Linux shell script to change you ssh port

2016/06

How to allow 80 3306 22 in your CENTOS 6.0 iptables
Tutorial

How to allow 80 3306 22 in your CENTOS 6.0 iptables

willing 2Year(s) Ago (2016-06-06) 833 View(s) 0 Comment(s)

iptables -I INPUT -p tcp --dport 80 -j ACCEPT iptables -I INPUT -p tcp --dport 22 -j ACCEPT iptables -I INPUT -p tcp --dport 3306 -j ACCEPT Save it: service iptables save service iptables restart Check the rule in the iptables: iptables -L ——————————————————- addition: #close the iptables /etc/init.d/iptables stop service iptables stop # stop iptables service #Check the rule in the iptable...