This issue was first reported by @nordurljosahvida on the lime-users list here and on a similar issue: #172.
In the original report, a commercial router was connected to the LAN port, and to fix this was enough to move it on the WAN port.
Instead, in this case I observed it on a isolated two LibreMesh nodes network while configuring them one by one using FirstBootWizard.
The setup:
- two LibreMesh nodes are connected via ethernet cable at their LAN ports
- my laptop is connected on the AP of one of the nodes
- the two LibreMesh nodes have different ap_ssid AP ESSID (to me it happened simply because one was already configured with a custom ESSID while the other was not yet configured (had the default "LibreMesh.org" ESSID))
The problem:
- the DHCP offers from both nodes reach my client, my client considers both valid and takes a random one
- the two DHCP offers suggest a different network domain and a different gateway
- when the DHCP offer from the wrong node (the distant one) gets accepted, my client cannot reach the gateway (e.g. I am connected to the AP of a node with 10.13.0.1/16 but my laptop accepts an IPv4 in the 10.249.0.0/16 network, and cannot reach the announced 10.249.0.1 gateway)
What I would expect:
some firewall rule should kill the DHCP requests or the DHCP offers going through br-lan
I thought that this ebtable rule (added 6 years ago in 920ba99) was in charge of filtering these offers, but seems that is not working:
|
"ebtables -A FORWARD -j DROP -d " .. anygw_mac .. "/" .. anygw_mac_mask .. "\n" .. |
This issue was first reported by @nordurljosahvida on the lime-users list here and on a similar issue: #172.
In the original report, a commercial router was connected to the LAN port, and to fix this was enough to move it on the WAN port.
Instead, in this case I observed it on a isolated two LibreMesh nodes network while configuring them one by one using FirstBootWizard.
The setup:
The problem:
What I would expect:
some firewall rule should kill the DHCP requests or the DHCP offers going through br-lan
I thought that this ebtable rule (added 6 years ago in 920ba99) was in charge of filtering these offers, but seems that is not working:
lime-packages/packages/lime-proto-anygw/files/usr/lib/lua/lime/proto/anygw.lua
Line 66 in f33051f