Re: Translate IPFW rules to PF rules



Hi Ross,

Thanks! I already saw some references to the "self" keyword, but I couldn't
find anything about it in the documentation.

Merry X-mas and a Happy 2007!

Bert.

"Ross Alexander" <rwa@xxxxxxxxxxxxxx> wrote in message
news:86tzzocslz.fsf@xxxxxxxxxxxxxxxxx
"Bert Moorthaemer" <nospam.bert.moorthaemer@xxxxxxxxxx> writes:

Second) there is the "me" keyword in IPFW which I use a couple of times
(there are 5 interfaces in my firewall with each an ip and aliases on
them)
Is there a method in PF that leads to the same result as the "me"
keyword?

first, get a table into scope and load it up with the necessary values:

table <SELF> persist { self };

then refer to <SELF> in the obvious way. DON'T write bare references
to "self" unless you like seeing all your rules multiplied by the
number of interfaces you have up (I have boxes where the cardinality
of <SELF> is on the high side of 50, so this is A Big Deal to me.)

regards,
Ross


.



Relevant Pages

  • Re: Poster boy for optional and keyword args together?
    ... &OPTIONAL and &KEY in the same lambda list; again, the keyword ... In a way, this is vaguely similar to Java's interfaces, whereby ... So if key args were passed in a ... In CL's optionals, ...
    (comp.lang.lisp)
  • Re: Poster boy for optional and keyword args together?
    ... with the keyword args as afterthoughts and importantly a ... &OPTIONAL and &KEY in the same lambda list; again, the keyword ... this is the best explanation I've ever seen of this. ... In a way, this is vaguely similar to Java's interfaces, whereby ...
    (comp.lang.lisp)
  • Re: Java "interface" vs. OO interface
    ... > I think Java uses interfaces instead of classes because the designers ... To think that the designers of Java and .NET couldn't figure out a good ... Enough for a language to adopt a new keyword ...
    (comp.object)
  • Re: problem with optional argument
    ... When building a list of interfaces, the compiler has to make sure ... be the same as the argument that disambiguates by keyword. ... arguments have to precede keyword arguments in an actual argument list. ... But the *disambiguating* keyword argument has to precede the ...
    (comp.lang.fortran)
  • Re: various objects in my VB6 project - Calling IUnknown
    ... >> It encapsulates the act of the object clearing up it's references before ... Private mcSegLensAs TextBox ... extensively, with a variety of small interfaces, and pass-through functions ... A ref to the default interface would be "server-side". ...
    (microsoft.public.vb.general.discussion)