Linux system disable ping command skills

  
                

The ping command in Linux system can be used for network fault diagnosis and check network connectivity, but sometimes it will be exploited by hackers. Sometimes, in order to ensure the security of the system network, the ping command will be forbidden, so how to ban ping What about the order? Let's take a look at it with Xiaobian.

The information transmitted on the halfway line to steal the network through a dedicated hacker programs, and theft over the use of information attack on the specified server or system, for which we need to ban the Linux system Use the ping command. In linux, if you want to make the ping not respond, it is used to ignore the icmp package, so we can enter the following command in the Linux command line:

Disable ICMP protocol access

Make ping No response, ignore the icmp package, type:

echo 1 》 /proc/sys/net/ipv4/icmp_echo_igore_all ;

To restore the ping command, type:

echo 0 /proc/sys/net/ipv4/icmp_echo_igore_all command.

can be placed in /etc/rc.d/rc.local

Limit root

/etc/securetty

tty1

#tty2---6

/etc/secuetty/access.conf

-:root:ALL EXCEPT console

The above is the way Linux prohibits the use of the ping command. If your system has very important data, it is best to disable the ping command.

Copyright © Windows knowledge All Rights Reserved