Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: pfctl : recursive parsing of groups

From: Dries Schellekens <gwyllion(at)ace.ulyssis.org>
Date: Mon Mar 31 2003 - 04:39:49 EST

On Sun, 30 Mar 2003, Stephen Samuel wrote:

> for pfctl's parsing of pf and nat rules, a grouping is currently

In 3.3 the , will be optional. From pf.conf(5)

     ifspec         = ( [ ! ] interface-name ) | { interface-list }
     interface-list = [ ! ] interface-name [ [ , ] interface-list ]

There's also a new example how to use macros: MACROS
   Much like cpp(1) or m4(1), macros can be defined that will later be ex-    panded in context. Macro names must start with a letter, and may contain    letters, digits and underscores. Macro names may not be reserved words    (for example pass, in, out). Macros are not expanded inside quotes.

   For example,

        ext_if = "kue0"
        all_ifs = "{" $ext_if lo0 "}"
        pass out on $ext_if from any to any keep state
        pass in  on $ext_if proto tcp from any to any port 25 keep state

> The reason for this is that I ran into a situation where I

If you define your macros like this

Do you need help?X

   ext = "xl0"
   int = "xl1 xl2"
you can write it the above rule lik this

   block in log on { $int $ext } proto udp from any port 2002 to any port 2002

> My workaround was:

I guess your problem is already fixed in 3.3.

Cheers,

Dries

--
Dries Schellekens
email: gwyllion@ulyssis.org
Received on Mon Mar 31 04:40:22 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:29:53 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library