Forward traffic from apex to ethernet via NAT

This commit is contained in:
2025-09-19 14:08:05 +02:00
parent 2892942fe9
commit 97067691f3
2 changed files with 11 additions and 3 deletions

View File

@@ -28,7 +28,7 @@
{
name = "raccoon";
publicKey = "QUfnGXSMEgu2bviglsaSdCjidB51oEDBFpnSFcKGfDI=";
allowedIPs = [ "10.106.0.236/32" ];
allowedIPs = [ "10.106.0.236/32" "192.168.0.0/16" ];
}
];
};

View File

@@ -1,6 +1,13 @@
{ config, ... }:
{ config, pkgs, ... }:
{
networking.nat = {
enable = true;
enableIPv6 = false;
externalInterface = "eno0";
internalInterfaces = [ "wg0" ];
};
networking.firewall = {
allowedUDPPorts = [ 666 ];
};
@@ -25,8 +32,9 @@
{
name = "apex";
publicKey = "VwhcN8vSOzdJEotQTpmPHBC52x3Hbv1lkFIyKubrnUA=";
allowedIPs = [ "10.106.0.30/32" ];
allowedIPs = [ "10.106.0.30/32" "192.168.0.0/16" ];
endpoint = "ssfhead.bsc.es:666";
persistentKeepalive = 25;
}
];
};