Article View: muc.lists.freebsd.hackers
Article #5Re: improvements to PF macros
From: Adrian Chadd
Date: Thu, 08 Oct 2026 21:07
Date: Thu, 08 Oct 2026 21:07
493 lines
27292 bytes
27292 bytes
--000000000000abf44f065d5aa0c4
Content-Type: text/plain; charset="UTF-8"
Where'd you submit them to exactly? Do you have a freebsd review / pull
request?
-a
On Thu, 8 Oct 2026 at 14:03, Robert Austen <
robert.austen@willowglensystems.com> wrote:
> I've been working with PF under freebsd for a few months, and have noticed
> a recurring theme in the forums,
> that the macros in PF could be improved.
>
> I notice that it is often difficult to define one macro in terms of
> another, and just addressing that item alone would help
> write cleaner simpler rules.
>
> here are two possible changes to parse.y of pfctl.
> change 1:
>
> @@ -872,6 +872,16 @@
> numberstring : NUMBER {
> char *s;
> if (asprintf(&s, "%lld", (long long)$1) == -1) {
> yyerror("string: asprintf");
> YYERROR;
> }
> $$ = s;
> }
> + | '@' STRING {
> + char s = symget($2);
> + if (s == NULL) {
> + yyerror("macro '%s' not defined", $2);
> + YYERROR;
> + }
> + if (($$ = strdup(s)) == NULL) {
> + err(1, "numberstring: strdup");
> + }
> + }
> | STRING
> ;
>
> this change allows a macro to be defined in terms of an existing macro,
> using the '@' to refer to that existing macro by name,
> rather than expanding the macro out and causing the eventual 'syntax
> error' response that often results.
>
> this allows using one macro within another
> set_ext_tag = "tag \"from_outside\""
> is_int_tag = "tagged \"from_inside\""
>
> combined_tags = @set_ext_tag @is_int_tag
>
> this results in $combined_tags expanding to:
> tag "from_outside" tagged "from_inside"
>
>
> change 2:
> @@ -861,6 +861,12 @@
> varstring : numberstring varstring {
> if (asprintf(&$$, "%s %s", $1, $2) == -1)
> err(1, "string: asprintf");
> free($1);
> free($2);
> }
> + | numberstring '+' varstring {
> + if (asprintf(&$$, "%s%s", $1, $3) == -1)
> + err(1, "string: asprintf");
> + free($1);
> + free($3);
> + }
> | numberstring
> ;
>
> the existing grammar for varstring inserts a space, which is not always
> helpful, so the second change.
> this change adds the '+' operator to explicitly concat two strings
> together (either or both could be a macro),
> which allows the following
>
> subnet = "192.168.0."
> client = @subnet + "206"
>
>
> this results in $client expanding to:
> 192.168.0.206
>
>
> I've been working with one external interface and four mostly isolated
> LANs, two of which have common
> rules, and rather than copy-paste everything, I've been fighting with the
> limitations of PF's macros.
> These two changes make it ever so much easier to maintain readable,
> maintainable rules, so I figured
> I would toss them into the ring.
>
>
> Robert
>
>
> ps: I've already submitted my corrections to PFIL (the shared layer
> beneath PF, IPFW, IPTABLES) that block
> by default traffic that goes through the firewall before whatever the
> chosen firewall layer (PF, IPFW, IPTABLES)
> comes alive and loads its ruleset, but I haven't seen them applied.
> Communication wrt them has gone cold.
> But if anyone is interested in blocking unwanted traffic that gets thru
> during a delayed filesystem check etc.,
> I can send them again.
>
>
>
>
>
>
>
>
>
>
>
--000000000000abf44f065d5aa0c4
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div>Where'd you submit them to exactly? Do you have a=
freebsd review / pull request?</div><div><br></div><div><br></div><div>-a<=
/div><div><br></div></div><br><div class=3D"gmail_quote gmail_quote_contain=
er"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, 8 Oct 2026 at 14:03, Robe=
rt Austen <<a href=3D"mailto:robert.austen@willowglensystems.com">robert=
.austen@willowglensystems.com</a>> wrote:<br></div><blockquote class=3D"=
gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(20=
4,204,204);padding-left:1ex"><div class=3D"msg-4778089292391819936">
<div dir=3D"ltr">
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I've been working with PF under freebsd for a few months, and have noti=
ced a recurring theme in the forums,</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
that the macros in PF could be improved.=C2=A0</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I notice that it is often difficult to define one macro in terms of=C2=A0 a=
nother, and just addressing that item alone would help</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
write cleaner simpler rules.</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
here are two possible changes to parse.y of pfctl.</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
change 1:</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
@@ -872,6 +872,16 @@</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
numberstring=E2=80=82=E2=80=82=E2=80=82=E2=80=82=E2=80=82=E2=80=82: NUMBER=
=E2=80=82=E2=80=82=E2=80=82=E2=80=82=E2=80=82=E2=80=82=E2=80=82=E2=80=82=E2=
=80=82=E2=80=82=E2=80=82=E2=80=82=E2=80=82=E2=80=82=E2=80=82=E2=80=82=E2=80=
=82=E2=80=82=E2=80=82=E2=80=82=E2=80=82=E2=80=82{</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
char=E2=80=82=E2=80=82*s;</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
if (asprintf(&s, "%lld", (long long)$1) =3D=3D -1) {</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
yyerror("string: asprintf");</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
YYERROR;</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
}</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
$$ =3D s;</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
}</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
+ | '@' STRING {</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
+ char s =3D symget($2);</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
+ if (s =3D=3D NULL) {</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
+ yyerror("macro '%s' not defined", $2);</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
+ YYERROR;</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
+ }</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
+ if (($$ =3D strdup(s)) =3D=3D NULL) {</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
+ err(1, "numberstring: strdup");</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
+ }</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
+ }</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
| STRING</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
;</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
this change allows a macro to be defined in terms of an existing macro, usi=
ng the '@' to refer to that existing macro by name,</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
rather than expanding the macro out and causing the eventual 'syntax er=
ror' response that often results.</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
this allows using one macro within another</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
set_ext_tag =3D "tag \"from_outside\""</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
is_int_tag =3D "tagged \"from_inside\""</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
combined_tags =3D @set_ext_tag @is_int_tag</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
this results in $combined_tags expanding to:</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 tag "from_outside" =
tagged "from_inside"</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
change 2:</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
@@ -861,6 +861,12 @@</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
varstring=E2=80=82=E2=80=82=E2=80=82: numberstring varstring =E2=80=82=E2=
=80=82=E2=80=82=E2=80=82=E2=80=82=E2=80=82=E2=80=82=E2=80=82=E2=80=82=E2=80=
=82=E2=80=82{</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
if (asprintf(&$$, "%s %s", $1, $2) =3D=3D -1)</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
err(1, "string: asprintf");</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
free($1);</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
free($2);</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
}</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
+ | numberstring '+' varstring {</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
+ if (asprintf(&$$, "%s%s", $1, $3) =3D=3D -1)</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
+ err(1, "string: asprintf");</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
+ free($1);</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
+ free($3);</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
+ }</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
| numberstring</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
;</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
the existing grammar for varstring inserts a space, which is not always hel=
pful, so the second change.</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
this change adds the '+' operator to explicitly concat two strings =
together (either or both could be a macro),</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
which allows the following</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
subnet =3D "192.168.0."</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
client =3D @subnet + "206"</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
this results in $client expanding to:</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0192.168.0.206</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I've been working with one external interface and four mostly isolated =
LANs, two of which have common</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
rules, and rather than copy-paste everything, I've been fighting with t=
he limitations of PF's macros.</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
These two changes make it ever so much easier to maintain readable, maintai=
nable rules, so I figured</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I would toss them into the ring.</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Robert</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
ps: I've already submitted my corrections to PFIL (the shared layer ben=
eath PF, IPFW, IPTABLES) that block</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
by default traffic that goes through the firewall before whatever the chose=
n firewall layer (PF, IPFW, IPTABLES)</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
comes alive and loads its ruleset, but I haven't seen them applied. Com=
munication wrt them has gone cold.</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
But if anyone is interested in blocking unwanted traffic that gets thru dur=
ing a delayed filesystem check etc.,</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I can send them again.</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Cali=
bri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
</div>
</div></blockquote></div>
--000000000000abf44f065d5aa0c4--
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<CAJ-Vmo=JZQkKss=A_vP5PzQo=q4GMbbDB=K39tbRTux0DiqnCw@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<YT6PR01MB1099647AE1BFFA49DE8D72D06EF932@YT6PR01MB10996.CANPRD01.PROD.OUTLOOK.COM>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Adrian Chadd <adrian@freebsd.org>
Newsgroups: muc.lists.freebsd.hackers
Subject: Re: improvements to PF macros
Date: Thu, 8 Oct 2026 14:07:52 -0700
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-hackers@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <CAJ-Vmo=JZQkKss=A_vP5PzQo=q4GMbbDB=K39tbRTux0DiqnCw@mail.gmail.com>
References: <YT6PR01MB1099647AE1BFFA49DE8D72D06EF932@YT6PR01MB10996.CANPRD01.PROD.OUTLOOK.COM>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="000000000000abf44f065d5aa0c4"
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
logging-data="9042"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
t=1791493688; h=from:from:sender:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type:in-reply-to:in-reply-to:
references:references:list-id:list-help:list-owner:list-unsubscribe:
list-subscribe:list-post; bh=DZIIbM7AdG9KuTfVyjgoIYwbqVWRcag8Q8HraCM3ytg=;
b=lrPI7Rdu7zzMw/cJtm78pnIbIlBjKEvsoD6v8bwksS3LWGmGORN1Cmwc7adPySJZ5RcUGP
qJ9dTTIr+kJgJ1vqmee5Erk/BNZxn4YAaMfFpcJvUbs2+4mHHDV1M1p+nUc3+Wl4WY5ihp
XmDGJjxlTrq7y5P1/A72in96muz6Q61/eim8yiQz8NeyV5PuQNu2JPx0j0N8ENYYxFdb2J
Di05JXs89swsKmocaSJZhvoSS4c/Hc7lGtKYOdYxo1KBtcQoRj1ERnM0xn2CMy42zOHHh0
4bF/kPKvYnn4aR4bo3eGYIv8eTcNYw7ci4q5Bgu0IZWW4wPIdibs9UXRgyY69g==
X-Original-To: hackers@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
dkim=none;
arc=pass ("google.com:s=arc-20260327:i=1");
spf=pass (mx1.freebsd.org: domain of adrian.chadd@gmail.com designates 209.85.222.176 as permitted sender) smtp.mailfrom=adrian.chadd@gmail.com;
dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=freebsd.org (policy=none)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1791493684; x=1792098484;
h=content-type:cc:to:subject:message-id:date:from:in-reply-to
:references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=DZIIbM7AdG9KuTfVyjgoIYwbqVWRcag8Q8HraCM3ytg=;
b=ib2hlKbMGgnNU2w7KsGrV0uMWTbeb/v82msJB+xzGNrOIrv1zEHi1G0MqdUM9DvPME
PGWnf357UmHnzgUd68scqsYKr7Ng+Mic+qe4q+0MWjSmQdu3pCPfLchmuMYF+6dTHfNs
Uip+XJOEMxqRo6kDV44MrfkyDY8CcWy25IlmuT4501pgroCOyFoJCWRtuDxVa0Rdf3kN
GCuEhFuy6lKdH35ts0/ANXb3eupTklvuIbA9qzOjeLeCqZXTIAipZflht6/QVw3OZ4eA
emQkrXUyrfX0jrXP1mImMzjAh0X3EbwxfEoORe46Na4vN3ng43Z0yEHPCxzCLqVaoFxR
+4sA==
X-Forwarded-Encrypted: i=1; AKwUvBwrzPEycELixU1XEtkFj4cN3539J2NuEJODFOjQA4jTqVwmuEAUQQRz1lucICXi5hrxIwqLAlPo@freebsd.org
X-Gm-Message-State: AFuF++kb76njuI59rQ3UvyXiancz7Z/hgDpvNrKfnKQZjBu5fJdaVpYW
0seea+a6FxdLwudYZoM9N5pPPx+UYIEOgsLjEevni+qZOi02uj9EcljbgJMjtv48osAhlnlMzSH
UPbD+4gxTOpw59qtiEKhM4+GMLPAYMro=
X-Gm-Gg: AYBFou0OE3JQv8gPy5zjG6ody5aqUq7NRHR6B6PbBZSOyYLpEAZT+Qpa3dEtRh3E64x
iBBQPozCfeobh0uGma246XWSHKNpZstUUwNPlk3XXIbV+sOUi8NM9lUk47oQy1WRGhjyFZWO8Lk
gRBallBXTyc+ey6A/i/KGxWYcSSFCszbEi6lCpmz/Tw2k9Qgn/nT4rGjAaDZXkdqorqWKY1Woqt
eKy+rxxR0zQ8l+Eio/jW/Rctfnk9vySYWaSHMPHOnPl9mF8OfroFyvBjr6KRqmk5/1grQbkYY9A
VxhbqgeiUK/pYSdosKUnCj+XJ+BVVSsXIS0AZOtgFal0mtdQgYTDmmcGzXixMBd9W+fmXR4zMdH
YCxlFmrs2MqSqZnbsdVEf8qg5hImarI6klgaRM06gHipxbPJDhBdyyqxkCu1kEbQo8RNNjZJUJr
Tl5zqKqnFVbQ+CvNnvdP9yPtcm+YjXc54fvcyaECVN3SaPYlQMNUCAcI/p
Precedence: list
In-Reply-To: <YT6PR01MB1099647AE1BFFA49DE8D72D06EF932@YT6PR01MB10996.CANPRD01.PROD.OUTLOOK.COM>
X-Gm-Features: AclHuK-fzdEUbTkNyqe31qI_Q1W9gEiOF5LoMkbEyrm6q-3wYnF5o_h7BsN4n1w
X-Spamd-Bar: /
X-Spamd-Result: default: False [-0.90 / 15.00];
ARC_ALLOW(-1.00)[google.com:s=arc-20260327:i=1];
FORGED_SENDER(0.30)[adrian@freebsd.org,adrianchadd@gmail.com];
R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c];
DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), No valid DKIM,none];
MIME_GOOD(-0.10)[multipart/alternative,text/plain];
TO_DN_EQ_ADDR_SOME(0.00)[];
ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US];
MIME_TRACE(0.00)[0:+,1:+,2:~];
RCVD_COUNT_ONE(0.00)[1];
FREEMAIL_ENVFROM(0.00)[gmail.com];
TO_DN_SOME(0.00)[];
RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.222.176:from];
R_DKIM_NA(0.00)[];
MLMMJ_DEST(0.00)[hackers@freebsd.org];
RCVD_IN_DNSWL_NONE(0.00)[209.85.222.176:from];
FROM_NEQ_ENVFROM(0.00)[adrian@freebsd.org,adrianchadd@gmail.com];
FROM_HAS_DN(0.00)[];
MISSING_XM_UA(0.00)[];
TO_MATCH_ENVRCPT_SOME(0.00)[];
RCVD_TLS_LAST(0.00)[];
PREVIOUSLY_DELIVERED(0.00)[hackers@freebsd.org];
ALIAS_RESOLVED(0.00)[];
RCPT_COUNT_THREE(0.00)[3]
X-Rspamd-Queue-Id: 4j12dd2bcDz3DBd
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes