Date: Mon, 21 Aug 2006 19:43:06 +0200 From: Max Laier <max@love2party.net> To: freebsd-pf@freebsd.org Subject: Re: Never Ask Questions On A Friday Afternoon Message-ID: <200608211943.12721.max@love2party.net> In-Reply-To: <44E9EE39.3050404@2012.vi> References: <44E9C775.5060009@2012.vi> <55e8a96c0608211010q35b64221sad299c67f8ebb888@mail.gmail.com> <44E9EE39.3050404@2012.vi>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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@freebsd.org
\ / Max Laier | ICQ #67774661
X http://pf4freebsd.love2party.net/ | mlaier@EFnet
/ \ ASCII Ribbon Campaign | Against HTML Mail and News
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)
iD8DBQBE6fCwXyyEoT62BG0RAo+BAJ9HXmI/+AmFOh7Hxs/b3WH541aU1QCbBE92
XTZJFfvflsbfLMIeCjOTDY4=
=/z1o
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608211943.12721.max>
