The centos server is prohibited from being pinged

888u

Last update at :2024-05-15,Edit by888u

Centos system allows ping by default. If you have server root account management rights, you can permanently disable ping by modifying the Centos system kernel parameters. Edit the /etc/sysctl.conf file.

vi /etc/sysctl.conf

Add the following content at the end of /etc/sysctl.conf:

net.ipv4.icmp_echo_ignore_all=1 //1 is disabled, 0 is enabled

Execute after saving and exiting:

sysctl -p

Enable the configuration to take effect.

Recommended site searches: IP reverse domain name checking, registration-free space in mainland China, server space, Western Digital registration, registered unregistered domain names, agency service IP, US vps host, domain name reservation, Beijing domain name registration anti-attack IP, < /p>

The centos server is prohibited from being pinged

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码