PF occasionally "losing" packets

David DeSimone fox at verio.net
Wed May 28 16:54:39 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

user <user at lgkap.com> wrote:
>
> I seem to have a problem with PF "losing" packets.  With PF enabled
> (7.0-RELEASE) allowed traffic will sometimes get through but more
> often will not.

Are you certain that the packets are not passing, or are they simply not
being logged?  You appear to be assuming that every packet that passes
will be logged via pflog(4).

> pass out quick log all
> pass in quick log on fxp1 proto {tcp,udp} from X.33.195/24 to X.33.10.20 port 53 keep state

Both of your rules specify that state be established ("keep state" is
now explicit in 7.0).  Packet logging is only performed when the
rulebase is matched; once that is done, state is established and packets
matching that state are passed without being logged.

The only way to be sure you are losing traffic is by running tcpdump on
both the internal and external interface, and comparing traffic.

- -- 
David DeSimone == Network Admin == fox at verio.net
"This email message is intended for the use of the person to whom
 it has been sent, and may contain information that is confidential
 or legally protected.  If you are not the intended recipient or have
 received this message in error, you are not authorized to copy, dis-
 tribute, or otherwise use this message or its attachments.  Please
 notify the sender immediately by return e-mail and permanently delete
 this message and any attachments.  Verio, Inc. makes no warranty that
 this email is error or virus free.  Thank you."  --Lawyer Bot 6000
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFIPYg3FSrKRjX5eCoRAhoAAKCgj9IB0LY4Iu3AHrXTZPoF+2ramQCfWeV8
tjLhYkVQ3Tq4FlbnJatf5A0=
=wg8t
-----END PGP SIGNATURE-----


More information about the freebsd-pf mailing list