Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gluon-ebtables-filter-multicast: block packets with Gluon VXLAN multicast destination #3477

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

neocturne
Copy link
Member

@neocturne neocturne commented Apr 10, 2025

An incorrectly connected node may send wired-mesh packets to another
node's client port. For raw batman-adv, such frames are filtered by
batman-adv, but this does not work with VXLAN encapsulation.

While such packets are not flooded through the mesh because of the
batman-adv noflood flag, they may still reach another node that is
connected in the same incorrect way, which could result in loops and
other connectivity issues.

Filter out packets sent to our VXLAN multicast group address to avoid
such problems.

Fixes #3025


Completely untested, but seems straightforward enough.

Another point for discussion: Do we want to remove some protocols from the gluon-ebtables-filter-multicast allowlist? Running Babel, OSPF or RIP-NG over a regular mesh seems like a bad idea, and unusual enough that requiring to disable the filter may be justified.

@neocturne neocturne added the 2. status: waiting-on-review Awaiting review from the assignee but also interested parties. label Apr 10, 2025
@neocturne neocturne added this to the v2025.1 milestone Apr 10, 2025
@neocturne neocturne requested a review from T-X April 10, 2025 18:20
…cast destination

An incorrectly connected node may send wired-mesh packets to another
node's client port. For raw batman-adv, such frames are filtered by
batman-adv, but this does not work with VXLAN encapsulation.

While such packets are not flooded through the mesh because of the
batman-adv noflood flag, they may still reach another node that is
connected in the same incorrect way, which could result in loops and
other connectivity issues.

Filter out packets sent to our VXLAN multicast group address to avoid
such problems.

Fixes freifunk-gluon#3025
@neocturne neocturne force-pushed the block-nested-vxlan branch from 5e6d25f to 090bcda Compare April 10, 2025 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. status: waiting-on-review Awaiting review from the assignee but also interested parties. 3. topic: firewall 3. topic: package Topic: Gluon Packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prevent VXLAN packages from Wired mesh from entering BATMAN
2 participants