Add ports

This commit is contained in:
muon 2024-12-19 21:59:30 +00:00
parent 15a3ca5e14
commit 357e290761
4 changed files with 42 additions and 22 deletions

View file

@ -56,7 +56,7 @@ in with lib; {
};
};
networking.firewall.allowedUDPPorts = [ 51820 ];
networking.firewall.allowedUDPPorts = [ 51820 16261 ];
networking.wg-quick.interfaces = lib.mkIf (wg.id != null) {
wg0 = {
address = [

View file

@ -6,5 +6,23 @@
programs.gamemode.enable = true;
users.users.${config.mods.user.name}.extraGroups =
lib.mkAfter [ "gamemode" ];
networking.firewall.allowedTCPPorts = [ 3075 34000 ];
networking.firewall.allowedTCPPortRanges = [
{
from = 27015;
to = 27030;
}
{
from = 27036;
to = 27037;
}
];
networking.firewall.allowedUDPPorts = [ 3075 4380 27036 34000 ];
networking.firewall.allowedUDPPortRanges = [{
from = 27000;
to = 27031;
}];
};
}

View file

@ -13,6 +13,7 @@ in with lib; {
};
config = {
networking.firewall = { allowedTCPPorts = [ 443 80 ]; };
services.grav = mkIf cfg.grav.enable {
enable = true;
systemSettings = {
@ -20,5 +21,6 @@ in with lib; {
pages = { theme = "agency"; };
};
};
users.users.${config.mods.user.name}.extraGroups = lib.mkAfter [ "grav" ];
};
}