Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Avahi and AirPrint

    Scheduled Pinned Locked Moved pfSense Packages
    12 Posts 5 Posters 4.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      stinkfly
      last edited by

      Hi all, have PF 2.4.3 with Avahi 1.12 installed. I am trying to get AirPrint working

      The printers are on the LAN network and WiFi users with iPhones/iPads are on a separate VLAN, VLAN 10. What's annoying is that it intermittently works or sometimes works after the Avahi service is restarted. Even sometimes after a restart it still won't work.

      I have setup firewall rules to send traffic from LAN to the printer aliases (2 printers) and also from LAN to 224.0.0.251 (Bonjour Address). Also FW rules between VLAN 10 and 224.0.0.251 and VLAN 10 and printer aliases

      Has anyone got this working in a stable environment? Any help would be appreciated

      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • Q
        q54e3w
        last edited by

        I have a reliable avahi system but airprint is just finicky IMHO. I use this which works reliably. Airprint still occasionally doesn't find printer. If you want/need a quick solution, its worthe the few bucks. If you manage to debug airprint please post back.

        https://readdle.com/printerpro

        1 Reply Last reply Reply Quote 1
        • S
          stinkfly
          last edited by

          Thanks, does it work across multiple subnets/VLANs though. That’s the only reason I’m using Avahi, if it’s a single network then no probs with it working, it’s because the LAN and VLAN are 2 diff subnets

          Q 1 Reply Last reply Reply Quote 0
          • Q
            q54e3w @stinkfly
            last edited by

            @stinkfly it does, but you might need to configure other devices in your network to support cross VLAN traffic, i.e wifi APs, switches. Do you have other multicast traffic working or is your problem exhibiting itself on all types of multicast traffic? If its just printing, that software may solve your issues, if its with other sources of traffic like video, its probably worth debugging more fundamental setup problems first.
            Theres some useful tools like iNet on iOS thats useful for debugging multicast too.

            1 Reply Last reply Reply Quote 1
            • T
              tcw
              last edited by tcw

              I have AirPrint working across VLANs (I have my printers on a printer VLAN and my iPhones on a home VLAN). I have Avahi enabled and Bonjour firewall rules on both VLANs, as well as the rules that allow printing across VLANs. But, I had to turn off Avahi because all of my Apple devices started renaming themselves after detecting apparent conflicts. One got all the way up to iMac-10 before I disabled Avahi. I couldn't find a solution to that problem, but AirPrint worked great before I disabled Avahi.

              Q GertjanG 2 Replies Last reply Reply Quote 1
              • S
                stinkfly
                last edited by

                @q54e3w, thanks for your other ideas. There's also an Apple TV in the LAN network but that seems to be working ok. I guess AirPrint itself seems very finicky, I might end up putting the Printers into the same VLAN as the users.

                Thank you all who have replied, this is real encouragement for me as others have helped a complete stranger. Reminds me to contribute and not just consume ☺

                Kind regards
                Stinkfly

                1 Reply Last reply Reply Quote 0
                • Q
                  q54e3w @tcw
                  last edited by q54e3w

                  @tcw said in Avahi and AirPrint:

                  Snip... But, I had to turn off Avahi because all of my Apple devices started renaming themselves after detecting apparent conflicts. One got all the way up to iMac-10 before I disabled Avahi. I couldn't find a solution to that problem, but AirPrint worked great before I disabled Avahi.

                  I’ve spent some time debugging that issue, I thought it could be my switch which wasn’t configured for automatic leave or something but never did get to bottom of that. It only seems to occur with my Apple devices too so probably related to their implementation. If anyone has any ideas would love to solve.

                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    @tcw said in Avahi and AirPrint:

                    But, I had to turn off Avahi because all of my Apple devices started renaming themselves after detecting apparent conflicts. One got all the way up to iMac-10 before I disabled Avahi. I couldn't find a solution to that problem, but AirPrint worked great before I disabled Avahi.

                    In the Avahi settings, set Maximum Cache Size to 0.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • GertjanG
                      Gertjan @tcw
                      last edited by

                      @tcw said in Avahi and AirPrint:

                      I had to turn off Avahi because all of my Apple devices started renaming themselves after detecting apparent conflicts

                      Strange.
                      Have a basket full with apples here, and never saw this behavior.
                      All your apples have an unique "name" ?

                      My

                      **Maximum Cache Size**
                      The size of the object cache. Leave blank for default, 0 to disable. Disabling the cache can help with object duplication when reflecting.
                      

                      isn't filled in / contains nothings.

                      No "help me" PM's please. Use the forum, the community will thank you.
                      Edit : and where are the logs ??

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        tcw @Gertjan
                        last edited by

                        @gertjan said in Avahi and AirPrint:

                        @tcw said in Avahi and AirPrint:

                        I had to turn off Avahi because all of my Apple devices started renaming themselves after detecting apparent conflicts

                        Strange.
                        Have a basket full with apples here, and never saw this behavior.
                        All your apples have an unique "name" ?

                        My

                        **Maximum Cache Size**
                        The size of the object cache. Leave blank for default, 0 to disable. Disabling the cache can help with object duplication when reflecting.
                        

                        isn't filled in / contains nothings.

                        Yes, they are all unique. It’s as though they were seeing reflections of themselves and trying to de-conflict multiple times.

                        1 Reply Last reply Reply Quote 0
                        • GertjanG
                          Gertjan
                          last edited by

                          Humm ...
                          Then it is this "smart" switch I guess - I have none (one need to be smart to use smart switches ... etc etc - didn't work out for me)

                          No "help me" PM's please. Use the forum, the community will thank you.
                          Edit : and where are the logs ??

                          1 Reply Last reply Reply Quote 0
                          • T
                            tcw
                            last edited by

                            AirPrint, Remote, and device names have been behaving normally for me across multiple VLANs/subnets for the last few days now. Thanks for the tip on object cache size.

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.