Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Dec 2001 01:09:00 -0600 (CST)
From:      Ryan Thompson <ryan@sasknow.com>
To:        Philip Hallstrom <philip@adhesivemedia.com>
Cc:        Lee Mark Mercado <mercadolee@hotmail.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: avoid ping
Message-ID:  <20011221010222.R374-100000@catalyst.sasknow.net>
In-Reply-To: <20011220222948.R19330-100000@teak.adhesivemedia.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Philip Hallstrom wrote to Lee Mark Mercado:

> You could configure your firewall to deny those icmp packets...

Yes, but it should be pointed out that you almost certainly don't want
to deny ALL ICMP traffic, as some of it is actually useful :-)

Basically, man 8 ipfw, /icmptypes .. You will want to deny one or both
of echo reply (ICMP type 0), and echo request (type 8).

You might try something like the following. The command below will
allow you to ping other hosts (and will allow the replies to come
back), but will NOT allow echo requests to come IN to your
machine/network:

	ipfw add 400 deny icmp from any to ${you} icmptype 8

Where ${you} is the public IP address of your machine, or network
address of your subnet.

Hope this helps!

- Ryan



> -philip
>
> On Thu, 20 Dec 2001, Lee Mark Mercado wrote:
>
> >
> >
> > how could i avoid being pinged ? i know theres no port for ping and it uses
> > icmp - how could i avoid it then ?
> >
> > need help. thx
> >
> > _________________________________________________________________
> > Send and receive Hotmail on your mobile device: http://mobile.msn.com
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
> >
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>

-- 
  Ryan Thompson <ryan@sasknow.com>
  Network Administrator, Accounts

  SaskNow Technologies - http://www.sasknow.com
  #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2

        Tel: 306-664-3600   Fax: 306-664-1161   Saskatoon
  Toll-Free: 877-727-5669     (877-SASKNOW)     North America


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011221010222.R374-100000>