Skip to content

Conversation

@a-gave
Copy link
Contributor

@a-gave a-gave commented Aug 27, 2025

Fix #1192. In dsa devices if another libremesh node is connected via cable
anygw starts working intermittently for hosts connected via cable

Manually adjust the bridge fdb, as suggested here [0], with an /etc/hotplug.d/net trigger
adding an entry that states that the anygw mac address can be found locally on device br-lan

Then add a nftables guard rule that drop packets with ether source address equal to the anygw_mac
on every dsa user ports that is member of br-lan to prevent icmp6 broadcast loops.

To use the command bridge it is necessary to add the package ip-bridge ~30KB.
This wouldn't be required in swconfig devices but an easy way to distinguish between dsa and swconfig devices
at compile time doesn't exists at the moment.

[0] https://www.kernel.org/doc/html/latest/networking/dsa/configuration.html#forwarding-database-fdb-management

@a-gave a-gave force-pushed the fix/anygw-dsa-mac branch 2 times, most recently from 1340203 to 6830dfe Compare August 27, 2025 20:33
@a-gave a-gave force-pushed the fix/anygw-dsa-mac branch from 6830dfe to e346bf9 Compare August 27, 2025 20:56
@a-gave
Copy link
Contributor Author

a-gave commented Sep 15, 2025

fixed a typo ip-bridge to +ip-bridge
edit: and rebased

Fix libremesh#1192. In dsa devices if another libremesh node is connected via cable
anygw starts working intermittently for hosts connected via cable

Manually adjust the bridge fdb, as suggested here [0], with an /etc/hotplug.d/net trigger
adding an entry that states that the anygw mac address can be found locally on device br-lan

Then add a nftables guard rule that drop packets with ether source address equal to the anygw_mac
on every dsa user ports that is member of br-lan to prevent icmp6 broadcast loops.

To use the command bridge it is necessary to add the package ip-bridge ~30KB.
This wouldn't be required in swconfig devices but an easy way to distinguish between dsa and swconfig devices
at compile time doesn't exists at the moment.

[0] https://www.kernel.org/doc/html/latest/networking/dsa/configuration.html#forwarding-database-fdb-management
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default anygw route working intermittently via cable

1 participant