zngguvnf's Blog

OPNsense: Access AppleTV from different VLAN

<2022-12-16>

I recently bought a new AppleTV, which I tried to integrate with HomeAssistant today.

Since the AppleTV is on a different VLAN than my HomeAssistant, I created an appropriate firewall rule, but HomeAssistant still could not find the AppleTV.

After a long search I found out that I also need to enable mDNS and create an additional firewall rule.

So all in all I did the following to make it work:

  1. Install and configure Multicast DNS Proxy
  2. Create first firewall rule:
    • Action: Pass
    • Interface: DMZ
    • Direction: in
    • TCP/IP Version: IPv4+IPv6
    • Protocol: any
    • Source: HomeAssistant (this is an alias for my Homeassistant ip)
    • Destination: AppleTV (alias)
    • Description: Allow HomeAssistant access to AppleTV
  3. Create second firewall rule:
    • Action: Pass
    • Interface: DMZ
    • Direction: in
    • TCP/IP Version: IPv4
    • Protocal: any
    • Source: HomeAssistant (alias)
    • Destination: Single host or Network: 224.0.0.251/32
    • Description: Allow HomeAssistant access to Bonjour (for AppleTV)
  4. Restart HomeAssistant.
archive
Creative Commons License
https://zngguvnf.org by zngguvnf is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.