linux中怎样关闭ICMP回应功能
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
linux中怎样关闭ICMP回应功能
输入:
echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all
即可
如果需要ping通则输入:
echo 0 >/proc/sys/net/ipv4/icmp_echo_ignore_all
该命令重启后会失效,所以应该让其开机后自动运行
echo "echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all" >>/etc/rc.d/rc.local




A beautiful web dashboard for Linux
最近提交(Master分支:26 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)