add wireguard client config for traffic-stop-box

This commit is contained in:
oxapentane - 2022-04-25 16:16:57 +02:00
parent 0c70973a71
commit d434df993e
Signed by: oxapentane
GPG Key ID: 91FA5E5BF9AA901C
2 changed files with 5 additions and 2 deletions

View File

@ -27,6 +27,7 @@
modules = [
./hosts/traffic-stop-box/configuration.nix
./modules/gnuradio.nix
./modules/radio_wireguard_client.nix
{
nixpkgs.overlays = [ radio-conf.overlay."x86_64-linux" ];
}

View File

@ -1,13 +1,15 @@
{ config, ... }:
{
networking.firewall.allowedUDPPorts = [ 51820 ];
networking.wg-quick.interfaces.wg-dvb = {
address = "10.13.37.5/32"
address = [ "10.13.37.5/32" ];
privateKeyFile = "/root/wg-seckey";
peers = [{
publicKey = "WDvCObJ0WgCCZ0ORV2q4sdXblBd8pOPZBmeWr97yphY=";
allowedIPs = "10.13.37.0/24";
allowedIPs = [ "10.13.37.0/24" ];
endpoint = "academicstrokes.com:51820";
persistentKeepalive = 25;
}];