Linux防火墙(Iptables)的开启与关闭

· 备忘笔记 · 0 comment · 3,236 Views

Linux中的防火墙主要是对iptables的设置和管理.

1.Linux防火墙(Iptables)重启系统生效
开启: chkconfig iptables on
关闭: chkconfig iptables off
2.Linux防火墙(Iptables) 即时生效,重启后失效
开启: service iptables start
关闭: service iptables stop

需要说明的是对于Linux下的其它服务都可以用以上命令执行开启和关闭操作。

添加新评论