thinkpad: set up wireguard
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
37b8a88000
commit
d95cb53e56
1 changed files with 22 additions and 0 deletions
|
@ -52,6 +52,28 @@
|
||||||
allowedUDPPorts = [
|
allowedUDPPorts = [
|
||||||
21027 # syncthing discovery
|
21027 # syncthing discovery
|
||||||
22000 # syncthing sync
|
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;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue