Project

General

Profile

Actions

Feature #2170

closed

Enable AirPrint mdns via Avahi

Added by kevev kevev about 12 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
02/07/2012
Due date:
% Done:

0%

Estimated time:
Plus Target Version:

Description

Can we have Avahi adjusted to allow mdns broadcasts for Apple AirPrint?

This will allow iOS devices to print via CUPS.

Here is my tutorial: http://forum.pfsense.org/index.php/topic,45964.0.html

Actions #1

Updated by Stilez y over 7 years ago

Much faster solution if anyone looks at this.

There is an active FreeBSD port of "mdns-repeater". Its args are a list of interfaces optionally preceded with -f for foreground/debug mode (run -f from console not GUI!), and it listens for mdns on any interface, and repeats them out on all others.

You need to add firewall rules to allow the interfaces to receive the packets (and possibly routing rules depending on config), and voila - airplay minimal version. No need for CUPS if your printer or any LAN s/w can work with airplay, and many modern printers (eg HP's) can do so. Just need to set a system command to start it (without -f) on reboot.

Even if not packaged, the only file really needed is the 14k file at /usr/local/bin/mdns-repeater, so the port can be untxz'ed and that single file used, until a package exists. It doesn't seem to present a high risk of abuse from being outside pfSense GUI control since it has very few parameters (the interfaces which share mdns packets), and is overridden by (and logged by) the firewall.

It could well be trivial to make this into an Airplay-enabler and have it as a standard package for pfsense, or even built-in, as many people have issues with Apple Airplay + LAN printing and discovery, and they're popular enough and the fix simple enough to be worth bringing onboard.

Actions #2

Updated by Stilez y over 7 years ago

Forgot the links

Port is in usual place. If anyone's in a hurry and just wants the FreeBSD 10.x binary to upload to their platform, it's at http://distcache.freebsd.org/freebsd:10:x86:64/latest/All/mdns-repeater-1.10_2.txz and unpack.

Actions #3

Updated by Kill Bill over 7 years ago

Stilez y wrote:

There is an active FreeBSD port of "mdns-repeater". Its args are a list of interfaces optionally preceded with -f for foreground/debug mode (run -f from console not GUI!), and it listens for mdns on any interface, and repeats them out on all others.

I must be missing something. Ain't this the exact same thing that "Enable Reflector" checkbox in Avahi does? Leave that ticked, select the interfaces and move on. If that doesn't work, fix your firewall rules.

Actions #4

Updated by Kill Bill over 7 years ago

This already works with Avahi as noted above. Please, close this.

Actions #5

Updated by Jim Pingle over 7 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF