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
679 stars 32 forks source link

Feature request: Flag for custom IP for "dsnet add" #89

Open haary opened 1 year ago

haary commented 1 year ago

Sure, one can edit /etc/dsnetconfig.json, set a custom IP address and run "dsnet sync". But it would be nice to have the ability to config a custom IP address when adding new peers. Because auto-assigning the lowest available IP address is not always wanted.

E.g. something like dsnet add myhost --ipv4 10.80.54.100 would be nice.

naggie commented 1 year ago

Yep, good idea. I'd be happy to merge a PR for that + an IPv6 flag