Skip to content

Instantly share code, notes, and snippets.

@sorz
Created September 19, 2018 17:52
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 sorz/81ae2db1cb1e7748565c7307537a9489 to your computer and use it in GitHub Desktop.
Save sorz/81ae2db1cb1e7748565c7307537a9489 to your computer and use it in GitHub Desktop.
[Unit]
Description=Setup WireGuard link
After=network-online.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/wg-quick up %i
ExecStop=/usr/bin/wg-quick down %i
ProtectSystem=strict
ProtectHome=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment