mDNS Repeater - Tutorial?

Thanks…

mdns-repeater red0 green0 is not working
mdns-repeater green0 red0 is not working
mdns-repeater tun0 green0 is not working
mdns-repeater green0 tun0 is not working

i wood like to use an Printer over an OpenVPN Connection

EDIT:

mdns-repeater -f green0 tun0
mdns-repeater: dev green0 addr 192.168.2.1 mask 255.255.255.0 net 192.168.2.0
mdns-repeater: dev tun0 addr 10.31.29.1 mask 255.255.255.255 net 10.31.29.1
data from=192.168.2.28 size=221
repeating data to tun0


mdns-repeater -f tun0 green0
mdns-repeater: dev tun0 addr 10.31.29.1 mask 255.255.255.255 net 10.31.29.1
mdns-repeater: dev green0 addr 192.168.2.1 mask 255.255.255.0 net 192.168.2.0
data from=192.168.2.21 size=45
repeating data to tun0

both are sending data to tun0

Hi,

hope this helps https://forum.ipfire.org/viewtopic.php?t=22722

Edit: To preserve the form the whole again machine translated:

Well, maybe someone will face the same problem in the future.

The Airprint discovery runs via multicasts, which are normally used by the
Firewall can not be processed.
The package “mdns-repeater” must be installed for this. As far as I have seen the packet is already preconfigured to process the multicasts green<->blue. By adjusting the Startup-Config file or by a simple call in the shell (e.g. mdns-repeater red0 orange0) the other networks can also be handled.
A network for multicasts must then be defined (224.0.0.0/24).
Allow firewall outgoing from green and blue to this network.
If you want to print via airprint a unicast will be used,
therefore destination port 631 TCP must be allowed from blue to green.

Translated with www.DeepL.com/Translator (free version)

How can i create an network for multicast tun0 <-> green0 ?

This wiki is not enough for me to make this AddOn Working…

Hi,

OpenVPN on IPFire works in routing mode so multicast/broadcast will not be transferred via the tunnel. For this, you would need a bridged mode.

Best,

Erik

Do you mean the “redirect Gateway” setting in OpenVPN? This is active for my connection

No i mean the OpenVPN operating mode in general (–dev tun). Bridged mode needs ‘–dev tap’ which works on layer 2. routing mode works in layer 3 so multicast/broadcast can not be transferred.

Best,

Erik

Okay, thats to complicated to use it 6 times a year

I don’t get it. Why do you need mDNS for accessing a printer via a OpenVPN connection?

because I am an Mac and iOS User. I use “AirPrint/ Bonjour” to access my Network printer…

@betatester did you ever try to connect your iOs-thing to a Cups Server?

No, i didn’t test it… I don’t like printserver… they cut printer functions

possibly yes.

Best,

Erik

Yes, they do.
Sometimes avoiding toner massacre and paper extermination.
Sometimes providing an interface for something that does not have one, Just like an old serial plotter that did not have any driver, shared as a PostScript printer via CUPS, or providing AirPrint capabilities to an old Epson SX620FW :wink:

1 Like

That would be great if that would work in IPFire :slight_smile:

Hell no, a tweak to Windows did the trick. Share the printer, install iTunes, add an old software by ElpamSoft and a little firewall exception (UDP 5353).
But i managed to let a old friend to print to his Epson via PC from his iPad. Far cheaper than Printopia or buy a new device (he has a lot of tanks and he don’t want to buy something if the old one has not problems or missing something really necessary).

Hi DJ-Melo,
I think, your translation is quite good an gives me a roadmap to go.
Just one question, which is not 100% clear to me right now.
How do I assign a network 224.0.0.0/24 to a MULTICAST?
Thanx in advance for your help here
ziercket

welcome. Sorry I don’t know. Maybe others can help.

A little late, but it might help you and others, which where searching like I.
You first add under Firewallgroups a network with address 224.0.0.0 and the netmask 24. I named mine Multicast.
And then you add a rule under Firewallrules with the source firewall and select the blue network.
As destination you select the network, which was created in the first step.
Select accept. Save and activate the rule.
Depending on the services you need to add more rules from blue network, this time select the blue network from the standard networks as opposed to the firewall and as destination I selected the ip of my printer with the protocol tcp and the port 443. Some printers might need 631.
For airplay use the ip of the airplay device and add rules for udp 319:320 and tcp 65000:65535 and maybe you need the tcp 8000:8999 and tcp 40000:49999.

Sorry for my late follow up, Karl-Heinz
Your proposal sounds great and I’ll give it a trial as soon I’ve finished some other things.
Will keep you in the loop

BR
Thorsten