service iptables status可以查看到iptables服务的当前状态。
但是即使服务运行了,防火墙也不一定起作用,你还得看防火墙规则的设置 iptables -L
在此说一下关于启动和关闭防火墙的命令:
1) 重启后生效
开启: chkconfig iptables on
关闭: chkconfig iptables off
2) 即时生效,重启后失效
开启: service iptables start
关闭: service iptables stop
linux 如何查看防火墙是否开启
转载上一篇:很靠谱linux常用命令
下一篇:mysql修改端口经验

提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Linux 开启防火墙
远程SSH连接Linux的时候怎么也连不上,ping 也是通的,度娘给出了答案,要关闭防火墙,关闭方法使用tab键切换,space键选定, ┌──────┤ Firewall Configuration &
Linux network 防火墙 firewall against -
linux开启防火墙端口
当Linux打开防火墙后,你会发现,从本机登录23端口是没有问题的,但是如果从另一台pc\
防火墙 Linux J# 重启 远程登录 -
【Linux】防火墙| iptables | 查看防火墙状态 | 开放端口
linux | 防火墙 ,iptables
linux tcp/ip 重启 其他