Skip to Content
keelbox

Known services

host:
  firewall:
    allow:
      - {service: unifi}
      - {service: jellyfin, from: 192.168.1.0/24}

A service entry in host.firewall.allow opens every port its section below lists, TCP and UDP. from defaults to lan, and name renames the rules, which are commented keelbox allow unifi. Published ports of system Docker containers get the same exceptions.

  • An entry names a service or a port, not both. For a port a section does not list, add a port entry: {name: jellyfin-dlna, port: 1900, proto: udp}.
  • No preset opens SSH or a port its vendor marks as local-only. Ports are as each vendor's page listed them on 2026-11-07.
  • On a machine already in use, keelbox up and keelbox plan --impact recognise these services by process name, systemd unit or container image. For each one the firewall would cut off, up asks once and plan --impact prints the entry that keeps it.

Ports marked "discovery" carry the broadcasts or multicasts devices and apps use to find a service on the LAN. The entry admits them from the LAN like any other port. Docker does not forward broadcasts to a container on a bridge network, so discovery reaches a container only with network_mode: host. Without discovery, enter the address in the app or device by hand; for UniFi, set-inform http://ADDRESS:8080/inform on the device.

adguard

AdGuard Home. Source: https://github.com/AdguardTeam/AdGuardHome/wiki/Docker.

PortProtocolFor
53tcpplain DNS
53udpplain DNS
80tcpadmin panel
443tcpHTTPS and DNS-over-HTTPS
443udpDNS-over-HTTPS over HTTP/3
853tcpDNS-over-TLS
853udpDNS-over-QUIC
3000tcpadmin web interface during setup

Recognised by process AdGuardHome, unit AdGuardHome.service or image adguardhome.

Not opened:

  • 67-68/udp, its DHCP server. Requests come from 0.0.0.0, which no LAN rule matches.
  • 5443, DNSCrypt.
  • 6060/tcp, debug profiles.

home-assistant

Home Assistant. Source: https://www.home-assistant.io/integrations/http/.

PortProtocolFor
8123tcpweb interface and apps, the default for Home Assistant Container and Core

Recognised by process hass, unit home-assistant@*, homeassistant.service or home-assistant.service, or image home-assistant or homeassistant.

Not opened: 21063/tcp and up, which HomeKit Bridge uses once set up. Add its port as an entry. UFW already admits mDNS, 5353/udp multicast.

jellyfin

Jellyfin. Source: https://jellyfin.org/docs/general/post-install/networking/.

PortProtocolFor
8096tcpweb interface and apps (HTTP)
8920tcpHTTPS, when enabled
7359udpclient discovery on the local network; discovery

Recognised by process jellyfin, unit jellyfin.service or image jellyfin.

Not opened: 1900/udp, which the DLNA plugin uses. Its entry is {port: 1900, proto: udp}.

pihole

Pi-hole. Source: https://docs.pi-hole.net/main/prerequisites/.

PortProtocolFor
53tcpDNS
53udpDNS
80tcpweb interface (HTTP)
443tcpweb interface (HTTPS)

Recognised by process pihole-FTL, unit pihole-FTL.service or image pihole.

Not opened:

  • 67/udp and 547/udp, its DHCP server. Requests come from 0.0.0.0, which no LAN rule matches.
  • 123/udp, its optional NTP server.

plex

Plex Media Server. Source: https://support.plex.tv/articles/201543147-what-network-ports-do-i-need-to-allow-through-my-firewall/.

PortProtocolFor
32400tcpaccess to the Plex Media Server (required)
1900udpthe Plex DLNA Server; discovery
5353udpolder Bonjour/Avahi network discovery; discovery
8324tcpcontrolling Plex for Roku via Plex Companion
32410udpGDM network discovery; discovery
32412-32414udpGDM network discovery; discovery
32469tcpthe Plex DLNA Server

Recognised by process Plex Media Serv or Plex DLNA Serve, unit plexmediaserver.service, or image plex or pms-docker.

portainer

Portainer. Source: https://docs.portainer.io/start/requirements-and-prerequisites.

PortProtocolFor
9443tcpthe UI and API
8000tcpthe TCP tunnel server for Edge Agents (only with Edge Compute)

Recognised by process portainer, or image portainer, portainer-ce or portainer-ee.

Not opened: 9000/tcp, the UI over plain HTTP in older installs. Its entry is {port: 9000}.

samba

Samba file sharing. Source: https://manpages.ubuntu.com/manpages/noble/man5/smb.conf.5.html.

PortProtocolFor
445tcpSMB over TCP
139tcpNetBIOS session (SMB for older clients)
137udpNetBIOS name service (nmbd); discovery
138udpNetBIOS datagrams and browsing (nmbd); discovery

Recognised by process smbd or nmbd, unit smbd.service, nmbd.service or samba.service, or image samba.

Not opened: 3702/udp and 5357/tcp, WS-Discovery. The separate wsdd package uses them so that Windows lists the share.

syncthing

Syncthing. Source: https://docs.syncthing.net/users/firewall.html.

PortProtocolFor
22000tcpTCP based sync protocol traffic
22000udpQUIC based sync protocol traffic
21027udplocal discovery broadcasts (IPv4) and multicasts (IPv6); discovery

Recognised by process syncthing, unit syncthing@* or syncthing.service, or image syncthing.

Not opened: 8384/tcp, the web GUI. It listens on 127.0.0.1 unless you move it, and the tailnet reaches it if you do.

unifi

UniFi Network Application. Source: https://help.ui.com/hc/en-us/articles/218506997.

PortProtocolFor
8080tcpdevice and application communication (devices inform here)
8443tcpapplication GUI and API
3478udpSTUN, for device adoption and communication
10001udpdevice discovery during adoption; discovery
1900udpL2 discovery, the setting "Make application discoverable on L2 network"; discovery
6789tcpUniFi mobile speed test
8880-8882tcphotspot portal redirection (HTTP)
8843tcphotspot portal redirection (HTTPS)

Recognised by unit unifi.service, or image unifi, unifi-network-application or unifi-controller.

Not opened:

  • 27117/tcp, the local database, on loopback only.
  • 5514/udp, remote syslog.
  • 10101/udp, client fingerprinting.
  • 5671/tcp, UXG traffic flow logs.
  • 8444/tcp, the hotspot portal UniFi calls secure.
  • 28082/tcp, packet capture.
  • 20100-22100/udp, Site Magic.
Edit on GitHub

Synced from keelbox/keelbox at e9770d0, 2 December 2026

On this page