Ubuntu16.04 关闭防火墙

Ubuntu16.04 关闭防火墙](https://blog.csdn.net/weixin_42474540)

一、关闭防火墙

1. 先查看防火墙状态

1

systemctl status firewalld

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
firewalld.service - firewalld - dynamic firewall daemon

   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)

   Active: active (running) since

 Main PID: 979 (firewalld)

   CGroup: /system.slice/firewalld.service

           └─979 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid

525 22:53:54 localhost.localdomain systemd[1]: Started firewalld - dynami...

Hint: Some lines were ellipsized, use -l to show in full.

2. 关闭防火墙

 

1

systemctl stop firewalld

1

systemctl status firewalld

3. 查看防火墙服务是否开机启动

 

1

systemctl is-enabled firewalld

enabled  #开启

4. 关闭防火墙开机启动

 

1

systemctl disable firewalld

1
2
3
rm '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service'

rm '/etc/systemd/system/basic.target.wants/firewalld.service'

 

1

systemctl is-enabled firewalld

disabled


Ubuntu16.04 关闭防火墙
https://waym1ng.github.io/2020/04/17/Ubuntu16.04 关闭防火墙/
作者
waymingz
发布于
2020年4月17日
许可协议