feat: accessory ports
This commit is contained in:
parent
b510d5b0e2
commit
7f95600cde
1 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue