I need some advice.
I have a HP printer and using a raspberry pi running cups to print from a ipad. This all works fine.
However, i sometimes connect with my ipad via wireguard and also want to print in that case.
Any pointers on how to make that happen?
Currently the wireguard interface is on 192.168.16.1/24 and my main lan is on 192.168.8.1/21.
Should i just make the wireguard part of the lan subnet? that does sound like a bit of bad idea...
Or should I just do port forwarding? And if so, which ports?
Well not port fowarding but you would need to allow the ports between the two firewall zones.
Depending on which print protocol you use it would be TCP:631 or TCP:9100
I have forwarding from the one zone to the other zone enabled, also tried both in one firewall zone (of course with forward to accept). The issue is that the discovery apparently is not working. I guess multicast/broadcast packets are not reaching there.
I tried putting the wireguard on 192.168.14.1/24. That did not work. I also tried 192.168.8.1/21, that locked me out of the router and had to do a full reset. I guess i need to maybe do port forwarding or some more advanced form of routing or bridging...
This should work to advertise the router itself, but announcing services might not be that simple.
And announcing services across subnets is even more complicated.
Ok I solved it. I Basically did what was in the link i posted above.
Its as simpel as installing the avahi-dbus-daemon
Then add under [server] in /etc/avahi/avahi-daemon.conf: allow-interfaces=br-lan,VPN,br-guest
add under [reflector] enable-reflector=yes