Open WillPower3309 opened 4 months ago
Based on a quick search, it seems adding
AmbientCapabilities=CAP_NET_BIND_SERVICE
To the systemd service might fix it, however the official systemd service in the nebula repo doesn't seem to include such a line: https://github.com/slackhq/nebula/blob/master/dist/fedora/nebula.service
I wonder if this issue occurs due to the extra hardening lines in the NixOS nebula systemd service definition
Fixed, PR will be up soon
I wonder if this issue occurs due to the extra hardening lines in the NixOS nebula systemd service definition
Yes, not specifying anything means there's no additional restrictions on the capabilities, while if you specify any, they have to be specified exhaustively.
That sounds good. It would also be good to have a test for this in the NixOS test!
PR up! I have one question I asked there if anyone is able to answer it
Describe the bug
Due to some permission issues with the systemd service created in the nebula module, using a lighthouse as a DNS server as described in https://nebula.defined.net/docs/guides/using-lighthouse-dns/ does not work, as there is a permissions issue:
Steps To Reproduce
Use the following nebula config
Note the message in
systemctl status nebula@home.service
:Expected behavior
The DNS server should start.
Notify maintainers
@numinit @Jaculabilis
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.