Infini-FRAMEWORK: setup pyro datacenter vpn

This commit is contained in:
Infinidoge 2025-01-20 13:16:17 -05:00
parent 7fc69af332
commit 918c2ea08b
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A

View file

@ -108,6 +108,20 @@
}
];
networking.firewall.allowedUDPPorts = [ 51820 ];
networking.wg-quick.interfaces.wg0 = {
address = [ "10.10.0.3/32" ];
listenPort = 51820;
privateKeyFile = "/home/infinidoge/tmp/bb-vpn.key";
peers = [{
publicKey = "SYpnrGvxx8l4w9c7KVRVW6GyNDr/iK+maPPMw/Ua7XY=";
allowedIPs = [ "10.9.0.0/24" ];
endpoint = "66.23.193.252:55555";
persistentKeepalive = 25;
}];
};
specialisation.router.configuration = {
networking = {
interfaces."enp0s13f0u1" = {