Merge pull request #154180 from lovesegfault/roon-server-firewall-fix

nixos/roon-server: open TCP ports 9330-9332 in firewall
This commit is contained in:
Bernardo Meurer 2022-01-24 02:36:14 +00:00 committed by GitHub
commit 7e395a4f40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,7 +51,10 @@ in {
};
networking.firewall = mkIf cfg.openFirewall {
allowedTCPPortRanges = [{ from = 9100; to = 9200; }];
allowedTCPPortRanges = [
{ from = 9100; to = 9200; }
{ from = 9330; to = 9332; }
];
allowedUDPPorts = [ 9003 ];
extraCommands = ''
iptables -A INPUT -s 224.0.0.0/4 -j ACCEPT