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
nixos/zerotierone: prevent systemd from changing MAC address #77405
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've had similar issue, outgoing ping requests was failing with Destination unreachable: Address unreachable
and several restarts after boot was needed to make zerotier work and this problem seem to go away with this fix.
@danielfullmer for the last month or two I haven't been able to use |
Yes! Thank you for putting an end to my year (!!!) without zerotier! |
We need to cherry-pick this to 19.09 and 20.03. What's the best way of doing this these days? |
https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md#backporting-changes Basically, check out the branch, |
Thanks @cole-h. |
Urgh - this really should have gone to Only creating these Can you create a follow-up PR fixing that behaviour in |
Hm, it's a bit more messy - I'll post a followup PR myself. Thanks for raising this! |
Followed-up in #82310. |
Motivation for this change
zerotier has been very flaky for me after this commit fe3da83. Somehow adding
tap
toboot.kernelModules
was causing issues on cloud hosted instances--as well as in qemu.While debugging, I found that systemd was sometimes changing the MAC address of the interface after it was brought up by zerotier. This is even without using
systemd-networkd
. This PR disables that behavior from systemd for zerotier interfaces.Note that i'm not using the
systemd.network.link.<name>
option in my PR since it is only active whensystemd.network.enable
is set. It's not clear to me if this should be the case or not.I have my own nixos test for zerotier here:
https://github.com/danielfullmer/nixos-config/blob/master/tests/zerotier/default.nix
It only works if this fix is used.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @obadz