Configure Wireguard client for COACE

This commit is contained in:
coolneng 2021-03-17 13:10:11 +01:00
parent 3566c001f6
commit 0aa80c3927
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 13 additions and 0 deletions

View File

@ -31,6 +31,19 @@
}
];
};
wg1 = {
address = [ "10.9.0.2/32" ];
privateKeyFile = "/home/coolneng/.wg/keys/privatekey";
peers = [
# unit
{
publicKey = "SYfPEKJkO3HaCiQdV/iionsS6CEjLcLt9C0x0Ib3tEU=";
allowedIPs = [ "10.9.0.1/32" "10.0.1.0/24" ];
endpoint = "coace.ddns.net:1194";
persistentKeepalive = 25;
}
];
};
};
# Enable localhost SSH