Skip to content

Instantly share code, notes, and snippets.

@paxswill
Last active October 16, 2020 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paxswill/37ce008f4db870c445c07c5c9080dd1b to your computer and use it in GitHub Desktop.
Save paxswill/37ce008f4db870c445c07c5c9080dd1b to your computer and use it in GitHub Desktop.
A list of ports I sometimes whitelist on my firewalls

I typically set up an untrusted network for use with IoT devices. Hosts from this network are allowed to access the outside internet, but are blocked from accessing hosts on other networks (i.e. the trusted or guest networks). Some ports are then explicitly allowed for specific services (ideally these ports are also restricted to just the hosts that need them as well).

Port Number Description
319 Precision Time Protocol, used in Airplay it seems
320 Also Precision Time Protocol
554 RTSP (Airplay)
1900 SSDP, UPnP service discovery
3689 DAAP (Airplay)
3722 Undocumented Apple Home Sharing
5353 mDNS
8008 Chromecast
8009 Chromecast
57621 Spotify Connect with spotifyd

I also whitelist some ports, always restricted to specific hosts, allowing automatic NAT traversal. For these, access just needs to be allowed to the firewall.

Port Number Description
2189 UPnP Port Mapping
5351 NAT-PMP (mainly Apple devices)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment