How can I set the nic to not respond to ping?

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
Noidly1
Posts: 55
Joined: 2014-11-24 07:09
Has thanked: 14 times

How can I set the nic to not respond to ping?

#1 Post by Noidly1 »

How can I set nic to not respond to ping?
I went to ShieldsUp and only had one port "0" that responded and did so with "closed" which I am assuming is the response to my guess is the ping.

steve_v
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1528
Joined: 2012-10-06 05:31
Location: /dev/chair
Has thanked: 105 times
Been thanked: 255 times

Re: How can I set the nic to not respond to ping?

#2 Post by steve_v »

Noidly1 wrote: 2024-10-10 02:32 How can I set nic to not respond to ping?
By configuring your firewall of choice to drop ICMP echo requests.

Noidly1 wrote: 2024-10-10 02:32 I went to ShieldsUp and only had one port "0" that responded and did so with "closed" which I am assuming is the response to my guess is the ping.
Port 0 has nothing to do with ping. Port 0 is reserved, should never see any traffic at all, and is almost always blocked at your ISP. If it's not, you can use a firewall rule to drop that traffic as well.

Aside, the "stealth" test on GRC is pure paranoia. A closed port will not accept any connections and presents no security risk.
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

User avatar
Uptorn
Posts: 391
Joined: 2022-01-22 01:07
Has thanked: 305 times
Been thanked: 102 times

Re: How can I set the nic to not respond to ping?

#3 Post by Uptorn »

There is a cleaner way to do this.

Set in your /etc/sysctl.conf:

Code: Select all

net.ipv4.icmp_echo_ignore_all = 1
net.ipv6.icmp.echo_ignore_all = 1

Post Reply