ufw防火墙禁止ping,怎设置?

u010571759 2013-05-10 09:52:10
链接(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远程电脑呢?
...全文
1713 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
u010571759 2013-05-12
  • 打赏
  • 举报
回复
引用 1 楼 linwhwylb 的回复:
远程电脑ping本机的。
更改了文件:/etc/ufw/before.rules ,保存后。 再,在终端输入:sudo ufw default deny 防止远程电脑:ping,是不是立刻生效?
Linux-Torvalds 2013-05-11
  • 打赏
  • 举报
回复
远程电脑ping本机的。
u010571759 2013-05-11
  • 打赏
  • 举报
回复
引用 1 楼 linwhwylb 的回复:
远程电脑ping本机的。
链接(1) https://help.ubuntu.com/community/UFW 链接(2) http://forum.ubuntu.org.cn/viewtopic.php?f=54&t=323203 更改了文件:/etc/ufw/before.rules ,保存后。 是否再按链接(2),执行文件:sudo /etc/init.d/ufw force-reload ?

19,617

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧