zoukankan      html  css  js  c++  java
  • 在Linux防火墙上过滤外来的ICMP timestamp

    ICMP timestamp请求响应漏洞

    解决方案:
     * 在您的防火墙上过滤外来的ICMP timestamp(类型13)报文以及外出的ICMP timestamp回复报文。
     
      具体解决方式就是禁用ICMP timestamp-request,编辑etc/sysconfig/iptables文件,在防火墙规则里面添加如下记录: 
     

     -A RH-Firewall-1-INPUT -p ICMP --icmp-type timestamp-request -j DROP
     -A RH-Firewall-1-INPUT -p ICMP --icmp-type timestamp-reply -j DROP

     接下来,重启iptables服务,重启命令:

    service iptables restart

     检查新添加的规则是否有效,检查命令:

    iptables -L -n

     

    这些规则告诉server 不要使用ICMP timestamp 包。

    ubuntu系统上修改  

    root@ubuntu# ufw disable
    
    vi  /etc/ufw/before.rules
    
    # ok icmp codes
    -A ufw-before-input -p icmp --icmp-type destination-unreachable -j DROP
    -A ufw-before-input -p icmp --icmp-type source-quench -j DROP
    -A ufw-before-input -p icmp --icmp-type time-exceeded -j DROP
    -A ufw-before-input -p icmp --icmp-type parameter-problem -j DROP
    -A ufw-before-input -p icmp --icmp-type echo-request -j DROP

    root@ubuntu# ufw enable

     

    转载自:http://blog.csdn.net/xiadingling/article/details/8115945

  • 相关阅读:
    git 常用命令
    重要知识点
    HTML 标记语言
    js类型转换
    伪数组变数组 js
    在 JavaScript 中为什么 typeof null 的结果是 object?
    HTML中href、src区别
    解决for循环插入同一元素无法重复插入问题
    HTML5-语义化
    mount 和 /etc/fstab关系。
  • 原文地址:https://www.cnblogs.com/toughlife/p/5475256.html
Copyright © 2011-2022 走看看