catchingdream

#/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
#/sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT
#/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
然后保存:
#/etc/rc.d/init.d/iptables save

 在/etc/sysconfig/iptables中是

-A INPUT -p tcp -m tcp --dport 3306 -j ACCEPT

查看打开的端口:
# /etc/init.d/iptables status

重启防火漆

service iptables restart

分类:

技术点:

相关文章:

  • 2022-01-07
  • 2021-05-15
  • 2021-08-09
  • 2022-02-02
  • 2022-01-11
  • 2021-12-31
  • 2021-11-28
猜你喜欢
  • 2022-01-07
  • 2021-09-25
  • 2022-01-07
  • 2021-11-30
  • 2022-01-07
  • 2021-12-03
相关资源
相似解决方案