1.首先查看防火墙状态:
|
1
|
service iptables status
|
2.
永久性生效,重启后不会复原
开启:
|
1
|
chkconfig iptables on
|
关闭:
|
1
|
chkconfig iptables off
|
即时生效,重启后复原
开启:
|
1
|
service iptables start
|
关闭:
|
1
|
service iptables stop
|
3.设置后重启:
|
1
|
reboot
|
本文详细介绍了如何检查和配置Linux系统的iptables防火墙,包括如何查看防火墙状态、永久性开启或关闭防火墙以及如何立即生效并重启后复原的操作。
2098

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



