Never Ask Questions On A Friday Afternoon

Max Laier max at love2party.net
Mon Aug 21 17:43:18 UTC 2006


On Monday 21 August 2006 19:32, beno wrote:
> Bill Marquette wrote:
> > Loads here, your ISP must be blocking it.  Here's the subect lines
> > from that thread and the authors for you to Google - should be able
> > to find this thread on any number of mailing list archive sites.
> >
> >  1. 2006-05-26 Re: Recursive macro expansion problems
> > openbsd-p Daniel Hartmeier
> >  2. 2006-05-26 Re: Recursive macro expansion problems
> > openbsd-p Siju George
> >  3. 2006-05-24 Re: Recursive macro expansion problems
> > openbsd-p andrew fresh
> >  4. 2006-05-23 Re: Recursive macro expansion problems
> > openbsd-p Daniel Hartmeier
> >  5. 2006-05-23 Recursive macro expansion problems
> > openbsd-p andrew fresh
>
> That helped a lot. Strange little trick...glad it works! But unless I
> (again) missed something, that still doesn't address how to deal with
> the CIDR/netmask problem:
>
> directv_ip_addresses="69.19.0.0/17"
>
> where (apparently) the parser doesn't like that "/". I tried escaping
> it
>
> directv_ip_addresses="69.19.0.0\/17"
>
> but that didn't work either. It would be great if we could do something
> like this:
>
> directv_ip_addresses="69.19.0.0 netmask 255.255.0.0"
>
> or whatever, but no go. So, what to do? Again, the fact that this is a
> *known problem* that *hasn't* been fixed gives every indication that
> there's a workaround :) Max Laier wrote this last week:
>
> That's a well-known problem in the pfctl-parser.  Patches have been
> proposed but never made it to the tree - afaik.  Look in the archives
> of this and the original ML for reasons and detailed discussion.
>
> Unfortunately, googling my best I couldn't find anything in either list
> on the subject. TIA,
> beno

printf 'list="{ 10/8, 192.168.0/24 }"\npass from $list to any\n' | 
pfctl -nvf-

list = "{ 10/8, 192.168.0/24 }"
pass inet from 10.0.0.0/8 to any
pass inet from 192.168.0.0/24 to any


-- 
/"\  Best regards,                      | mlaier at freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier at EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-pf/attachments/20060821/65366642/attachment.pgp


More information about the freebsd-pf mailing list