禁用拼和traceroute

#-A INPUT -p icmp -j ACCEPT

-A INPUT -p icmp -j REJECT




具体解决方式就是禁用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

猜你喜欢

转载自blog.csdn.net/ziruominglin/article/details/78964099