现在的位置: 首页 > 综合 > 正文

Linux 防火墙端口设置

2013年04月11日 ⁄ 综合 ⁄ 共 311字 ⁄ 字号 评论关闭

搭建好服务器后,本机可以正常访问,外部机器无法正常访问,防火墙问题: 


1.在/etc/sysconfig/iptables里添加 

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080:8082 -j ACCEPT  
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 1521 -j ACCEPT  


2.重启iptables

[root@localhost ~]# /etc/init.d/iptables restart


3.看下状态

[root@localhost ~]# /etc/init.d/iptables status 

抱歉!评论已关闭.