winbox: add UDP port range

Wine needs to listen to UDP ports 40k to 50k. Winbox can
use these ports to discover and connect.

Signed-off-by: Armin Mahdilou <Armin.Mahdilou@gmail.com>
This commit is contained in:
Armin Mahdilou 2025-06-24 23:29:31 +02:00
parent ffd3e8f24a
commit f1dc4ca736

View File

@ -24,6 +24,14 @@ in
config = lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
networking.firewall.allowedUDPPorts = lib.optionals cfg.openFirewall [ 5678 ];
networking.firewall = lib.mkIf cfg.openFirewall {
allowedUDPPorts = [ 5678 ];
allowedUDPPortRanges = [
{
from = 40000;
to = 50000;
}
];
};
};
}