首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

ufw防火墙禁止ping,怎设立

2013-06-26 
ufw防火墙禁止ping,怎设置?链接(1)[urlhttp://]链接(2)[urlhttp://viewtopic.php?f54&t323203]问题:1.

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本机的。

热点排行