linux防火墙设置

root用户下,

nano /etc/sysconfig/iptables

添加要开放的端口,比如80,或者1521

-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 1521 -j ACCEPT

重启iptables

service iptables restart

相关推荐