nat pass and state

David DeSimone fox at verio.net
Wed May 21 08:38:48 UTC 2008


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

Jason C. Wells <jcw at highperformance.net> wrote:
>
> Would someone please explain why the nat rule is not sufficient to
> allow me to access a web page?  I must have a gross conceptual error
> on how PF works.  This is too simple, but I just don't get it.

The first packet arrives on $int_if and is blocked by "block in all". 
It never has a chance to route to $ext_if, and thus never matches the
nat rule.  The "nat pass" does not apply because the initial packet is
not arriving on $ext_if so it can't match the rule (yet).

You have to allow the connection in on $int_if first, then when it
routes out $ext_if it will match the nat rule and set up state.

- -- 
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)

iD8DBQFIM9+WFSrKRjX5eCoRAjWPAJ9+rZ6aqUVEEiRulw+nQD2swM84QACcDE5e
x0MSmBXcgbFqPmUkjRIAO60=
=bzw3
-----END PGP SIGNATURE-----


More information about the freebsd-pf mailing list