nixos nat: add type for sourcePort and destination of forwardPorts
This commit is contained in:
parent
037b1cd0e9
commit
e6ab680cbf
|
@ -76,9 +76,19 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.nat.forwardPorts = mkOption {
|
networking.nat.forwardPorts = mkOption {
|
||||||
type = types.listOf types.attrs;
|
type = types.listOf types.optionSet;
|
||||||
default = [];
|
default = [];
|
||||||
example = [ { sourcePort = 8080; destination = "10.0.0.1:80"; } ];
|
example = [ { sourcePort = 8080; destination = "10.0.0.1:80"; } ];
|
||||||
|
options = {
|
||||||
|
sourcePort = mkOption {
|
||||||
|
type = types.int;
|
||||||
|
};
|
||||||
|
|
||||||
|
destination = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
description =
|
description =
|
||||||
''
|
''
|
||||||
List of forwarded ports from the external interface to
|
List of forwarded ports from the external interface to
|
||||||
|
|
Loading…
Reference in New Issue
Block a user