mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-24 17:53:51 -08:00
networking: open firewall ports for grim dawn
This commit is contained in:
parent
4516685bb9
commit
dc86e970e7
1 changed files with 16 additions and 3 deletions
|
@ -1,6 +1,19 @@
|
||||||
|
let
|
||||||
|
universalAllowedPorts = [27016 42805];
|
||||||
|
universalAllowedRanges = [
|
||||||
{
|
{
|
||||||
|
from = 42852;
|
||||||
|
to = 42872;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
in {
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
networking.firewall = {
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
allowedTCPPorts = universalAllowedPorts;
|
||||||
|
allowedUDPPorts = universalAllowedPorts;
|
||||||
|
allowedUDPPortRanges = universalAllowedRanges;
|
||||||
|
allowedTCPPortRanges = universalAllowedRanges;
|
||||||
|
};
|
||||||
|
networking.firewall.enable = true;
|
||||||
networking.nameservers = ["1.1.1.1" "1.0.0.1"];
|
networking.nameservers = ["1.1.1.1" "1.0.0.1"];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue