AirPlay for Apple TV

Facebooktwittergoogle_plusredditpinterestlinkedinFacebooktwittergoogle_plusredditpinterestlinkedin

In this example, you will create multicast security policies to allow AirPlay  communication between an iOS device and an Apple TV through a FortiGate unit.

This recipe uses a FortiAP in Tunnel mode. For more information, see Adding a WiFi network with a FortiAP.

1. Enabling multicast policies

Go to System > Config > Features.

Select Show More and enable Multicast Policy. Apply the changes.

 

2. Creating AirPlay services

Go to Policy & Objects > Objects > Services and create a service as shown for the connection from the Apple TV to the iOS device.

 

Go to Policy & Objects > Objects > Services and create a service as shown for the connection from the iOS device to the Apple TV.

 

3. Allowing multicast between the wireless and internal networks

Go to Policy & Objects > Policy > Multicast and create a policy allowing local network traffic to reach the wireless network.

Set Incoming Interface to lan, Outgoing Interface to the wireless interface, and Destination Address to Bonjour.

 
 

Create a second policy allowing wireless traffic to reach the internal network.

Set Incoming Interface to the wireless interface, Outgoing Interface to lan, and Destination Address to Bonjour.

 

4. Allowing airplay between the wireless and internal networks

Go to Policy & Objects > Policy > IPv4 and create a policy allowing traffic from the Apple TV to the iOS device.

Set Incoming Interface to lanOutgoing Interface to the SSID, and Service to allow connections from the Apple TV to the iOS device.

 

Create a second policy allowing traffic from the iOS device to the Apple TV.

Set Incoming Interface to the SSID, Outgoing Interface to lan, and Service to allow connections from the iOS device to the Apple TV.

 

5. Results

Use AirPlay to stream audio or video from an iOS device to the Apple TV.

Go to Log & Report > Traffic Log > Multicast. You will see traffic flowing between the two devices, using both multicast policies.

 

For further reading, check out Multicast forwarding in the FortiOS 5.2 Handbook.

 

Victoria Martin

Victoria Martin

Technical Writer & Head Cookbook Chef at Fortinet
Victoria Martin works in Ottawa as part of the FortiOS technical documentation team. She graduated with a Bachelor's degree from Mount Allison University, after which she attended Humber College's book publishing program, followed by the more practical technical writing program at Algonquin College. She does need glasses but also likes wearing them, since glasses make you look smarter.
Victoria Martin

Latest posts by Victoria Martin (see all)

  • Was this helpful?
  • Yes   No
Apple TV can also be connected to the Internet wirelessly. AirPlay will function from any iOS device connected to the same SSID as the Apple TV, without any configuration required on the FortiGate.
Bonjour is a default multicast address that is used by Apple devices to discover shared services on the local network. Using it in the multicast policies will allow the iOS device and Apple TV to connect to each other through the FortiGate.
  • rbn

    Great post, very helpful!!