fedora20 防火墙开放端口:
1、sudo iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 1521 -j ACCEPT
2、sudo iptables-save > iptables.dump
3、sudo iptables-restore < iptables.dump
如果想持久化此设置,请做步骤4
4、sudo vi /etc/sysconfig/network-scripts/ifup-post
文件末尾加入以下命令:
sudo iptables-restore < iptables.dump
本文介绍如何在Fedora20中通过iptables命令配置防火墙以开放指定端口,并提供了使设置生效及持久化的步骤。适用于系统管理员及需要进行网络配置的技术人员。
2331

被折叠的 条评论
为什么被折叠?



