Re: allowing icmp still doesn't allow traceroute

From: Bob K (melange@yip.org)
Date: 02/27/02


Date: Wed, 27 Feb 2002 17:27:45 -0500
From: Bob K <melange@yip.org>
To: freebsd-security@FreeBSD.ORG

On Wed, Feb 27, 2002 at 05:22:39PM -0500, Bob K wrote:
> On Wed, Feb 27, 2002 at 05:09:28PM -0500, Peter C. Lai wrote:
> > I have:
> > 00600 allow icmp from any to any
> >
> > for ipfw, and i still get sendto Permission denied when
> > I try to traceroute.
> >
> > I later also explicitly defined icmptypes 0,3,8,11,13
> > and this does not solve the problem.
> >
> > any suggestions?
>
> Add a rule such as this one:
>
> add <number> unreach port udp from any to any 33434-33524 in recv <iface>

Sigh, didn't read closely enough, sorry. That'll allow other people to
traceroute to you. You want to allow UDP packets in that above range
leaving your machine - this should do it:

allow udp from any to any 33434-33524 out xmit <iface>

(the "out xmit <iface>" part is optional, depending on the rest of your
rules)

-- 
Bob <melange@yip.org> | It's pretty good, if you don't think about it.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message


Relevant Pages

  • RE: traceroute-like tool for UDP or TCP packet
    ... >> Linux uses UDP packets to traceroute, ... an ICMP packet is a type of UDP packet. ...
    (Security-Basics)
  • allowing icmp still doesnt allow traceroute
    ... 00600 allow icmp from any to any ... for ipfw, and i still get sendto Permission denied when ... I try to traceroute. ... with "unsubscribe freebsd-security" in the body of the message ...
    (FreeBSD-Security)
  • Re: Blocked incoming ICMP, getting outgoing ICMP [3] Destination Unreachable
    ... It sends UDP packets with a very small TTL and waits until the ICMP ... would argue that ICMP echo is the proper protocol for a traceroute ...
    (comp.security.firewalls)
  • Re: disable traceroute to my host
    ... > is it possible to disable using ipfw so people won't be able to traceroute ... be mentioned that man pages coming with FreeBSD (I guess as well as ... It does send 'time exceeded in-transit' icmp message cause TTL ... answer -- you should disallow it with your ipfw. ...
    (FreeBSD-Security)
  • Re: NAT and ICMP utilities
    ... > looks like your router/firewall is blocking the return UDP packets ... so how do I do a ICMP based traceroute? ...
    (alt.os.linux.suse)