免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2928 | 回复: 6
打印 上一主题 下一主题

怎么才能不响应别人的ping呀 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-08-30 08:15 |只看该作者 |倒序浏览
[color=Green]使对任何ping请求不响应,重启后有效?怎么设的呀!请还记得的指教下,谢谢!!!
一路征程一路笑 该用户已被删除
2 [报告]
发表于 2010-08-30 08:58 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
3 [报告]
发表于 2010-09-03 19:42 |只看该作者
2楼正解不要重启 亦可以修改 /etc/sysctl 相关键值

论坛徽章:
0
4 [报告]
发表于 2010-09-03 20:46 |只看该作者
回复 3# obsd178


    嗯,/proc是个虚拟目标,重启就没有了,应该放在/etc/sysctl里的,

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
5 [报告]
发表于 2010-09-03 21:02 |只看该作者
修改/etc/sysctl 键值,重启有效

论坛徽章:
0
6 [报告]
发表于 2010-09-04 12:51 |只看该作者
修改/etc/sysctl 键值,重启有效
chenyx 发表于 2010-09-03 21:02



    sysctl -p 即可生效!

论坛徽章:
13
15-16赛季CBA联赛之同曦
日期:2016-01-28 19:52:032015亚冠之北京国安
日期:2015-10-07 14:28:19NBA常规赛纪念章
日期:2015-05-04 22:32:03处女座
日期:2015-01-15 19:45:44卯兔
日期:2014-10-28 16:17:14白羊座
日期:2014-05-24 15:10:46寅虎
日期:2014-05-10 09:50:35白羊座
日期:2014-03-12 20:52:17午马
日期:2014-03-01 08:37:27射手座
日期:2014-02-19 19:26:54子鼠
日期:2013-11-30 09:03:56狮子座
日期:2013-09-08 08:37:52
7 [报告]
发表于 2012-05-26 12:44 |只看该作者
http://blog.chinaunix.net/uid-25256412-id-91426.html

Ipsysctl-tutorial:  http://www.frozentux.net/documents/ipsysctl-tutorial/
  1. 【With the sysctl application】:
  2. The sysctl application can be used to either set variables through the command line, or to set a larger set of variables through a configuration file as previously described. sysctl may also set several variables through the command line at once if need be, and it may also be used to list all variables and their respective values.

  3. 1.1. First of all, to list all variables possible you could issue the following command:

  4. [root@rhel5 ~]# sysctl -a  →→ to list all variables
  5. [root@rhel5 ~]# sysctl net.ipv4.tcp_sack   →→ to read a specific variable
  6. [root@rhel5 ~]# sysctl -w net.ipv4.tcp_sack=0  →→ to set a value

  7. 1.2. Reload /etc/sysctl.conf
  8. [root@rhel5 ~]# sysctl -p  →→ to load all of the settings we have in the /etc/sysctl.conf file
  9. [root@rhel5 ~]# sysctl -p /etc/testsysctl.conf →→ load the testsysctl.conf configuration options instead of our default file

  10. 【With /proc】:
  11. 1.1. It may be a very bad idea to turn on ip_forward before we have all the firewall rules and routes up and running.

  12. [root@rhel5 ~]# echo "1" > /proc/sys/net/ipv4/tcp_sysncookies →→ 默认值是1,开启防御SYN Flood攻击
  13. [root@rhel5 ~]# echo "1" > /proc/sys/net/ipv4/ip_forward →→ 默认值是0,开启ip_forward

  14. 1.2.icmp_echo_ignore_all
  15. If this is variable is turned on, you and others will be unable to ping the machine in question which is generally a bad thing. Of course, everyone has different opinions about this,

  16. some say it is good because people will be unable to ping you and hence know you are there, some say it is bad because you want people to know you are available on the internet.

  17. A lot of tools and applications rely upon ICMP Echo requests, some good, some bad as always.

  18. [root@rhel5 ~]# echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all →→默认值是0,所谓的(Disable death of PING);
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP