读文网>电脑>电脑安全>防火墙知识

linux如何禁用防火墙(推荐三篇)

我的linux不想用防火墙了,想禁用下,该怎么样做呢?下面由读文网小编给你做出详细的linux禁用防火墙方法介绍!希望对你有帮助!

linux禁用防火墙方法1

Linux中现主要有两套管理服务的软件。

大多数的发行版使用SysV init的系统启动进程管理体系,即service和chkconfig命令来配置和控制服务,例如CentOS 6

有些发行版则默认使用比较新的也是争议很大的systemd体系,例如CentOS 7。

CentOS 6:

service iptables start #启动防火墙

service iptables stop #关闭防火墙

chkconfig iptables off #禁止防火墙开机启动

CentOS 7:

systemctl start firewalld.service #启动firewall

systemctl stop firewalld.service #关闭firewall

systemctl disable firewalld.service #禁止firewall开机启动

看了“ linux如何禁用防火墙”文章的还看了:

linux禁用防火墙方法2

firewalld (Fedora, CentOS, RedHat....): systemctl stop firewalld

ufw (ubuntu): service ufw stop

其他的不清楚。但建议查询相关防火墙文档,配置规则。

linux禁用防火墙方法3

1.重启后永久性生效:

开启:chkconfig iptables on

关闭:chkconfig iptables off

2. 即时生效,重启后失效:

开启:service iptables start

关闭:service iptables stop

相关热搜

相关文章

【防火墙知识】热点

【防火墙知识】最新