hghac8008漏洞扫描处理

文章目录

环境

系统平台:Linux x86-64 Red Hat Enterprise Linux 7

版本:4.5.10

文档用途

本文适用于处理hghac8008端口漏洞户。

详细信息

1、服务器上添加防火墙规则,允许相应端口通过,以10.xx.xx.189、10.xx.xx.190、10.xx.xx.191为例

复制代码
firewall-cmd  --add-rich-rule="rule family="ipv4" source address="10.xx.xx.189" port protocol="tcp" port="8008" accept"

firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="10.xx.xx.189" port protocol="tcp" port="8008" accept"

firewall-cmd  --add-rich-rule="rule family="ipv4" source address="10.xx.xx.190" port protocol="tcp" port="8008" accept"

firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="10.xx.xx.190" port protocol="tcp" port="8008" accept"

firewall-cmd  --add-rich-rule="rule family="ipv4" source address="10.xx.xx.191" port protocol="tcp" port="8008" accept"

firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="10.xx.xx.191" port protocol="tcp" port="8008" accept"

2、重载防火墙策略

复制代码
firewall-cmd --reload

3、删除全局规则

复制代码
firewall-cmd --permanent --remove-port=8008/tcp
firewall-cmd  --remove-port=8008/tcp

防火墙规则生效优先级为:直接规则--富规则--区域规则

4、确定策略生效

复制代码
firewall-cmd --list-all
相关推荐
Forget_855012 分钟前
HCIA——计算机网络诞生与发展
服务器·网络·计算机网络
xiaoshuaishuai820 分钟前
C# AvaloniaUI 资源找不到报错
java·服务器·前端·windows·c#
用户23678298016833 分钟前
Linux pgrep 命令详解:按名称查找进程 PID 的高效方法
linux
zzipeng38 分钟前
Linux LCD驱动
linux·运维·服务器
思麟呀1 小时前
C++11并发编程:call_once一次性执行+atomic原子类型+CAS无锁编程+自旋锁
linux·开发语言·jvm·c++·windows
浮生若城1 小时前
Linux库制作与原理(2):理解链接与加载
linux·运维·服务器
Cat_Rocky1 小时前
Gitlab安装与配置
linux·运维·gitlab
志栋智能1 小时前
超自动化巡检:降低运维总成本(TCO)的有效路径
大数据·运维·网络·人工智能·自动化
爱讲故事的1 小时前
操作系统第一讲复习:为什么学习操作系统,以及操作系统到底在做什么?
linux·开发语言·windows·学习·ubuntu·c#