Skip to content

Instantly share code, notes, and snippets.

@midwire
Created March 29, 2023 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save midwire/f565b8d0af4ffaa0f1c5c2a9d5ef9ee4 to your computer and use it in GitHub Desktop.
Save midwire/f565b8d0af4ffaa0f1c5c2a9d5ef9ee4 to your computer and use it in GitHub Desktop.
[Autostart Wireguard VPN] #wireguard
sudo systemctl enable wg-quick@[WG_CONFIG_NAME].service
sudo systemctl daemon-reload
sudo systemctl start wg-quick@[WG_CONFIG_NAME]
systemctl status wg-quick@[WG_CONFIG_NAME]
# To Remove
sudo systemctl stop wg-quick@[WG_CONFIG_NAME]
sudo systemctl disable wg-quick@[WG_CONFIG_NAME].service
sudo rm -i /etc/systemd/system/wg-quick@[WG_CONFIG_NAME]
sudo systemctl daemon-reload
sudo systemctl reset-failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment