centos7漏洞修复
2022/2/17 7:13:34
本文主要是介绍centos7漏洞修复,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
一、操作系统版本
centos 7.3
二、漏洞列表
1、ICMP timestamp请求响应漏洞
2、允许Traceroute探测
三、修复方法
# ICMP timestamp请求响应漏洞
- 方式一
firewall-cmd --add-icmp-block=time-exceeded --permanent
- 方式二
firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -p ICMP --icmp-type timestamp-request -m comment --comment "deny ICMP timestamp" -j DROP
firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -p ICMP --icmp-type timestamp-reply -m comment --comment "deny ICMP timestamp" -j DROP
# Traceroute探测漏洞
- 方式一
firewall-cmd --add-icmp-block=timestamp-reply --permanent
firewall-cmd --add-icmp-block=timestamp-request --permanent
- 方式二
firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -p ICMP --icmp-type 11 -m comment --comment "deny traceroute" -j DROP
四、防火墙支持的类型
firewall-cmd --get-icmptypes
五、重启生效扩展指令
# 重新加载生效
firewall-cmd --reload
查看规则
firewall-cmd --direct --get-all-rules
检查新添加的规则是否有效,检查命令:iptables -L -n
五、操作系统发布日志
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7
六、参考文章
CentOS7修复几个ICMP漏洞
https://blog.csdn.net/weixin_34186931/article/details/93092048
https://blog.csdn.net/chi0830/article/details/100590045
这篇关于centos7漏洞修复的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-05-13PingCAP 戴涛:构建面向未来的金融核心系统
- 2024-05-09flutter3.x_macos桌面os实战
- 2024-05-09Rust中的并发性:Sync 和 Send Traits
- 2024-05-08使用Ollama和OpenWebUI在CPU上玩转Meta Llama3-8B
- 2024-05-08完工标准(DoD)与验收条件(AC)究竟有什么不同?
- 2024-05-084万 star 的 NocoDB 在 sealos 上一键起,轻松把数据库编程智能表格
- 2024-05-08Mac 版Stable Diffusion WebUI的安装
- 2024-05-08解锁CodeGeeX智能问答中3项独有的隐藏技能
- 2024-05-08RAG算法优化+新增代码仓库支持,CodeGeeX的@repo功能效果提升
- 2024-05-08代码报错不用愁,CodeGeeX一键完成代码修复、错误解释的功能上线了!