naggie / dsnet

FAST command to manage a centralised wireguard VPN. Think wg-quick but quicker: key generation + address allocation.
https://calbryant.uk/blog/how-to-set-up-a-wireguard-vpn-in-minutes-with-dsnet/
MIT License
673 stars 33 forks source link

Is it possible to run without root? #87

Closed bbigras closed 1 month ago

naggie commented 1 year ago

It is! Use setuid root, with a dsnet group to decide who can run dsnet.

bbigras commented 1 year ago

Thank you for your quick reply. Sorry for my late one. :sweat_smile:

I mean without any root rights.

I'm also wondering if there's a way to save to a custom folder instead of /etc/something.

It could be useful to have more than 1 "network".

naggie commented 1 month ago

I guess it could be added as an option or env var.

Not possible, I think, unless there's a setcap that gives the right permissions