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

Multiple server instances with seperate config files #54

Open artizirk opened 3 years ago

artizirk commented 3 years ago

I see that currently the config file is hardcoded. It would be useful to have it be configurable via environment or command line argument. That would allow dsnet to use more wireguard interfaces with different configs.

naggie commented 3 years ago

Hm, now that we have the cobra CLI parser it could be added without too much hassle I guess. I think it could be useful, I'll leave this issue open for someone to implement it.

frillip commented 3 years ago

Would need a way of changing the default interface name too?

naggie commented 3 years ago

Already an option, in the config: "InterfaceName": "dsnet",