博客
关于我
Linux服务器安全防护之禁止ping
阅读量:114 次
发布时间:2019-02-26

本文共 802 字,大约阅读时间需要 2 分钟。

Linux服务器安全防护

禁止ping centos服务器 ip地址

两条命令搞定,主要是下面第一条

echo 'net.ipv4.icmp_echo_ignore_all = 1' >>/etc/sysctl.conf

sysctl -p

 

[root@localhost ~]# cat /etc/sysctl.confnet.ipv6.conf.all.disable_ipv6=0net.ipv6.conf.default.disable_ipv6=0net.ipv6.conf.lo.disable_ipv6=0kernel.printk = 5[root@localhost ~]# [root@localhost ~]# echo 'net.ipv4.icmp_echo_ignore_all = 1' >>/etc/sysctl.conf[root@localhost ~]# [root@localhost ~]# sysctl -pnet.ipv6.conf.all.disable_ipv6 = 0net.ipv6.conf.default.disable_ipv6 = 0net.ipv6.conf.lo.disable_ipv6 = 0kernel.printk = 5net.ipv4.icmp_echo_ignore_all = 1[root@localhost ~]#[root@localhost ~]# cat sysctl.confnet.ipv6.conf.all.disable_ipv6=0net.ipv6.conf.default.disable_ipv6=0net.ipv6.conf.lo.disable_ipv6=0kernel.printk = 5net.ipv4.icmp_echo_ignore_all = 1[root@localhost ~]#

 

转载地址:http://qsry.baihongyu.com/

你可能感兴趣的文章
node安装及配置之windows版
查看>>
Node实现小爬虫
查看>>
Node提示:error code Z_BUF_ERROR,error error -5,error zlib:unexpected end of file
查看>>
Node提示:npm does not support Node.js v12.16.3
查看>>
Node搭建静态资源服务器时后缀名与响应头映射关系的Json文件
查看>>
Node服务在断开SSH后停止运行解决方案(创建守护进程)
查看>>
node模块化
查看>>
node模块的本质
查看>>
node环境下使用import引入外部文件出错
查看>>
node环境:Error listen EADDRINUSE :::3000
查看>>
Node的Web应用框架Express的简介与搭建HelloWorld
查看>>
Node第一天
查看>>
node编译程序内存溢出
查看>>