AirPrint Across VLANs — Avahi Reflector Setup Guide
Joe B.
Reviewed for technical accuracy
Specialities: AirPrint, mDNS/Bonjour, Avahi, VLAN design, Firewall rules, Print servers
AirPrint across VLANs and subnets — secure Avahi mDNS reflector configuration
Quick answer: the accepted safe Avahi-reflector fix
Accepted approach for AirPrint across VLANs: deploy a small Linux host with Avahi-reflector on both the client and printer VLANs, restrict it with allow-interfaces/deny-interfaces, enable reflector=yes, disable wide-area publishing, and allow only mDNS (UDP 5353) plus IPP/print ports in the firewall. This creates a controlled mDNS gateway so iOS and macOS discover printers securely across subnets.
Why AirPrint breaks across VLANs and how Avahi-reflector fixes it
AirPrint relies on mDNS/Bonjour, which is link-local and doesn’t traverse routers or VLAN boundaries. When you segment your network (staff, guest, IoT, printer VLAN), iPhones and Macs can no longer see printers in other subnets. A correctly configured Avahi-reflector or Bonjour gateway selectively forwards AirPrint service records between VLANs, effectively enabling AirPrint across subnets while keeping isolation and firewall policies in place.
How to verify your cross-VLAN AirPrint and mDNS setup
From the client VLAN, open the iOS print dialog or macOS print panel and confirm:
• target printers appear quickly and consistently;
• no irrelevant IoT devices or services show up;
• test pages print via IPP/IPP Everywhere without errors.
For deeper checks, use dns-sd or avahi-browse to list _ipp._tcp and AirPrint records across VLANs, confirming that only authorized printers are reflected by your Avahi mDNS gateway.
Safe AirPrint across VLANs — quick design tips
Make segmented networks user-friendly without sacrificing security.
• Use a dedicated printer VLAN and a minimal, audited Avahi-reflector config.
• Expose only mDNS for AirPrint and IPP/IPPS ports; block everything else.
• Keep guest networks and risky IoT segments out of the reflector’s allow-interfaces list.
• Document and monitor your mDNS across subnets policy so it survives future changes.
Disclaimer: This information is AI-generated and for general guidance only. For production networks or regulated environments, please verify with a qualified Whizz-Tech Expert.
Getting Started Is Easy
Ask for help, 24/7
Members enjoy round-the-clock access to 12,000+ verified Experts, including network engineers and printer specialists.
Expert will respond in minutes
We match you with an Expert who specializes in AirPrint, VLANs, Avahi, firewalls, and secure cross-subnet printing.
Save time & money
A correct Avahi-reflector design means fewer tickets, less guesswork, and stable AirPrint for your users.
FAQ
Why does AirPrint stop working when printers are on another VLAN?
AirPrint uses mDNS/Bonjour, which is link-local multicast and doesn’t cross routers. When you move printers to a separate VLAN, iOS and macOS can’t see their mDNS advertisements unless you use a Bonjour gateway or Avahi-reflector between subnets.
Is it safe to enable Avahi-reflector between all my VLANs?
Forwarding mDNS everywhere is risky. Use a safe Avahi-reflector config: restrict allow-interfaces, disable wide-area publishing, and pair it with firewall rules so only required AirPrint and IPP services traverse VLANs.
Which ports are required for AirPrint across subnets?
Allow UDP 5353 for mDNS between the Avahi host and participating VLANs, plus printing ports such as TCP 631 (IPP/IPP Everywhere). Keep other traffic blocked to maintain isolation.
Can I use CUPS with Avahi for cross-VLAN AirPrint?
Yes. Publish printers via CUPS, let Avahi advertise/reflect those AirPrint queues, and limit visibility to the client and printer VLANs. This provides centralized control with secure AirPrint across VLANs.
| Symptom | Likely cause | Quick fix |
|---|---|---|
| iPhones can’t see printers on printer VLAN | No mDNS reflection between subnets | Deploy Avahi-reflector on both VLANs with reflector=yes |
| AirPrint shows random IoT devices | Avahi/Bonjour relaying from all VLANs | Use allow-interfaces/deny-interfaces; keep guest/IoT VLANs out |
| Intermittent discovery, printers appear/disappear | Firewall blocking UDP 5353 or IPP | Allow mDNS to/from reflector, plus TCP 631 to printers |
| Can discover but not print | IPP ports blocked cross-VLAN | Permit client VLAN → printer VLAN on required IPP/print ports only |
Step-by-step: safe Avahi-reflector for AirPrint across VLANs
- Place a Linux host with interfaces in the client VLAN and printer VLAN.
- Edit
/etc/avahi/avahi-daemon.conf: enableuse-ipv4=yes, setallow-interfacesonly for those VLAN NICs, andreflector=yes. - Disable unnecessary publishing and wide-area options; keep Avahi acting purely as a local mDNS reflector.
- On the firewall, allow UDP 5353 between Avahi and both VLANs, plus IPP/print ports from clients to printers.
- Restart Avahi, verify AirPrint discovery from iOS/macOS, and confirm no unwanted services are exposed.
Notes for macOS, iOS, and mixed environments
- macOS and iOS rely heavily on _ipp._tcp and _universal._sub._ipp._tcp. Ensure printers or CUPS advertise these via Bonjour.
- With a correct Avahi-reflector, Apple devices in one VLAN can discover printers in another as if they were local — without opening full routing.
Sources
- Avahi — documentation and configuration notes
- Apple — Bonjour and network discovery overview
- CUPS — network printing and IPP basics
Filed under: Network security / VPN / office policies (advanced)
Related articles
- AirPrint offline on iPhone/iPad but works on Mac — fix discovery & Bonjour
- AirPrint Sees Printer But No AirPrint Printers Found — Fix Guide
- AirPrint blocked on enterprise SSID
- AirPrint Bonjour & mDNS Blocked on VLANs — Reflector Fix Guide
- Multiple Subnets AirPrint — Avahi Bonjour Gateway Fix Guide
- mDNS Not Propagating Across VLANs — Reflector Config Guide
- Printer won’t print prescriptions or medical reports — it’s urgent and nothing comes out
- Chrome managed profile watermark prints wrong — policy override checks you can do safely