On Linux systems, under bash, we can run the following command to reload and apply a revised WireGuard configuration file without restarting and distrupting the clients
wg syncconf wg0 <(wg-quick strip wg0)
Note that this command may not work for shells other than bash. However, we can always complete this in a three step fashion.
wg-quick strip wg0 > temp_wg0.conf
wg sysconf wg0 temp_wg0.conf
rm temp_wg0.conf
No comments:
Post a Comment