Network technician providing live chat help for OpenWrt Avahi reflector and AirPrint

Joe B.

Reviewed for technical accuracy

Specialities: OpenWrt routing & VLANs, Avahi mDNS reflector, AirPrint & Bonjour, multi-SSID Wi-Fi, Apple device networking, printer discovery across subnets

Fix “OpenWrt Avahi reflector for AirPrint” — working config, mDNS across VLANs, and stable AirPrint printer discovery

Technician avatar Technician
Hey there — we can definitely help with AirPrint not working across VLANs on OpenWrt and getting an Avahi mDNS reflector config that actually works.

On OpenWrt, Apple AirPrint and Bonjour rely on multicast DNS (mDNS) on UDP 5353. When you segment your network into LAN / IoT / guest VLANs, those mDNS packets don’t naturally cross between interfaces, so iPhones and Macs on Wi-Fi can’t discover the printer sitting on another subnet.

That’s exactly what the Avahi reflector is for: it listens for mDNS on one interface (for example br-lan) and “reflects” it onto others (for example br-iot, wlan0, guest), making AirPrint across VLANs work without bridging everything together.

To point you at the right OpenWrt Avahi reflector config, I need a bit more context: which OpenWrt version are you on, how are your VLANs split (printer on IoT / wired LAN, iOS devices on Wi-Fi or guest network), and have you already installed avahi-daemon or are you still on the default umdns?
Customer
We’re using the latest OpenWrt on our main router. I split things into VLANs: LAN for PCs, an IoT VLAN for printers and home gadgets, and a guest Wi-Fi. The AirPrint printer lives in the IoT VLAN, but all our iPhones, iPads, and Macs are on the main Wi-Fi SSID in the LAN VLAN.

After segmenting the network, AirPrint stopped working. The printer’s web UI is reachable if I type the IP, but it never appears in the iOS print dialog. I read that I should use an Avahi mDNS reflector on OpenWrt, installed avahi-daemon, flipped a couple of options, and now I’m not sure if it’s actually reflecting anything. AirPrint still doesn’t show up.
Technician avatar Technician
Perfect, that’s a textbook OpenWrt + VLAN + AirPrint scenario.

A few key points about why AirPrint breaks after segmenting:
• AirPrint uses Bonjour / mDNS to advertise services such as _ipp._tcp and _ipps._tcp on UDP 5353.
• mDNS packets are sent to 224.0.0.251 (or ff02::fb on IPv6) and are link-local only by design — they don’t route between VLANs by themselves.
• When you put printers on an IoT network and iOS devices on another SSID/VLAN, AirPrint discovery stops unless something reflects or proxies those mDNS packets.

The Avahi reflector solution on OpenWrt is:
• Install avahi-daemon on the OpenWrt router (or another Linux box that touches all VLANs).
• Configure /etc/avahi/avahi-daemon.conf with enable-reflector=yes and the right allow-interfaces= list.
• Make sure your OpenWrt firewall zones allow UDP 5353 between those interfaces.

If any of those three pieces is off — wrong interfaces, reflector disabled, or firewall blocking mDNS — the OpenWrt Avahi reflector for AirPrint looks “configured” but nothing is actually reflected.
Customer
That makes sense. Right now I installed avahi-daemon via opkg and edited /etc/avahi/avahi-daemon.conf. I saw examples online and added:
enable-reflector=yes under [reflector], and allow-interfaces=br-lan,br-iot under [server].

The router has br-lan for the main LAN/Wi-Fi and br-iot for the printer VLAN. I also disabled umdns to avoid conflicts. Avahi starts without errors, but AirPrint still doesn’t work between VLANs on OpenWrt. I’m not sure if it’s a firewall issue, missing Avahi options, or something about Apple devices that I’m misunderstanding.
Technician avatar Technician
Good, you’ve already hit most of the core settings for an OpenWrt Avahi reflector config.

The usual gotchas when AirPrint still doesn’t appear across VLANs:
1) Interfaces must match the actual bridges.
  • In OpenWrt, if your LAN Wi-Fi and wired ports are bridged as br-lan, that’s correct.
  • Make sure the IoT VLAN really uses br-iot (sometimes it’s br-iot, sometimes something like br-vlan30).

2) Firewall zones and rules.
  • You need to allow UDP 5353 between the LAN and IoT zones, at least for the router itself, so Avahi can send/receive mDNS on both sides.
  • Many “hardened” OpenWrt configs block multicast and broadcast by default; we may need explicit rules or forwarding for 224.0.0.251.

3) Avahi settings around publishing.
  • For a pure reflector, you usually keep enable-wide-area=no and disable-publishing=no, and optionally tone down things like publish-workstation, so Avahi doesn’t spam extra services.

The key idea is: the Avahi mDNS reflector will happily reflect AirPrint advertisements as long as it can join the multicast group on both VLAN interfaces and the firewall doesn’t drop its packets mid-flight.
Customer
Got it. I’m okay adjusting firewall rules, but I’d like something minimal and safe. I don’t want to blow a hole between my IoT VLAN and LAN; I just want AirPrint across VLANs on OpenWrt to work. Is there a recommended Avahi reflector config snippet and a small set of firewall rules specifically for mDNS and AirPrint? Also, should I add the guest Wi-Fi VLAN to the reflector or keep it just LAN<->IoT?
Technician avatar Technician
Great questions. Let’s build a focused, OpenWrt Avahi reflector for AirPrint-only setup.

In /etc/avahi/avahi-daemon.conf on OpenWrt, a common starting point is:
[server]
use-ipv4=yes
use-ipv6=yes
allow-interfaces=br-lan,br-iot
deny-interfaces=wan,wwan0

[reflector]
enable-reflector=yes

[publish]
enable-wide-area=no
publish-addresses=no
publish-workstation=no
publish-user-services=no


This tells Avahi: “only touch LAN + IoT bridges, reflect mDNS between them, don’t publish extra host info, and ignore WAN.”

For the OpenWrt firewall:
• Keep your normal forwarding rules locked down between LAN and IoT.
• Add a narrow rule in each zone allowing UDP 5353 to and from the router itself, or use the built-in “mdns” helper if you have it in your GUI.

As for guest Wi-Fi: if you want guests to use AirPrint, you can add that bridge/interface (for example br-guest) to allow-interfaces= as well. If you’d rather keep AirPrint private, leave the guest VLAN out so the reflector only serves trusted subnets.
Customer
That looks exactly like what I was trying to piece together. One thing I’m still unsure about is testing whether the Avahi reflector is really working. When I run avahi-browse -a on OpenWrt via SSH, I see a lot of stuff, but it’s hard to tell which VLAN it’s coming from. Is there a simple way to confirm that AirPrint services are being reflected between br-lan and br-iot and that my config is correct, before I start blaming iOS or the printer itself?
Technician avatar Technician
Absolutely — you don’t want to guess when debugging OpenWrt Avahi reflector issues.

Here’s a practical test sequence:
1) From OpenWrt SSH, run:
  avahi-browse -rt _ipp._tcp
  • You should see your AirPrint printer advertised from its IoT VLAN IP.

2) On a Linux laptop in the LAN VLAN, also run:
  avahi-browse -rt _ipp._tcp
  • If the Avahi reflector is working, the same printer should appear there, even though it’s on a different subnet.

3) On a Mac, open “Printers & Scanners” or the print dialog and check for the printer under “Default” — this uses Bonjour / mDNS.

If you see the printer via avahi-browse and on macOS/iOS when plugged into the LAN VLAN, but not when you move the client to another VLAN, the reflector or firewall still isn’t pushing mDNS between those specific interfaces. When _ipp._tcp appears on both sides, the OpenWrt Avahi reflector for AirPrint across VLANs is doing its job and any remaining issues are usually printer-specific.
Customer
That’s really helpful. Another concern: I saw some warnings online about Avahi reflector causing hostname conflicts or router instability on OpenWrt if misconfigured. I don’t want my router rebooting randomly or all my Macs ending up with “-2” in their names. Is there anything specific I should avoid in the avahi-daemon.conf reflector settings to keep things stable and secure?
Technician avatar Technician
Yes, you’re right to be cautious. A sloppy Avahi reflector config can cause noisy traffic or weird hostname suffixes on Apple devices, especially if you have loops or run multiple mDNS responders on the same segments.

A few “safe config” tips for OpenWrt Avahi reflector for AirPrint:
• Limit interfaces explicitly. Only include the VLAN bridges that really need AirPrint in allow-interfaces=. Never put WAN there.
• Avoid running multiple reflectors. Don’t enable Avahi reflector on more than one router in the same broadcast domain — one “mDNS gateway” is enough.
• Turn down publishing. By disabling unnecessary publish-* options you avoid extra host announcements that can trigger hostname conflicts on Macs.
• Monitor CPU and logs. On low-end OpenWrt hardware with a lot of IoT chatter, mDNS reflection can increase CPU. Check logread and top after enabling to make sure the router doesn’t get overloaded.

Used this way, Avahi is a well-understood solution for Bonjour / AirPrint across VLANs, and most OpenWrt users run it for years without crashes as long as the reflector is scoped to just LAN-style interfaces.
Customer
Good to know. One last thing: OpenWrt also has umdns and some people talk about mDNS repeaters in the switch/bridge instead of Avahi. Is there any reason to prefer Avahi reflector specifically for AirPrint across VLANs? I’d like to choose the solution that’s easiest to maintain long-term.
Technician avatar Technician
Great question — OpenWrt gives you several options, but for AirPrint and Apple Bonjour, Avahi reflector is usually the most straightforward.

• umdns: Lightweight mDNS responder built for OpenWrt. Good for local discovery on a single interface, but its reflection support is limited or absent in many builds, so it’s not ideal when you must bridge mDNS between VLANs for AirPrint.

• Bridge or switch tricks: You can sometimes pass mDNS between VLANs using bridge filters or special switch features. This is efficient, but harder to understand, and you lose the flexibility of having a single mDNS gateway policy that can be changed without rewriting low-level rules.

• Avahi reflector on OpenWrt: Uses enable-reflector=yes in avahi-daemon.conf to repeat mDNS between selected interfaces. It’s widely documented, works well with Bonjour / AirPrint and other Apple protocols, and can be tuned with simple text config.

For most home and small-business networks, a single OpenWrt router running Avahi reflector is the sweet spot between simplicity and control for mDNS / AirPrint across VLANs.
Customer
That all adds up. For our setup I just want a clear, repeatable recipe: install Avahi on OpenWrt, enable the reflector for AirPrint, open whatever firewall ports are needed, and test from iOS/macOS. Can you summarize the exact steps you’d recommend, and maybe help me check my own avahi-daemon.conf and firewall zones one-on-one?
Technician avatar Technician
Definitely — here’s the concise OpenWrt Avahi reflector for AirPrint config I use in real deployments:

1) Install Avahi on OpenWrt via SSH or LuCI, and disable umdns so there’s only one mDNS stack running.

2) Edit /etc/avahi/avahi-daemon.conf:
  • Under [server], set allow-interfaces=br-lan,br-iot (and any other VLANs that should see AirPrint), and keep WAN/guest you don’t want out of it.
  • Under [reflector], set enable-reflector=yes.
  • Under [publish], disable wide-area and non-essential publishing so Avahi behaves mostly as a reflector.

3) Adjust the OpenWrt firewall so LAN and IoT zones allow UDP 5353 to/from the router on those interfaces, without opening full routing between VLANs.

4) Restart Avahi, then test with avahi-browse -rt _ipp._tcp plus iOS/macOS print dialogs to confirm that AirPrint printers appear across VLANs and stay stable.

If you’d like, I can review your avahi-daemon.conf, firewall zones, and interface layout based on screenshots or terminal output. Open the chat and we’ll build a clean, documented Avahi reflector config for your OpenWrt router so AirPrint “just works” across your VLANs.

Quick answer: the accepted fix

Accepted fix when you need an OpenWrt Avahi reflector for AirPrint: install avahi-daemon on the router, enable enable-reflector=yes in /etc/avahi/avahi-daemon.conf, restrict allow-interfaces= to the VLAN bridges that should share AirPrint, and open UDP 5353 between those interfaces in the OpenWrt firewall. Then verify that iOS/macOS and Linux clients can see the AirPrint printer across VLANs without exposing unnecessary services.


Why you need an Avahi reflector for AirPrint on OpenWrt

When you follow best practices and put printers and IoT devices on a separate VLAN, you accidentally break the default Apple Bonjour behavior: mDNS packets never leave their local segment. OpenWrt then routes unicast traffic between VLANs but quietly drops multicast DNS, so AirPrint printers disappear from iOS and macOS even though you can still ping them. Enabling an Avahi mDNS reflector on your OpenWrt router solves this neatly by listening for _ipp._tcp and other Bonjour services on one bridge (for example br-iot) and re-broadcasting them on another (for example br-lan), which restores AirPrint across VLANs without flattening your whole network.

How to verify your OpenWrt Avahi reflector AirPrint config

After editing avahi-daemon.conf and adjusting firewall rules, you should test that the OpenWrt Avahi reflector is really passing mDNS between interfaces. From the router and from a Linux client on the LAN, use avahi-browse -rt _ipp._tcp to confirm that the AirPrint printer is visible even though it lives on another VLAN. Then, on an iPhone, iPad, or Mac connected to the LAN or Wi-Fi SSID, open the print dialog and check that the AirPrint queue appears automatically via Bonjour instead of needing a manual IP. If discovery works from multiple VLANs, stays stable after reboots, and only the expected printers are visible, your OpenWrt Avahi reflector for AirPrint across VLANs is configured correctly.

OpenWrt & AirPrint — quick Avahi reflector tips

Before you blame the printer, check how your OpenWrt VLANs and mDNS reflector are configured.

Quick path: confirm which interfaces host your LAN, IoT, and guest VLANs → install avahi-daemon and enable Avahi reflector mode with enable-reflector=yes → restrict allow-interfaces so only trusted bridges share AirPrint → open UDP 5353 in the OpenWrt firewall between those zones → test with avahi-browse and iOS/macOS clients. A small, well-scoped OpenWrt Avahi reflector config will give you seamless AirPrint across VLANs while keeping IoT and guest networks segmented.

Disclaimer: This information is AI-generated and intended for general guidance only. Always follow the official OpenWrt, Avahi, and printer vendor documentation. For advice tailored to your router model, VLAN layout, and security requirements, please consult a verified expert on Whizz-Tech before applying configuration changes to production networks.


Getting Started Is Easy

Ask for help, 24/7

Members enjoy round-the-clock access to 12,000+ verified Experts, including OpenWrt specialists, Linux network engineers, and printer technicians who deal with Avahi reflector and AirPrint VLAN issues every day.

Expert will respond in minutes

We match you with an Expert who specializes in OpenWrt Avahi reflector configs, AirPrint across subnets, mDNS on VLANs, and Apple Bonjour troubleshooting so you can get your printers showing up again quickly.

Save time & money

Avoid endless trial-and-error with VLANs and multicast. We’ll help you design a safe OpenWrt mDNS setup, keep AirPrint and Bonjour services working across VLANs, and reduce support calls from users who “can’t find the printer”.

FAQ

Why can’t I see my AirPrint printer across VLANs on OpenWrt?

AirPrint relies on Bonjour / mDNS, which uses multicast DNS on UDP port 5353 and does not normally cross routed boundaries. When you put printers on an IoT VLAN and clients on another VLAN, OpenWrt forwards unicast traffic but drops multicast, so AirPrint printers disappear from iOS/macOS. You need an mDNS gateway such as Avahi reflector on OpenWrt to repeat those mDNS advertisements between the relevant VLAN interfaces.

What does the Avahi reflector do on OpenWrt?

The Avahi reflector listens for mDNS traffic on one or more interfaces and reflects it to the others, allowing clients to browse Bonjour services across different VLANs or subnets. On OpenWrt, enabling enable-reflector=yes in /etc/avahi/avahi-daemon.conf and setting allow-interfaces=br-lan,br-iot is a common way to make AirPrint work across LAN and IoT VLANs without bridging everything together.

Which ports and firewall rules are required for Avahi reflector AirPrint?

For an OpenWrt Avahi reflector for AirPrint, you must allow UDP port 5353 (mDNS) on the VLAN interfaces where Avahi is active, and ensure that the router itself can send and receive multicast DNS on those zones. You do not need to open full routing between VLANs; a few targeted firewall rules for 224.0.0.251:5353/udp are enough for Avahi to reflect AirPrint advertisements while keeping other traffic segmented.

Is it safe to use Avahi reflector on a segmented OpenWrt network?

When configured with limited interfaces and proper firewall rules, an Avahi reflector is generally safe on a segmented OpenWrt network. Only VLANs listed in allow-interfaces share mDNS, and you can keep WAN and untrusted guest networks excluded. This lets you maintain IoT and VLAN isolation while still offering seamless AirPrint and Bonjour discovery for trusted devices.

Sources

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