space_server: dhcpd: Add classless static route for 10.42.0.0/16 #63
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: