mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-24 17:53:51 -08:00
feat: allow more ports in firewall for grim dawn
This commit is contained in:
parent
1b5dadfee5
commit
d69e5e7cab
1 changed files with 15 additions and 8 deletions
|
@ -2,25 +2,32 @@ let
|
||||||
universalAllowedPorts = [
|
universalAllowedPorts = [
|
||||||
27016 # grim dawn
|
27016 # grim dawn
|
||||||
42805 # grim dawn
|
42805 # grim dawn
|
||||||
|
42852 # grim dawn
|
||||||
|
42872 # grim dawn
|
||||||
|
27015 # grim dawn
|
||||||
|
27036 # grim dawn
|
||||||
|
|
||||||
5173 # vite test server
|
5173 # vite test server
|
||||||
4173 # vite test server
|
4173 # vite test server
|
||||||
];
|
];
|
||||||
universalAllowedRanges = [
|
universalAllowedRanges = [ ];
|
||||||
{
|
|
||||||
from = 42852;
|
|
||||||
to = 42872;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
|
enable = true;
|
||||||
allowedTCPPorts = universalAllowedPorts;
|
allowedTCPPorts = universalAllowedPorts;
|
||||||
allowedUDPPorts = universalAllowedPorts;
|
allowedUDPPorts = universalAllowedPorts;
|
||||||
allowedUDPPortRanges = universalAllowedRanges;
|
allowedUDPPortRanges = universalAllowedRanges ++ [
|
||||||
|
{
|
||||||
|
from = 27031;
|
||||||
|
to = 27036;
|
||||||
|
}
|
||||||
|
];
|
||||||
allowedTCPPortRanges = universalAllowedRanges;
|
allowedTCPPortRanges = universalAllowedRanges;
|
||||||
};
|
};
|
||||||
networking.firewall.enable = true;
|
|
||||||
networking.nameservers = [
|
networking.nameservers = [
|
||||||
"1.1.1.1"
|
"1.1.1.1"
|
||||||
"1.0.0.1"
|
"1.0.0.1"
|
||||||
|
|
Loading…
Reference in a new issue