Fix cfg
This commit is contained in:
@@ -53,24 +53,24 @@ let
|
|||||||
};
|
};
|
||||||
forward = {
|
forward = {
|
||||||
inInterface = mkOption {
|
inInterface = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "ens3";
|
default = "ens3";
|
||||||
description = "Incoming interface for forwarding";
|
description = "Incoming interface for forwarding";
|
||||||
};
|
};
|
||||||
|
|
||||||
toAddr = mkOption {
|
toAddr = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = "Destination address (IPv4 or IPv6)";
|
description = "Destination address (IPv4 or IPv6)";
|
||||||
example = "10.10.1.2";
|
example = "10.10.1.2";
|
||||||
};
|
};
|
||||||
|
|
||||||
ports = mkOption {
|
ports = mkOption {
|
||||||
type = types.listOf (types.listOf types.port);
|
type = types.listOf (types.listOf types.port);
|
||||||
default = [];
|
default = [];
|
||||||
description = "Port mappings: [ [srcPort dstPort] ... ]";
|
description = "Port mappings: [ [srcPort dstPort] ... ]";
|
||||||
example = [ [ 22 22 ] [ 80 80 ] [ 443 443 ] ];
|
example = [ [ 22 22 ] [ 80 80 ] [ 443 443 ] ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -25,6 +25,17 @@
|
|||||||
server = {
|
server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
peers = ["avalon" "asguard" "iriy" "valinor" ];
|
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
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user