Redhat7查询关闭防火墙方式

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Redhat7查询关闭防火墙方式相关的知识,希望对你有一定的参考价值。

1----临时状态查看:
[[email protected] opt]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2018-07-11 15:44:01 CST; 13min ago
Docs: man:firewalld(1)
Main PID: 845 (firewalld)
CGroup: /system.slice/firewalld.service
└─845 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid

Jul 11 15:43:58 localhost.localdomain systemd[1]: Starting firewalld - dynamic firewall daemon...
Jul 11 15:44:01 localhost.localdomain systemd[1]: Started firewalld - dynamic firewall daemon.
Jul 11 15:44:03 localhost.localdomain firewalld[845]: WARNING: ICMP type ‘beyond-scope‘ is not supported by the kernel for ipv6.
Jul 11 15:44:03 localhost.localdomain firewalld[845]: WARNING: beyond-scope: INVALID_ICMPTYPE: No supported ICMP type., ignoring for run-time.
Jul 11 15:44:03 localhost.localdomain firewalld[845]: WARNING: ICMP type ‘failed-policy‘ is not supported by the kernel for ipv6.
Jul 11 15:44:03 localhost.localdomain firewalld[845]: WARNING: failed-policy: INVALID_ICMPTYPE: No supported ICMP type., ignoring for run-time.
Jul 11 15:44:03 localhost.localdomain firewalld[845]: WARNING: ICMP type ‘reject-route‘ is not supported by the kernel for ipv6.
Jul 11 15:44:03 localhost.localdomain firewalld[845]: WARNING: reject-route: INVALID_ICMPTYPE: No supported ICMP type., ignoring for run-time.
2-----永久状态查看:
[[email protected] opt]# systemctl list-unit-files | grep firewalld
firewalld.service enabled
3-----临时重启:
[[email protected] opt]# systemctl stop firewalld
[[email protected] opt]# systemctl start firewalld
[[email protected] opt]# systemctl restart firewalld
4-----永久关闭或开启:
[[email protected] opt]# systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

以上是关于Redhat7查询关闭防火墙方式的主要内容,如果未能解决你的问题,请参考以下文章

centos7.2防火墙为啥关不了

centos7为啥要关闭firewall防火墙

redhat6 如何启动防火墙?

rsync+notify 同步(异步方式)文件

centos7 怎样查看防火墙状态呢?

1.Linux基础 基本操作: