0
点赞
收藏
分享

微信扫一扫

linux防火墙状态查看的方法

1、基本操作

linux防火墙状态查看的方法_高亮显示

2、开启80端口

linux防火墙状态查看的方法_高亮显示_02

保存退出后重启防火墙

linux防火墙状态查看的方法_高亮显示_03

二、firewall防火墙

1、查看firewall服务状态

linux防火墙状态查看的方法_基本操作_04

出现Active: active (running)切高亮显示则表示是启动状态。

出现 Active: inactive (dead)灰色表示停止,看单词也行。

2、查看firewall的状态

linux防火墙状态查看的方法_高亮显示_05

3、开启、重启、关闭、firewalld.service服务

linux防火墙状态查看的方法_高亮显示_06

4、查看防火墙规则

linux防火墙状态查看的方法_重启_07

5、查询、开放、关闭端口

linux防火墙状态查看的方法_高亮显示_08

参数解释

1、firwall-cmd:是Linux提供的操作firewall的一个工具;

2、--permanent:表示设置为持久;

3、--add-port:标识添加的端口;

举报

相关推荐

0 条评论