Printer troubleshooting technician providing live chat help

Joe B.

Reviewed for technical accuracy

Specialities: Windows, macOS, Printers, Networking, mDNS/Bonjour, CUPS, VLANs

AirPrint across VLANs — enable mDNS/Bonjour between subnets with Avahi reflector

Technician avatar Technician
Hey! Let’s get AirPrint working across multiple subnets. By default, Bonjour/mDNS (UDP 5353) is link-local only, so iPhones/Macs can’t discover printers in other VLANs. We’ll add an Avahi reflector (Bonjour gateway) or use your network’s built-in gateway feature, fix IGMP snooping, and allow IPP/IPP-Everywhere (TCP 631) so the printer advertises and prints reliably across VLANs.
Customer
Setup: printers sit in VLAN 30 (10.30.0.0/24), users are in VLAN 10 and 20. AirPrint works within VLAN 30, but iPhones and Macs in other subnets don’t see anything.
Technician avatar Technician
Got it. That’s expected: mDNS uses multicast to 224.0.0.251 (ff02::fb) and isn’t routed between subnets. To enable AirPrint across VLANs you need one of these patterns:
• Avahi reflector on a Linux box, firewall, or router (e.g., pfSense/OPNsense) to reflect mDNS advertisements between interfaces.
• A vendor Bonjour gateway / mDNS repeater feature (UniFi, Meraki, Aruba, etc.).
• Wide-Area Bonjour (DNS-SD over unicast) publishing IPP service records into DNS zones (advanced, good for campuses).
We’ll start with Avahi because it’s quick, free, and reliable.
Customer
I can spin up an Ubuntu VM with two NICs in VLAN 10 and 30. What exactly do I change in Avahi?
Technician avatar Technician
5-minute Avahi reflector setup (Ubuntu/Debian):
1) Install: sudo apt update && sudo apt install avahi-daemon avahi-utils
2) Edit /etc/avahi/avahi-daemon.conf:
— Set use-ipv6=yes, use-ipv4=yes
— allow-interfaces=eth0,eth1 (your VLAN NICs)
— reflector=yes (a.k.a. enable-reflector)
— Optionally reflector-quick-join=yes to reduce discovery delay.
3) Restart: sudo systemctl restart avahi-daemon
4) Firewall: allow UDP 5353 between VLANs on the Avahi host; allow TCP 631 (IPP), TCP 9100 if using RAW printing.
After that, clients in VLAN 10/20 should see AirPrint devices from VLAN 30.
Customer
We use pfSense. Is there a simpler way than a separate VM?
Technician avatar Technician
Bonjour gateway options:
• pfSense/OPNsense: install/use the Avahi package and enable Reflector across selected interfaces (VLAN 10↔30↔20). Create rules to pass UDP 5353 and relevant TCP IPP ports between those interfaces.
• UniFi: use mDNS/Bonjour Gateway to forward _ipp._tcp, _ipps._tcp, _printer._tcp, _scanner._tcp between VLANs.
• Meraki/Aruba/Cisco: enable their Bonjour Gateway and select only the service types you need to reduce noise.
Any of these solves “AirPrint not working across VLANs” without extra VMs.
Customer
AirPrint still doesn’t appear for some users. We have IGMP snooping on the switches.
Technician avatar Technician
Fix multicast/IGMP issues for mDNS:
• Ensure the VLANs have an IGMP querier (on the L3 gateway or switch). Without it, snooping can drop multicast.
• Allow 224.0.0.251 traffic inside each VLAN (and on Avahi host). Some gear filters 224.0.0.0/24 by default.
• If you run systemd-resolved and Avahi on the same Linux host, keep LLMNR off and multicast DNS on in resolved, or just let Avahi handle mDNS. Restart both after changes.
• Large networks: limit forwarded DNS-SD service types (IPP, IPPS, AirPrint) to reduce chatter and speed discovery.
Customer
Do we still need vendor drivers or will IPP Everywhere be enough?
Technician avatar Technician
IPP Everywhere (AirPrint) vs vendor drivers:
• AirPrint/IPP Everywhere is driverless for macOS, iOS/iPadOS, and modern Windows via IPP Class — ideal for cross-VLAN printing after we enable Bonjour.
• If you need finishing, accounting, secure print, or color profiles, keep the vendor driver, but discovery still benefits from the Bonjour gateway or Avahi reflector so users can find the queue.
Customer
Can you give exact Avahi settings for a small 3-VLAN office?
Technician avatar Technician
Avahi config snippet (reflector mode):
[server]
use-ipv4=yes
use-ipv6=yes
allow-interfaces=eth0,eth1,eth2
check-response-ttl=no
use-iff-running=no

[publish]
disable-publishing=no
publish-workstation=yes

[reflector]
enable-reflector=yes
reflect-ipv=no
reflect-filters=_ipp._tcp,_ipps._tcp,_printer._tcp,_scanner._tcp
reflector-quick-join=yes
Then: sudo systemctl restart avahi-daemon. Test from iPhone: open Print sheet → Select Printer. You should now see printers from VLAN 30 while on VLAN 10/20.
Customer
What firewall rules are mandatory between the subnets?
Technician avatar Technician
Minimal firewall rules for AirPrint across subnets:
• UDP 5353 (mDNS) between client VLANs and the Avahi/gateway interfaces.
• TCP 631 (IPP/IPPS) from client VLANs to printer VLAN.
• Optional: TCP 9100 (RAW/JetDirect) if you still use it.
• Allow ICMP for basic diagnostics; keep stateful return traffic open.
Tighten with ACLs so only _ipp, _ipps, _printer service types are reflected.
Customer
Great. Can you summarize the cross-VLAN AirPrint fix so I can follow it?
Technician avatar Technician
Summary: To enable AirPrint across VLANs/subnets — deploy an Avahi reflector or Bonjour gateway between the networks → allow UDP 5353 and TCP 631 → ensure an IGMP querier is present → optionally restrict to _ipp/_ipps/_printer → test from iOS/macOS. Need help mapping interfaces and rules on your gear? Open the chat — I’ll walk you through it live.

Quick answer: the accepted fix

Accepted fix for AirPrint not visible across subnets: deploy an Avahi/Bonjour gateway (mDNS reflector), allow UDP 5353 and TCP 631 between VLANs, verify IGMP snooping + querier, and limit forwarded DNS-SD service types to _ipp, _ipps, _printer. This enables reliable AirPrint across multiple VLANs.


Why AirPrint breaks on multiple subnets

Bonjour/mDNS is link-local by design, so discovery packets don’t cross routers. Without a Bonjour gateway or Avahi reflector, iOS/macOS can’t see IPP Everywhere printers in other VLANs. Add the gateway, open UDP 5353, and ensure an IGMP querier so snooping doesn’t suppress multicast.

How to verify cross-VLAN AirPrint

On iPhone, open any app → Share → Print → Select Printer. Printers from the remote VLAN should appear within 3–10 seconds. On macOS, System Settings → Printers shows the same AirPrint queues. From Linux, run avahi-browse -art | grep _ipp._tcp and confirm services reflect across interfaces.

Bonjour gateway pro tips

Reflect only the services you need and keep multicast healthy.

Limit forwarded DNS-SD types (_ipp, _ipps, _printer, _scanner) to reduce noise; keep TTL defaults; add static IP for printers; and publish human-readable names. If you outgrow reflection, consider Wide-Area Bonjour (unicast DNS-SD) for campus/enterprise environments.

Disclaimer: This information is AI-generated and intended for general guidance only. For advice specific to your environment, please consult a verified expert on Whizz-Tech before making decisions.


Getting Started Is Easy

Ask for help, 24/7

Members enjoy round-the-clock access to 12,000+ verified Experts, including tech support, mechanics, vets, and more.

Expert will respond in minutes

We match you with an Expert who specializes in your situation. Talk, text, or chat — whichever you prefer.

Save time & money

No scheduling hassles or expensive consults. Membership can save you significant time and money each month.

FAQ

How do I enable AirPrint across VLANs/subnets?

Deploy an Avahi reflector or vendor Bonjour gateway, allow UDP 5353 and TCP 631 between VLANs, ensure an IGMP querier, and limit forwarded service types to IPP/AirPrint.

Why don’t iPhones see printers in other subnets?

mDNS/Bonjour is link-local and won’t cross routers without a gateway/reflector. Add Avahi or enable your network’s Bonjour gateway feature.

Do I need vendor drivers if I enable Bonjour gateway?

Usually no. AirPrint/IPP Everywhere is driverless for most use cases. Keep vendor drivers only if you need finishing, accounting, or advanced color features.

What ports must be open for cross-VLAN AirPrint?

UDP 5353 for mDNS discovery and TCP 631 for IPP printing. Optionally TCP 9100 if you still use RAW/JetDirect.

pfSense/OPNsense vs UniFi — which is easier?

Both are fine. pfSense/OPNsense use the Avahi package (Reflector mode). UniFi offers a built-in mDNS/Bonjour Gateway with per-service filtering.

Common cross-subnet AirPrint problems and quick fixes
SymptomLikely causeQuick fix
AirPrint not visible in other VLANs No Bonjour gateway; mDNS not routed Enable Avahi reflector / Bonjour gateway; allow UDP 5353; IGMP querier
Some users see printers, others don’t IGMP snooping without querier; multicast filtered Turn on IGMP querier; permit 224.0.0.251; minimize service set
Can discover but cannot print TCP 631 blocked; printer ACLs Permit TCP 631 to printer VLAN; verify printer firewall/ACLs
Discovery slow or flaky Too many DNS-SD types; Wi-Fi isolation Filter to _ipp/_ipps/_printer; disable client isolation for trusted SSIDs

Step-by-step (Avahi reflector)

  1. Install avahi-daemon on a host with interfaces in each VLAN.
  2. Edit /etc/avahi/avahi-daemon.conf: enable reflector, list allow-interfaces, and optionally set reflect-filters to IPP services.
  3. Allow UDP 5353 between client VLANs and the Avahi host; allow TCP 631 from clients to printer VLAN.
  4. Ensure IGMP querier is active on VLANs with snooping.
  5. Restart Avahi; test discovery from iOS/macOS; print a test page via IPP.

Optional: advanced setups

  1. UniFi/Meraki/Aruba Bonjour gateway — forward only _ipp, _ipps, _printer.
  2. Wide-Area Bonjour (DNS-SD) — publish IPP records into DNS for campus networks.
  3. CUPS sharing — proxy legacy printers via a CUPS server that advertises AirPrint.

Sources

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