skipto keyword in pf

David DeSimone fox at verio.net
Thu May 2 00:29:27 UTC 2013


Nomad Esst <noname.esst at yahoo.com> wrote:
>
> I have been using IPFW for years, now because of some reasons I'm
> migrating to PF.  In IPFW we can use the "skipto" keyword in order to
> change the order of checking the rules.  How can I do this in PF?

PF processes rules from top to bottom for every packet, only aborting
the rule evaluation in the case that the "quick" keyword is used to
render a decision immediately.

If you are trying to avoid having to evaluate all of your rules on every
packet, you should read up on the "anchor" feature, which allows you to
perform a type of "subroutine call", evaluating a different ruleset upon
some condition.  You could conceivably use that to evaluate some rules
and come to a decision without having to evaluate all of the rules in a
policy.  It would take some rethinking of your existing rules, no doubt.

> Another one, is it possible to filter in/out coming traffic according
> to the source/destination MAC address separately?

As far as I'm aware, PF is a layer-3 only filter, and has no ability to
filter on MAC.

-- 
David DeSimone == Network Admin == fox at verio.net
  "I don't like spinach, and I'm glad I don't, because if I
   liked it I'd eat it, and I just hate it." -- Clarence Darrow


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, distribute, 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.


More information about the freebsd-pf mailing list