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

allow configuring the default untagged VLAN for ports #433

Merged
merged 1 commit into from
May 7, 2024

Conversation

KanjiMonster
Copy link
Contributor

Using unbridged, untagged ports at the same time as VID 1 as default PVID on a bridge may cause unexpected leakage and forwarding of traffic.

Moving to the reserved VID 4095 would avoid this, but we cannot unconditionally use it until we solved #414, as otherwise we would leak packets with VID 4095.

So for now allow changing the VID used internally for ports, but keep the default at 1.

Using unbridged, untagged ports at the same time as VID 1 as default
PVID on a bridge may cause unexpected leakage and forwarding of traffic.

Moving to the reserved VID 4095 would avoid this, but we cannot
unconditionally use it until we solved #414, as otherwise we would leak
packets with VID 4095.

So for now allow changing the VID used internally for ports, but keep
the default at 1.

Signed-off-by: Jonas Gorski <[email protected]>
@rubensfig
Copy link
Contributor

Tested the patch, and seems to be working as expected.

Some concerns, however. Like mentioned in the other comment, this significantly raises (IMO) the bar for a misconfiguration between this parameter and systemd-network.

Maybe its more implementation work, but don't we have the state of the swbridge in the cache/ can't we query Linux for the VLAN untagged state?

@rubensfig
Copy link
Contributor

LGTM, all discussions resolved!

@rubensfig rubensfig merged commit c9970e0 into main May 7, 2024
5 checks passed
@rubensfig rubensfig deleted the jogo_config_port_vlan branch May 7, 2024 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants