Network and printer technician providing live chat help

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

Technician avatar Technician
Hey! Let’s get your AirPrint working across VLANs without breaking network isolation.
We’ll use a Linux/UniFi/Pi box running Avahi-daemon with reflector as a controlled mDNS gateway, so iPhones, iPads and Macs on a client VLAN can discover printers on a separate printer/IoT VLAN.
Before we tune the Avahi-reflector safe config, tell me:
• Which VLAN/subnet are your users on and which one hosts the printers?
• Do you already run Avahi or rely on a firewall “mDNS repeater” / Bonjour gateway?
• Any security rules like guest WLAN or IoT VLAN that absolutely must stay isolated (no broad cross-subnet access)?
Customer
Small office. Users are on VLAN 10 (192.168.10.0/24), printers on VLAN 30 (192.168.30.0/24). iPhones and Macs only see printers when we put Wi-Fi in the same subnet. I spun up a Debian box with avahi-daemon on both VLANs, set reflector=yes, but now I’m worried it’s leaking mDNS everywhere.
Technician avatar Technician
Got it — classic AirPrint across subnets scenario.
By default, mDNS (Bonjour) is link-local multicast (224.0.0.251:5353 / ff02::fb) and does not cross VLANs. Enabling Avahi-reflector forwards mDNS between interfaces, but a “flat” reflector can:
• expose smart TVs and IoT devices from isolated VLANs;
• leak service records like SSH, file shares, Chromecast;
• create noisy or unstable discovery if misconfigured.
Our goal: reliable AirPrint across VLANs with a locked-down Avahi configuration. We’ll:
1) Pin Avahi to the correct interfaces only.
2) Enable reflector=yes with safe defaults (no wide-area, no publishing, no rogue services).
3) Use firewall rules so only UDP 5353 and printer TCP ports are allowed between client VLAN → printer VLAN.
4) Make sure printers announce _ipp._tcp, _ipps._tcp, _printer._tcp, _universal._sub._ipp._tcp consistently for iOS/macOS.
Customer
Yes, the Avahi box has interfaces on both VLANs. After turning reflector on, users can see printers, but they also see a couple of IoT things. I only want AirPrint, nothing else. How do I restrict Avahi so it’s a safe mDNS gateway, not a floodgate?
Technician avatar Technician
Step 1 — Lock Avahi to the right VLAN interfaces
Open /etc/avahi/avahi-daemon.conf on the reflector host and:
• Set use-ipv4=yes, and keep use-ipv6=no unless you really need v6.
• Explicitly list interfaces that should participate in AirPrint:
allow-interfaces=eth10,eth30 (replace with your client/printer VLAN NICs).
• If you have IoT/guest VLANs on the same box, add them to deny-interfaces= so Avahi never listens there.
This ensures mDNS reflection happens only between the client VLAN and the printer VLAN, not your entire LAN or guest Wi-Fi.
Customer
Ok, so I bind Avahi only to the user and printer VLAN interfaces. What about all the publishing options and wide-area stuff in the config? I don’t want this box advertising itself or relaying random services.
Technician avatar Technician
Step 2 — Safe Avahi-reflector configuration for AirPrint only
In the same config file:
• Turn the reflector on:
reflector=yes
• Stop Avahi from acting as an extra host/service advertiser:
publish-hinfo=no
publish-workstation=no
publish-addresses=no
publish-user-services=no
• Keep it local only:
enable-wide-area=no
disable-publishing=no (Avahi still forwards printer advertisements but doesn’t publish junk).
This is a safe mDNS setup: Avahi reflectors only the Bonjour/AirPrint records already broadcast by your printers, without exposing random LAN services across VLANs.
Customer
And firewall wise? Right now we block almost everything between VLAN 10 and 30. Which ports are required so iOS devices can discover and print, but still keep things segmented?
Technician avatar Technician
Step 3 — Minimal firewall rules for cross-VLAN AirPrint
On the firewall (or Linux box if it routes):
• Allow UDP 5353 between the Avahi host and both VLANs (multicast to 224.0.0.251 only).
• Allow client VLAN → printer VLAN for:
  • TCP 631 (IPP / IPP Everywhere / AirPrint),
  • TCP 443 / 9100 only if your printers need IPPS or raw.
• Keep all other ports blocked; do not allow any-to-any just to “fix” AirPrint.
With this, users discover printers via reflected mDNS and send jobs over IPP, but cannot reach cameras, NAS, or other IoT devices in the printer VLAN.
Customer
Makes sense. How do I confirm only the right AirPrint services are being reflected? And what if we’re using CUPS on a Linux print server instead of printing directly to hardware?
Technician avatar Technician
Step 4 — Verify reflected services (printers or CUPS queues)
• On a Mac in the client VLAN, run dns-sd -B _ipp._tcp or dns-sd -B _universal._sub._ipp._tcp and confirm you only see your intended printers/CUPS queues.
• On Linux, use avahi-browse -art | grep -i ipp on the reflector to ensure it sees the same set of AirPrint services from the printer VLAN.
• If you publish via CUPS, make sure it’s advertising only the queues you want reachable. Avahi will happily reflect CUPS’ AirPrint records across VLANs.
If you spot Chromecast, cameras, or anything unrelated, tighten your VLAN rules, deny-interfaces, or filter which services CUPS/IoT devices announce.
Customer
We also have a guest Wi-Fi VLAN. I don’t want guests to see office printers, but staff should still AirPrint from their secure SSID. Any special considerations?
Technician avatar Technician
Yes, that’s where a safe Avahi reflector design really matters:
• Do not bridge guest VLAN into Avahi. Keep it out of allow-interfaces so no mDNS/Bonjour from guests is reflected.
• Only your trusted staff SSID VLAN + printer VLAN should participate in the AirPrint across subnets setup.
• On some controllers (UniFi/Cisco), disable “mDNS repeater” for guest WLANs.
• For larger sites, consider a dedicated Bonjour gateway or multiple Avahi instances per site with narrow ACLs.
This way, staff get seamless cross-VLAN AirPrint, while guests stay blind to internal printers and services.
Customer
After these changes, iPhones see only the right printers and everything still feels isolated. Any final hardening tips so this stays secure and stable long-term?
Technician avatar Technician
Final checks for a safe AirPrint VLAN design:
• Lock printers to static IPs in the printer VLAN; don’t move them between subnets.
• Keep Avahi and printer firmware updated so _ipp._tcp and TLS remain compatible with iOS/macOS.
• Monitor logs: journalctl -u avahi-daemon for errors and unusual service floods.
• Document exactly which VLANs/interfaces participate in mDNS reflection so future changes don’t accidentally open your IoT or server networks.
If you’d like, I can review your Avahi config and firewall live and ship a production-ready AirPrint across VLANs with Avahi-reflector template for your environment — just hit Start Chat.
Customer
Perfect — AirPrint works across VLANs and the mDNS setup looks tight. Thanks!
Technician avatar Technician
Summary: For AirPrint across VLANs, run Avahi-daemon as a controlled mDNS reflector on a box with interfaces in the user and printer VLANs. Limit it with allow-interfaces, enable reflector=yes, disable wide-area and unnecessary publishing, and open only UDP 5353 + IPP/print ports through the firewall. This safe Avahi-reflector configuration gives reliable cross-subnet AirPrint without exposing your whole network. Need a vetted config for your firewall/routers? Open the chat.

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.

Common cross-VLAN AirPrint problems and quick fixes
SymptomLikely causeQuick 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

  1. Place a Linux host with interfaces in the client VLAN and printer VLAN.
  2. Edit /etc/avahi/avahi-daemon.conf: enable use-ipv4=yes, set allow-interfaces only for those VLAN NICs, and reflector=yes.
  3. Disable unnecessary publishing and wide-area options; keep Avahi acting purely as a local mDNS reflector.
  4. On the firewall, allow UDP 5353 between Avahi and both VLANs, plus IPP/print ports from clients to printers.
  5. Restart Avahi, verify AirPrint discovery from iOS/macOS, and confirm no unwanted services are exposed.

Notes for macOS, iOS, and mixed environments

  1. macOS and iOS rely heavily on _ipp._tcp and _universal._sub._ipp._tcp. Ensure printers or CUPS advertise these via Bonjour.
  2. 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

Matt Verified Icon
Matt ● replies in < 1 min
Technician Expert
⭐⭐⭐⭐⭐ Trusted by 27,000+ customers
Avatar
Alex · Expert's Assistant