thinkpad: set up wireguard
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Sijmen 2022-08-08 02:11:49 +02:00
parent 37b8a88000
commit d95cb53e56
1 changed files with 22 additions and 0 deletions

View File

@ -52,6 +52,28 @@
allowedUDPPorts = [
21027 # syncthing discovery
22000 # syncthing sync
51820 # wireguard
];
};
wireguard.interfaces.wg0 = {
ips = [ "10.100.0.2/32" ];
listenPort = 51820;
privateKeyFile = "/home/sijmen/wireguard-keys/private";
peers = [{
publicKey = "zu9vXxxg4wm0R4yWQ2HPaAwJbizuccGYbBB/StwSsm4=";
# Forward all the traffic via VPN.
#allowedIPs = [ "0.0.0.0/0" ];
# Or forward only particular subnets
allowedIPs = [ "10.100.0.0/24" ];
# Set this to the server IP and port.
endpoint = "143.178.219.107:51820";
persistentKeepalive = 25;
}
];
};
};