Suggestion: add to the documentation another way to automatically update the configuration without completely restarting the VPN #228
Labels
documentation
Improvements or additions to documentation
Suggestion: add to the documentation another way to automatically update the configuration with wg syncconf, without completely restarting the VPN.
I use the method for openrc from the documentation, but with a different command in the script in /usr/bin/local/:
wg syncconf wg0 <(wg-quick strip /etc/wireguard/wg0.conf)
Advantage: connected clients will not have a temporary disconnection after the configuration update, since the interface will not be removed and added with wg-quick, but the Wireguard settings will be updated.
Disadvantage: since the wg command is used, and not wg-quick, for example, the IP address, the MTU of the Wireguard interface will not be changed. But I think this is not critical for everyone, and even if it is ever needed, it will be possible to restart the VPN manually with wg-quick. And, I think, even this can be solved, automated, at least partially. For example, add commands to the script that get the MTU value from the config and then set it via the "ip link set mtu <<mtu_value>> up dev wg0" command for the WG interface, just like wg-quick does.
The text was updated successfully, but these errors were encountered: