Date: Wed, 7 May 2008 18:06:38 -0400 From: "Ansar Mohammed" <ansarm@gmail.com> To: "'Jeremy Chadwick'" <koitsu@freebsd.org> Cc: freebsd-pf@freebsd.org Subject: RE: UDP weirdness Message-ID: <00bc01c8b08e$a080cf60$e1826e20$@com> In-Reply-To: <20080507214351.GA74641@eos.sc1.parodius.com> References: <004f01c8b068$89c89350$9d59b9f0$@com> <005101c8b06b$5f0743c0$1d15cb40$@com> <008b01c8b081$c74692e0$55d3b8a0$@com> <482215F4.1080806@quis.cx> <00a401c8b084$87da9540$978fbfc0$@com> <20080507214351.GA74641@eos.sc1.parodius.com>
next in thread | previous in thread | raw e-mail | index | archive | help
So I am using FreeBSD 7 and it doesn't work either way with "keep state" there or not. The only catch here is that everything is running on VMWare, although that should not matter. I have been using pf for about 2 years now. I feel this may be a bit of a bug. I even set the state-policy to floating (which I believe is default) and still I need the second rule. > -----Original Message----- > From: Jeremy Chadwick [mailto:koitsu@freebsd.org] > Sent: May 7, 2008 5:44 PM > To: Ansar Mohammed > Cc: 'Jille'; freebsd-pf@freebsd.org > Subject: Re: UDP weirdness > > On Wed, May 07, 2008 at 04:54:22PM -0400, Ansar Mohammed wrote: > > But I thought pf would be tracking state? > > Isnt that the whole point of statefull firewalls? > > UDP is stateless, however pf still tracks the "state" in the sense that > it knows when there's an outbound or inbound initial packet for UDP, > thus creates a "state" for it. It can do the same with ICMP. I > believe > the teardown/state removal is based on a timeout (of when it last sees > packets matching that src/dst IP and port). > > Keep in mind that if you're using RELENG_6, you'll need "keep state" on > those pass in/pass out rules you used. If you're using RELENG_7, "keep > state" is implicit, so you won't need to specify it in your config. > > -- > | Jeremy Chadwick jdc at parodius.com | > | Parodius Networking http://www.parodius.com/ | > | UNIX Systems Administrator Mountain View, CA, USA | > | Making life hard for others since 1977. PGP: 4BD6C0CB |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00bc01c8b08e$a080cf60$e1826e20$>