Created
February 22, 2020 17:53
-
-
Save westphahl/dd8b0b74d2a3611b3bd753bee99059e0 to your computer and use it in GitHub Desktop.
Wireguard systemd config
This file contains 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
# /etc/systemd/network/98-wireguard.network | |
[Match] | |
Name = wg0 | |
[Network] | |
Address = 10.200.200.1/32 | |
[Route] | |
Gateway = 10.200.200.1 | |
Destination = 10.200.200.0/24 |
This file contains 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
#/etc/systemd/network/99-wireguard.netdev | |
[NetDev] | |
Name = wg0 | |
Kind = wireguard | |
Description = Wireguard | |
[WireGuard] | |
ListenPort = 51820 | |
PrivateKey = <pk> | |
[WireGuardPeer] | |
PublicKey = <pk> | |
AllowedIPs = 10.200.200.2/32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment