From owner-freebsd-questions Tue Jul 17 11:28:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtprelay3.adelphia.net (smtprelay3.adelphia.net [64.8.25.8]) by hub.freebsd.org (Postfix) with ESMTP id 2930337B408 for ; Tue, 17 Jul 2001 11:28:50 -0700 (PDT) (envelope-from ipthomas_77@yahoo.com) Received: from scraemondaemon.my.domain ([24.49.96.3]) by smtprelay3.adelphia.net (Netscape Messaging Server 4.15) with ESMTP id GGMRCL02.71B; Tue, 17 Jul 2001 14:29:09 -0400 Received: (from ipt@localhost) by scraemondaemon.my.domain (8.11.3/8.11.3) id f6HIQqm01861; Tue, 17 Jul 2001 14:26:52 -0400 (EDT) (envelope-from ipt) Date: Tue, 17 Jul 2001 14:26:52 -0400 From: User & Ian Patrick Thomas To: Fernando Gleiser Cc: freebsd-questions@freebsd.org Subject: Re: how could this PACKET get through?! Message-ID: <20010717142652.A1048@localhost> References: <200107171815.OAA19997@mail.ottawa.com> <20010717151034.C96585-100000@cactus.fi.uba.ar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010717151034.C96585-100000@cactus.fi.uba.ar>; from fgleiser@cactus.fi.uba.ar on Tue, Jul 17, 2001 at 03:18:35PM -0300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG How do you keep state on UDP packets, when UDP is a stateless protocol? Ian As it was put forth by Fernando Gleiser on Tue, Jul 17, 2001 at 03:18:35PM -0300... > On Tue, 17 Jul 2001, Mark Livingstone wrote: > [snip] > > > > > pass in log quick on ed0 proto icmp from any to any icmp-type 0 > > pass in log quick on ed0 proto icmp from any to any icmp-type unreach code 3 > > pass in log quick on ed0 proto icmp from any to any icmp-type unreach code 4 > > pass in log quick on ed0 proto icmp from any to any icmp-type timex > ^^^^^^^^ > Here is: you allow incomming icmp time exeeded, and log it. The packet you > received was a time exeeded in transit (11/0). > > Those seem the rules to make traceroute work. If you keep state on > outgoing udp packets you won't need them, the state code can tell > icmp packets which are responses to outgoing packets from icmp packets > which aren't (because an icmp error has the first bytes of the packet which > caused it). > > > > Fer > > > 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