Last active
October 13, 2021 11:11
-
-
Save hex128/958586af76caafea0dcc07d54fc33a33 to your computer and use it in GitHub Desktop.
Apply Wireguard configuration without restart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z "$1" ]; then | |
echo "Usage: $0 <WG_IFACE>" > /dev/stderr | |
exit 1 | |
fi | |
wg addconf wg0 <(wg-quick strip wg0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment