一个简单的命令操作Centos 7防火墙

suosuo 2020-06-08

查看防火墙状态

[ ~]# 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 一 2020-06-08 11:52:08 CST; 2h 5min ago
     Docs: man:firewalld(1)
  Process: 3886 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
 Main PID: 3773 (firewalld)
   CGroup: /system.slice/firewalld.service
           └─3773 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid

防火墙其他的操作指令

systemctl status firewalld

status(运行状态) / stop(停止/ start(启动/ enable(启用/ disable(永久禁用) / reload

注:在centos 7 Fedora中防火墙由firewall来管理。

相关推荐

老谢的自留地 / 0评论 2020-05-31
yshlovelx / 0评论 2020-04-18