Networking Forums

Networking Forums > Computer Networking > Linux Networking > Help: No Ping

Reply
Thread Tools Display Modes

Help: No Ping

 
 
Amy Lee
Guest
Posts: n/a

 
      01-02-2008, 11:48 AM
Hello,

How to avoid others use the command "ping" to scan my computer? My Linux
is RHEL 3. I assume that I should use iptables.

Thank you very much~

Regards,

Amy Lee
 
Reply With Quote
 
 
 
 
Davide Bianchi
Guest
Posts: n/a

 
      01-02-2008, 11:53 AM
On 2008-01-02, Amy Lee <(E-Mail Removed)> wrote:
> How to avoid others use the command "ping" to scan my computer?


Block icmp type 8 (echo-request)
Davide

--
One distinguishing characteristic of BOFHen is attention deficit disorder.
Put me in front of something boring and I can find a near-infinite number
of really creative ways to bugger off.
-- ADB
 
Reply With Quote
 
Amy Lee
Guest
Posts: n/a

 
      01-02-2008, 12:14 PM
On Wed, 02 Jan 2008 13:53:18 +0100, Davide Bianchi wrote:

> On 2008-01-02, Amy Lee <(E-Mail Removed)> wrote:
>> How to avoid others use the command "ping" to scan my computer?

>
> Block icmp type 8 (echo-request)
> Davide

Thank you. But can you tell me more details and how to execute this
command?

Amy
 
Reply With Quote
 
Burkhard Ott
Guest
Posts: n/a

 
      01-02-2008, 12:18 PM
Am Wed, 02 Jan 2008 21:14:26 +0800 schrieb Amy Lee:

> On Wed, 02 Jan 2008 13:53:18 +0100, Davide Bianchi wrote:
>
>> On 2008-01-02, Amy Lee <(E-Mail Removed)> wrote:
>>> How to avoid others use the command "ping" to scan my computer?

^^^^^^^^^^^^^^
You don't need icmp to scan a target.
> Thank you. But can you tell me more details and how to execute this
> command?


iptables -A INPUT -p icmp --icmp-type echo-request -j DROP
What is wrong with scanning?

cheers
 
Reply With Quote
 
Davide Bianchi
Guest
Posts: n/a

 
      01-02-2008, 12:21 PM
On 2008-01-02, Amy Lee <(E-Mail Removed)> wrote:
> Thank you. But can you tell me more details and how to execute this
> command?


There is an extensive documentation on iptable, a search with
google will return you a lot of example that could best suit your needs,
in short, something like

iptables -A INPUT -p ICMP --icmp-type 8 -j DROP

should be enough for what you need

--
When you need a helpline for breakfast cereals, it's time to start
thinking about tearing down civilisation and giving the ants a go.
--Chris King
 
Reply With Quote
 
Amy Lee
Guest
Posts: n/a

 
      01-02-2008, 02:33 PM
On Wed, 02 Jan 2008 13:18:06 +0000, Burkhard Ott wrote:

> Am Wed, 02 Jan 2008 21:14:26 +0800 schrieb Amy Lee:
>
>> On Wed, 02 Jan 2008 13:53:18 +0100, Davide Bianchi wrote:
>>
>>> On 2008-01-02, Amy Lee <(E-Mail Removed)> wrote:
>>>> How to avoid others use the command "ping" to scan my computer?

> ^^^^^^^^^^^^^^
> You don't need icmp to scan a target.
>> Thank you. But can you tell me more details and how to execute this
>> command?

>
> iptables -A INPUT -p icmp --icmp-type echo-request -j DROP
> What is wrong with scanning?
>
> cheers


Thank you. And I wanna know if I enable this strategy whether it will
influence anything else.

Regards,

Amy
 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      01-02-2008, 02:44 PM
Hello,

Amy Lee a écrit :
>
> How to avoid others use the command "ping" to scan my computer? My Linux
> is RHEL 3.


You can't scan a host with ping. You can just learn it's there, but
there are many other methods.

> I assume that I should use iptables.


You don't need iptables for this. You can just instruct the kernel to
ignore ICMP echo requests :

echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
or
sysctl -w net.ipv4.icmp_echo_ignore_all=1

This can usually be made persistent across reboots by adding the
following line into the file /etc/sysctl.conf :

net.ipv4.icmp_echo_ignore_all=1
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When Client Ping DC not respond,but when DC ping clients they resp ahmad Windows Networking 3 07-17-2007 07:44 PM
Ping 224.0.0.2 ping: sendmsg: Operation not permitted interessato@gmail.com Linux Networking 4 01-24-2006 02:47 AM
Ping from cron not having same effect as ping from console Dean Schulze Linux Networking 2 02-24-2004 08:10 PM
Some services working but can't ping (not ping-able) Micah Elliott Linux Networking 1 12-05-2003 09:47 AM
Windows ping and Linux ping command? tom Linux Networking 5 11-10-2003 08:52 PM



1 2 3 4 5 6 7 8 9 10 11