Page MenuHomeFreeBSD

pfsenseProject
ActivePublic

Recent Activity

Yesterday

rcm closed D56559: pf: Document broadcast/multicast forwarding through route-to.
Thu, Apr 23, 7:30 PM · pfsense
glebius accepted D56559: pf: Document broadcast/multicast forwarding through route-to.

Thanks!

Thu, Apr 23, 4:59 PM · pfsense
rcm retitled D56559: pf: Document broadcast/multicast forwarding through route-to from pf: document broadcast/multicast forwarding through route-to to pf: Document broadcast/multicast forwarding through route-to.
Thu, Apr 23, 12:17 PM · pfsense
rcm updated the summary of D56559: pf: Document broadcast/multicast forwarding through route-to.
Thu, Apr 23, 12:12 PM · pfsense
kp accepted D56559: pf: Document broadcast/multicast forwarding through route-to.

I suppose we could spell the example rules like this too:
block out quick on $wan from any to { 255.255.255.255, ($wan:broadcast), 224.0.0.0/4, ff00::/8 } received-on any
but they're fine as they are. They result in the same rules in the kernel anyway.

Thu, Apr 23, 9:00 AM · pfsense

Wed, Apr 22

rcm updated the summary of D56559: pf: Document broadcast/multicast forwarding through route-to.
Wed, Apr 22, 8:57 PM · pfsense
rcm retitled D56559: pf: Document broadcast/multicast forwarding through route-to from pf: don't route broadcast or multicast traffic to pf: document broadcast/multicast forwarding through route-to.
Wed, Apr 22, 8:07 PM · pfsense
rcm updated the diff for D56559: pf: Document broadcast/multicast forwarding through route-to.

Okay, I think I've got this sorted now. The patch now leaves pf.c
untouched and instead:

Wed, Apr 22, 7:58 PM · pfsense
rcm added a comment to D56559: pf: Document broadcast/multicast forwarding through route-to.
In D56559#1294810, @rcm wrote:

So I think the question is really: are we okay with pf_route
forwarding broadcasts when ip_forward (nominally) doesn't? If yes, then I do agree at least a few lines in the man page be introduced that calls out this difference, and maybe prescribes example rules that can be used to plug any undesirable leaks.

I think we are okay. Packet filters are really designed to make network stacks to malfunction.

A good documentation change would be better than a policy.

Wed, Apr 22, 4:18 PM · pfsense
glebius added a comment to D56559: pf: Document broadcast/multicast forwarding through route-to.
In D56559#1294810, @rcm wrote:

So I think the question is really: are we okay with pf_route
forwarding broadcasts when ip_forward (nominally) doesn't? If yes, then I do agree at least a few lines in the man page be introduced that calls out this difference, and maybe prescribes example rules that can be used to plug any undesirable leaks.

Wed, Apr 22, 3:52 PM · pfsense
rcm updated the diff for D56559: pf: Document broadcast/multicast forwarding through route-to.
Wed, Apr 22, 3:52 PM · pfsense
rcm added a comment to D56559: pf: Document broadcast/multicast forwarding through route-to.
In D56559#1295079, @kp wrote:

I do also see test failures in sys/netpfil/pf/pfsync:rt_af, sys/netpfil/pf/src_track:sn_types_compat and sys/netpfil/pf/src_track:sn_types_pass with this patch. I've not debugged these, but this change does appear to be responsible.

Wed, Apr 22, 2:57 PM · pfsense
kp added a comment to D56559: pf: Document broadcast/multicast forwarding through route-to.

There are good arguments for both blocking and allowing this I believe.
I'm not entirely sure where I fall. On the one hand, yes, users should be allowed to shoot themselves in the foot if they really want to, but on the other hand, it's non-obvious that this will happen. There are going to be a lot more users in the "I didn't want this to happen but it did" camp than there'd be in the "I want to do this dumb thing and pf won't let me." camp.

Wed, Apr 22, 12:44 PM · pfsense
lytboris_gmail.com added inline comments to D56559: pf: Document broadcast/multicast forwarding through route-to.
Wed, Apr 22, 6:46 AM · pfsense
rcm added a comment to D56559: pf: Document broadcast/multicast forwarding through route-to.
In D56559#1294664, @rcm wrote:

I always assumed "policy routing" by packet filters a tool that allows to shoot into ones leg. I can imagine some weird scenarios where people would use pf to actually inject packets where it won't be routed by the normal stack.

That's fair. Though, currently, an operator who uses pf route-to without realizing it can emit L2 broadcasts across broadcast domains is foot-shooting themselves unknowingly. :)

We do not prevent a superuser from foot-shooting and we do not assume that superuser is stupid. A warning should be enough.

Wed, Apr 22, 3:32 AM · pfsense

Tue, Apr 21

eugen_grosbein.net added a comment to D56559: pf: Document broadcast/multicast forwarding through route-to.
In D56559#1294664, @rcm wrote:

I always assumed "policy routing" by packet filters a tool that allows to shoot into ones leg. I can imagine some weird scenarios where people would use pf to actually inject packets where it won't be routed by the normal stack.

That's fair. Though, currently, an operator who uses pf route-to without realizing it can emit L2 broadcasts across broadcast domains is foot-shooting themselves unknowingly. :)

Tue, Apr 21, 6:48 PM · pfsense
rcm added a comment to D56559: pf: Document broadcast/multicast forwarding through route-to.

I always assumed "policy routing" by packet filters a tool that allows to shoot into ones leg. I can imagine some weird scenarios where people would use pf to actually inject packets where it won't be routed by the normal stack.

Tue, Apr 21, 6:36 PM · pfsense
glebius added a comment to D56559: pf: Document broadcast/multicast forwarding through route-to.

I always assumed "policy routing" by packet filters a tool that allows to shoot into ones leg. I can imagine some weird scenarios where people would use pf to actually inject packets where it won't be routed by the normal stack.

Tue, Apr 21, 6:18 PM · pfsense
rcm updated the diff for D56559: pf: Document broadcast/multicast forwarding through route-to.
Tue, Apr 21, 5:58 PM · pfsense
rcm updated the summary of D56559: pf: Document broadcast/multicast forwarding through route-to.
Tue, Apr 21, 5:52 PM · pfsense
rcm requested review of D56559: pf: Document broadcast/multicast forwarding through route-to.
Tue, Apr 21, 5:40 PM · pfsense

Feb 22 2025

bofh removed a member for pfsense: grehan.
Feb 22 2025, 11:50 AM

Sep 7 2023

delphij added a watcher for pfsense: delphij.
Sep 7 2023, 4:39 PM

Jun 15 2023

gjb removed a watcher for pfsense: gjb.
Jun 15 2023, 3:46 PM

Jun 12 2023

franco_opnsense.org added a comment to D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.

For emphasis: I said for clarity it's beneficial to read the VLAN ID and at least show it. Doing it here assuming it's zero but giving no way to verify is simply risky.

Jun 12 2023, 7:16 PM · pfsense
rcm added a comment to D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.

For the print alone it's beneficial to read the VLAN ID and show it. The way it is now it just pushes the maintenance cost to a future point/individual if the PCAP implementation doesn't do what is assumed here (and not even correctly documented as a comment).

Jun 12 2023, 7:12 PM · pfsense
franco_opnsense.org added a comment to D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.

For the print alone it's beneficial to read the VLAN ID and show it. The way it is now it just pushes the maintenance cost to a future point/individual if the PCAP implementation doesn't do what is assumed here (and not even correctly documented as a comment).

Jun 12 2023, 7:09 PM · pfsense
cy closed D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.
Jun 12 2023, 2:30 PM · pfsense
rcm updated the summary of D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.
Jun 12 2023, 2:29 PM · pfsense
rcm updated the summary of D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.
Jun 12 2023, 2:29 PM · pfsense
rcm added inline comments to D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.
Jun 12 2023, 2:29 PM · pfsense
franco_opnsense.org added inline comments to D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.
Jun 12 2023, 2:29 PM · pfsense

Jun 11 2023

cy accepted D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.

LGTM. I will commit this on Monday for you.

Jun 11 2023, 10:16 PM · pfsense
cy added a comment to D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.
In D40442#921594, @rcm_rcm.sh wrote:

http://lists.infradead.org/pipermail/hostap/2023-June/041627.html

I managed to get subscribed to the hostap mailing list. I also brought along another patch from FreeBSD so the l2 receive code should now be consistent between the two trees.

Jun 11 2023, 10:16 PM · pfsense

Jun 9 2023

rcm added a comment to D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.

I managed to get subscribed to the hostap mailing list. I also brought along another patch from FreeBSD so the l2 receive code should now be consistent between the two trees.

Jun 9 2023, 4:33 PM · pfsense

Jun 8 2023

rcm updated the diff for D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.

There was a regression in the latest diff. That has been fixed now.

Jun 8 2023, 7:13 PM · pfsense
rcm added a comment to D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.
In D40442#921284, @cy wrote:

Can you also please send this to our upstream, hostap@lists.infradead.org. I prefer not having our source diverge from upstream too much.

Other than that, looks good. I'll do some regression testing here.

Jun 8 2023, 1:23 PM · pfsense
rcm updated the diff for D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.

Not sure why the last diff did not apply. I recreated it. Hopefully this one works.

Jun 8 2023, 2:54 AM · pfsense
cy requested changes to D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.

Patch does not apply.

Jun 8 2023, 12:18 AM · pfsense
cy added a comment to D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.

slippy$ git apply /tmp/D40442.diff
error: patch failed: contrib/wpa/src/l2_packet/l2_packet_freebsd.c:99
error: contrib/wpa/src/l2_packet/l2_packet_freebsd.c: patch does not apply
slippy$ patch -C -p1 < /tmp/D40442.diff
Hmm... Looks like a unified diff to me...

The text leading up to this was:

diff --git a/contrib/wpa/src/l2_packet/l2_packet_freebsd.c b/contrib/wpa/src/l2_packet/l2_packet_freebsd.c
--- a/contrib/wpa/src/l2_packet/l2_packet_freebsd.c
+++ b/contrib/wpa/src/l2_packet/l2_packet_freebsd.c

Patching file contrib/wpa/src/l2_packet/l2_packet_freebsd.c using Plan A...
Hunk #1 succeeded at 21.
Hunk #2 failed at 100.
Hunk #3 failed at 131.
2 out of 3 hunks failed while patching contrib/wpa/src/l2_packet/l2_packet_freebsd.c
Hmm... Ignoring the trailing garbage.
done
slippy$

Jun 8 2023, 12:16 AM · pfsense
cy added a comment to D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.

Can you also please send this to our upstream, hostap@lists.infradead.org. I prefer not having our source diverge from upstream too much.

Jun 8 2023, 12:14 AM · pfsense
cy added a reviewer for D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames: bz.
Jun 8 2023, 12:06 AM · pfsense

Jun 7 2023

rcm added a member for pfsense: rcm.
Jun 7 2023, 8:20 PM
rcm retitled D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames from wip: wpa_supplicant: Enable receiving priority tagged (VID 0) frames to wpa_supplicant: Enable receiving priority tagged (VID 0) frames.
Jun 7 2023, 4:38 PM · pfsense
rcm updated the diff for D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.

This revision narrows the scope of change to only focus on FreeBSD related L2 packet handling in wpa_supplicant. The previous revision updated all occurrences of the filter program, however failed to account for packet and length offsets when handling encapsulated frames. Someone else can pick up the torch and provide patches for other platforms upstream as-needed.

Jun 7 2023, 4:31 PM · pfsense
rcm retitled D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames from wpa_supplicant: Enable receiving priority tagged (VID 0) frames to wip: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.
Jun 7 2023, 1:31 PM · pfsense
lwhsu added a reviewer for D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames: cy.
Jun 7 2023, 2:07 AM · pfsense

Jun 6 2023

rcm requested review of D40442: wpa_supplicant: Enable receiving priority tagged (VID 0) frames.
Jun 6 2023, 7:29 PM · pfsense

May 24 2022

linnemannr_gmail.com added a member for pfsense: linnemannr_gmail.com.
May 24 2022, 10:35 PM

Mar 25 2022

scottl removed a member for pfsense: scottl.
Mar 25 2022, 10:08 PM