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

    Avahi - interface missing

    Scheduled Pinned Locked Moved pfSense Packages
    11 Posts 5 Posters 2.8k 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.
    • A
      AW_sensepf
      last edited by

      Re: New Avahi package

      I have installed Avahi 2.0.0_2 on pfSense 2.4.4-RELEASE-p1 (amd64). There are 4 interfaces:

      WAN Interface (wan, re1)
      LAN Interface (lan, re0)
      OPT1_HUA Interface (opt1, ue1)
      OPT2_VMG1312 Interface (opt2, ue0)

      All interfaces are up and running.

      Services/Avahi/Interfaces only lists 3 of them. WAN is missing.

      /usr/local/etc/avahi/avahi-daemon.conf contains:
      [server]
      allow-interfaces=re0
      allow-point-to-point=yes
      use-ipv4=yes
      use-ipv6=no
      enable-dbus=no
      cache-entries-max=0

      [wide-area]
      enable-wide-area=yes

      [publish]
      disable-publishing=no
      publish-addresses=yes
      publish-hinfo=yes
      publish-workstation=yes
      publish-domain=yes
      publish-aaaa-on-ipv4=no
      publish-a-on-ipv6=no
      disable-user-service-publishing=yes

      [reflector]
      enable-reflector=yes


      How to add "allow-interfaces=re1"? On a second line?
      Is Avahi daemon listening and sending on dependent on FW rules created/active?
      WAN is a point-to-point connection with fixed IP to a FritzBox 7490 running as internet-router. UPnP LAN-side is active.

      Service status on dashboard for Avahi mDNS/DNS-SD daemon is green, but a "avahi-browse -a -v" on a Execute Shell Command says:"
      Shell Output - avahi-browse -a -v
      Failed to create client object: Daemon not running"

      Services from pfSense are announced throughout LAN.

      What to do that name resolution for Fritz.Box is available in LAN?

      Rgds
      AW

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

        Listening on WAN ?
        Something like
        allow-interfaces=re0,re1
        ?
        This is probably enforced in the surrounding GUI code.
        edit : yep, see here /usr/local/www/avahi_settings.php - line 127.
        Exposing avahi to upstream seems quiet ... not usual to me.

        @aw_sensepf said in Avahi - interface missing:

        Failed to create client object: Daemon not running"

        As discussed : https://forum.netgate.com/topic/134339/new-avahi-package/11

        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
        • dennypageD
          dennypage @AW_sensepf
          last edited by

          @aw_sensepf mDNS on the WAN interface is specifically disabled for security reasons.

          Local browsing (dbus) on the firewall itself is not supported. If you want to browse the local network, you would use a regular host in the local network. See discussion in the Avahi package thread for more information.

          1 Reply Last reply Reply Quote 0
          • A
            AW_sensepf
            last edited by

            You are right. I am wrong. It is wrong to do mDNS on WAN interfaces. I am still a newbie with regard to pfsense.

            I was simply confused about the missing interface.

            But then the question in reverse is: Why are there 2 WAN interfaces included where the Avahi daemon is listening and sending on? "OPT1_HUA Interface (opt1, ue1)" and "OPT2_VMG1312 Interface (opt2, ue0)" are WAN interfaces. I have multiWAN with three interfaces. All three WAN interfaces have a upstream gateway assigned to and are used in a gatewaygroup.

            How does avahi on pfSense decide whether a interface is WAN or not? Avahi should listen and send on a interface?

            Rgds
            AW

            johnpozJ dennypageD 2 Replies Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @AW_sensepf
              last edited by

              @aw_sensepf said in Avahi - interface missing:

              How does avahi on pfSense decide whether a interface is WAN or not?

              If the interface has a gateway set on it - then to pfsense it is a "wan" interface.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              1 Reply Last reply Reply Quote 0
              • dennypageD
                dennypage @AW_sensepf
                last edited by

                @aw_sensepf The package eliminates the single interface named "wan". It does not make judgements on any other interfaces.

                1 Reply Last reply Reply Quote 0
                • A
                  AW_sensepf
                  last edited by

                  I misunderstood the thing about avahi and its GUI in PfSense. I am sorry.

                  dennypageD 1 Reply Last reply Reply Quote 0
                  • dennypageD
                    dennypage @AW_sensepf
                    last edited by

                    @aw_sensepf No worries.

                    1 Reply Last reply Reply Quote 0
                    • M
                      mohsh86
                      last edited by

                      Re: Avahi - interface missing

                      Apologies for bumping this thread again.

                      I've noticed that Avahi GUI does not list "Virtual IPs" if any exist similar to DNS Resolver. Am i missing something?

                      dennypageD 1 Reply Last reply Reply Quote 0
                      • dennypageD
                        dennypage @mohsh86
                        last edited by

                        @mohsh86 Avahi works with interfaces. Virtual IPs do not qualify as interfaces.

                        1 Reply Last reply Reply Quote 0
                        • johnpozJ
                          johnpoz LAYER 8 Global Moderator
                          last edited by

                          @mohsh86 said in Avahi - interface missing:

                          I've noticed that Avahi GUI does not list "Virtual IPs"

                          Thinking maybe your not understanding what avahi actually does... It listens on an L2, a VIP is a L3 IP address.

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 24.11 | Lab VMs 2.8, 24.11

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