Linux关闭防火墙firewall和iptables的命令
最编程
2024-08-11 15:55:22
...
每次都记不住关闭防火墙命令,特在此记录下!
Linux中有两种防火墙软件,ConterOS7.0以上使用的是firewall,ConterOS7.0以下使用的是iptables
1:查看防火状态
systemctl status firewalld
service iptables status
2:暂时关闭防火墙
systemctl stop firewalld
service iptables stop
3:永久关闭防火墙
systemctl disable firewalld
chkconfig iptables off
4:重启防火墙
systemctl enable firewalld
service iptables restart
5:永久关闭后重启
chkconfig iptables on (没试过)
推荐阅读
-
Linux命令解析:iptables、modprobe装载模块和网络防火墙服务
-
Linux防火墙状态、开启和关闭命令的查看方法
-
操作Linux防火墙:firewall和iptables
-
Linux防火墙状态查询:firewall和iptables视图
-
Linux关闭防火墙firewall和iptables的命令
-
Linux防火墙状态查看:firewall和iptables
-
Linux防火墙状态的查看与开启关闭命令
-
Linux防火墙Firewall和Iptables的使用
-
firewalld配置:详细教程解释Linux防火墙配置中的iptables和firewalld区别和用法
-
深入解析Linux防火墙Firewall的基本原理和操作技巧