feat: accessory ports

This commit is contained in:
s-prechtl 2025-12-02 19:30:00 +01:00
parent b510d5b0e2
commit 7f95600cde

View file

@ -1,11 +1,21 @@
{config, ...}: {
{config, ...}: let
accessoryStart = 20000;
accessoryEnd = 20200;
in {
services.homebridge = {
enable = true;
openFirewall = true;
settings = {
port = {
start = accessoryStart;
end = accessoryEnd;
};
};
};
# 50202 LG Subbridge
networking.firewall.allowedTCPPorts = [ config.services.homebridge.settings.bridge.port 50202 ];
networking.firewall.allowedTCPPortRanges = [ {from = accessoryStart; to = accessoryEnd;} ];
networking.firewall.allowedUDPPorts = [ 5353 ]; # mDNS / Bonjour