Created
March 29, 2023 16:53
-
-
Save midwire/f565b8d0af4ffaa0f1c5c2a9d5ef9ee4 to your computer and use it in GitHub Desktop.
[Autostart Wireguard VPN] #wireguard
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
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