This commit is contained in:
soraefir
2026-05-01 17:48:43 +02:00
parent a7ce1dc7ea
commit 32c83bca98
2 changed files with 28 additions and 17 deletions

View File

@@ -53,24 +53,24 @@ let
};
forward = {
inInterface = mkOption {
type = types.str;
default = "ens3";
description = "Incoming interface for forwarding";
type = types.str;
default = "ens3";
description = "Incoming interface for forwarding";
};
toAddr = mkOption {
type = types.str;
description = "Destination address (IPv4 or IPv6)";
example = "10.10.1.2";
};
ports = mkOption {
type = types.listOf (types.listOf types.port);
default = [];
description = "Port mappings: [ [srcPort dstPort] ... ]";
example = [ [ 22 22 ] [ 80 80 ] [ 443 443 ] ];
};
};
toAddr = mkOption {
type = types.str;
description = "Destination address (IPv4 or IPv6)";
example = "10.10.1.2";
};
ports = mkOption {
type = types.listOf (types.listOf types.port);
default = [];
description = "Port mappings: [ [srcPort dstPort] ... ]";
example = [ [ 22 22 ] [ 80 80 ] [ 443 443 ] ];
};
}
};
};
};

View File

@@ -25,6 +25,17 @@
server = {
enable = true;
peers = ["avalon" "asguard" "iriy" "valinor" ];
forward = {
inInterface = "ens3";
toAddr = "10.10.1.2";
ports = [
[ 22 2222 ] # SSH
[ 80 80 ] # HTTP
[ 443 443 ] # HTTPS
[ 3979 3979 ] # OTTD
];
};
};
};
};