1.首先查看防火墙状态:
service iptables status
2.永久性生效,重启后不会复原
开启:
chkconfig iptables on
关闭:
chkconfig iptables off
3.即时生效,重启后复原
开启:
service iptables start
关闭:
service iptables stop
4.设置后重启:
reboot
这篇博客介绍了在Linux系统中如何管理防火墙iptables。包括检查iptables状态、设置防火墙开启或关闭的永久性操作,以及即时生效的启动和停止命令,最后提到了重启系统来应用设置。
1.首先查看防火墙状态:
service iptables status
2.永久性生效,重启后不会复原
开启:
chkconfig iptables on
关闭:
chkconfig iptables off
3.即时生效,重启后复原
开启:
service iptables start
关闭:
service iptables stop
4.设置后重启:
reboot

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