日期:2014-05-16  浏览次数:21080 次

ufw防火墙禁止ping,怎设置?
链接(1)
[url=http://]

链接(2)
[url=http://viewtopic.php?f=54&t=323203]

问题:
1.按照链接(1)更改了文件:/etc/ufw/before.rules ,
-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
保存后。
是否再按链接(2),执行文件:sudo /etc/init.d/ufw force-reload ?


2.文件:/etc/ufw/before.rules ,
-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

这些iptable规则是防止远程电脑ping本机,还是防止本机ping远程电脑呢?

------解决方案--------------------
远程电脑ping本机的。