转自:
http://www./chenlb/archive/2008/05/01/197648.html 想搭个服务器,但外面访问不到,是防火墙的原因,把端口设置一下就行。
1.在/etc/sysconfig/iptables里添加 -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT 2.重启iptables [root@localhost ~]# /etc/init.d/iptables restart 3.看下状态 [root@localhost ~]# /etc/init.d/iptables status |
|