Koozali.org: home of the SME Server

echo-request disable

RypPn

echo-request disable
« on: January 22, 2002, 11:05:48 PM »
Hi,

Can anyone advise a straightforward way of disabling ping reply and logging incoming pings, so you'll get in /var/log/messages, IP addresses of little hackers trying to check if your host is up? I don't want to change the server to private mode.

I was thinking of something like this...(someone please correct the errors for me)

/sbin/ipchains -A input -l -i $OUTERIF -p icmp -s 0/0 echo-request -j denylog

But where's the best place to put it so I don't lose it at reboot?

Many thanks in advance.