Re: IPFW and icmp

From: chip (
Date: 09/02/04

  • Next message: Peter Pentchev: "Re: IPFW and icmp"
    Date: Wed, 1 Sep 2004 23:57:38 -0400

    On Wed, 1 Sep 2004 20:37:52 -0700 (PDT), Dave <> wrote:
    > I'm not a master of the internet RFCs, but I do believe icmp messages have
    > different types.
    > Now to enable traceroute for IPFW, I might put in a rule like this:
    > ipfw add pass icmp from any to me
    > However, how would I make a rule to limit icmp messages to just those used
    > by traceroute? Can the messages be distinguished as such?
    > A dynamic rule that exists only for the duration of a traceroute execution
    > would be even better. I take it 'setup' or 'check-state' would follow in
    > that case?


      I can't comment much on how to build the exact rules you need, but
    you should be made aware that different implementations of traceroute
    achieve the results in different ways. Cisco routers and most *nix
    boxen use UDP packets while Microsoft stuff uses ICMP. A good guide
    to the difference:

    >From a quick google search however, I find the following from:

    # TRACEROUTE - Allow outgoing
    ${fwcmd} add pass udp from any to any 33434-33523 out via ${oif}

    Hope this helps!


    Just my $.02, your mileage may vary,  batteries not included, etc....
    _______________________________________________ mailing list
    To unsubscribe, send any mail to ""

  • Next message: Peter Pentchev: "Re: IPFW and icmp"