-
Notifications
You must be signed in to change notification settings - Fork 20
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
space_server: dhcpd: Add classless static route for 10.42.0.0/16 #63
base: master
Are you sure you want to change the base?
Conversation
Actually, the solution I propose in this PR does not do what I want. I would actually like the routing to be identical between Labitat wifi, and wired, so it is easy to for example, add a static route via a wired machine, from a laptop on wifi. The only clean solution to that problem I can think of, is if my laptop and the wired box are on the same subnet. Unfortunately 10.42.1.0/24 and 10.42.2.0/24 are not in the same /23... and a /22 would also encompass the Free wifi, and admin net, which I'm not sure is desirable. So significant shuffling of IPs would be required to achieve that new merged wifi+wired subnet. Does anyone have opinions about this idea? :) |
Yes, I would very much like to keep they layer 2 domains small to limit the blast radius if someone connects their router wrongly and provides a competing DHCP server or something like that, that is not unlikely in a hackerspace. And I'd also like the subnets to match the layer 2 domains. The routing between the networks works exactly as intended as is. If you choose to override the default route you get from DHCP then you should also be to |
(Note: all mentions of "wifi" refer to the SSID "Labitat" that requires your member password to use)
Thx for the reply :)
Gotcha! So that if someone does something weird, there is still another way to connect that is undisrupted by whatever is going on in the other subnet, did I understand that right?
Right - I could have phrased myself more clearly - that was my second suggestion :) That we have a shared subnet (like a /23), with a broadcast domain that spans both wifi and wired.
My opinion is that networking should work for most common usecases out-of-the-box, without manual fiddling to get things like printing working. I consider a VPN to be a common usecase in a hackerspace :)
Sorry, but I think calling Mullvad VPN a "custom setup" is disingenuous. I think having a commercial/personal VPN for internet traffic is quite common, and I'm sure I'm not the only person using specifically Mullvad VPN. Purposefully letting the network be broken for such a common setup would need a very good reason. And I think we can solve the redundancy need in another way :) Are there other features of the current setup, except the redundancy, that would disappear if we merged the subnets? |
WIP. Request for feedback :)
Change:
Add a Classless Static Route of 10.42.0.0/16 to some subnets of the DHCP server.
(Because some DHCP clients ignore default route when a Classless Static Route is set, it also sets the default route. See dhcp-options(5), RFC3442, and https://ral-arturo.org/2018/09/12/dhcp-static-route.html)
Background:
When connected to Labitat wifi (10.42.2.0/24), my laptop could not speak to a wired box on 10.42.1.0/24, if my Mullvad VPN was active.
Normally, when using space_server as default route and no VPN, traffic to other subnets will be correctly routed.
But because my VPN hijacks the default route, it also wrongly hijacks traffic to other local subnets.
Questions: