胭脂笑

linux禁ping和允许ping的方法

字号+ 作者:冤家路窄网 来源:剑徒之路 2025-06-12 17:54:35 我要评论(0)

linux禁ping和允许ping的方法我要评论 2013/03/09 14:40:40 来源:绿色资源网 关键字3

linux禁ping和允许ping的和允方法

我要评论 2013/03/09 14:40:40 来源:绿色资源网 编辑:www.downcc.com [大 中 小] 评论:0 点击:166次

系统环境Centos5

一、系统禁止ping

  [root@linuxzgf ~]# echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all

二、和允关键字3系统允许ping

  [root@linuxzgf ~]# echo 0 >/proc/sys/net/ipv4/icmp_echo_ignore_all

  此上两条命令的和允关键字3效果实时生效,可以用另外的和允机器ping来测试是否生效。

  ----------------------------------------------------------------------------------------------------------

  /etc/rc.d/rc.local中增加一行

  echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all

  0表示允许

  1表示禁止

关键词:linux禁ping,和允linux

阅读本文后您有什么感想? 已有 人给出评价!

  • 0 欢迎喜欢
  • 0 白痴
  • 0 拜托
  • 0 哇
  • 0 加油
  • 0 鄙视

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

相关文章
  • Amazon Echo Buds deal: $15 off at Amazon

    Amazon Echo Buds deal: $15 off at Amazon

    2025-06-12 17:33

  • 2025好看的小说书籍推荐 必看畅销书推荐

    2025好看的小说书籍推荐 必看畅销书推荐

    2025-06-12 17:17

  • 劳动第一 争创先锋

    劳动第一 争创先锋

    2025-06-12 17:11

  • 23 of the Most Epic Sandwiches Around the Planet

    23 of the Most Epic Sandwiches Around the Planet

    2025-06-12 15:35

网友点评