m13253 / VxWireguard-Generator

Utility to generate VXLAN over Wireguard mesh SD-WAN configuration
MIT License
150 stars 18 forks source link

What is process to expand/reduce number of Configs generated above/below initial Node Count #7

Closed bmullan closed 4 years ago

bmullan commented 4 years ago

@m13253

I am wondering is there a Best Practice you can recommend for this use-case or would VxWireguard need some additional functionality to accomplish it?

Example:

Is there a Process defined for how to do this and not incur any changes to the configs of the original 10 Nodes?

I know a worst-case scenario would be to manually edit configs but that would seem prone to mistakes & errors by users/admins.

Brian

m13253 commented 4 years ago

Hello,

Thank you for your message.

The vwgen showconf <config file> <node name> command is able to generate the most up-to-date version of configuration file for wg-quick use. Placing the generated file at /etc/wireguard/<iface name>.conf and issuing a sudo systemctl restart wg-quick@<iface name> will trigger a restart with new configuration.

If you run as many as 10 servers, I suggest you use any tools that can execute commands simultaneously for each server. Or you can use a bash for-loop to generate and distribute configuration files.

In case my reply does not fully answer solve your question, please feel free to tell me.