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

Avahi with dynamic IPv6 gives counting hostname-N

Scheduled Pinned Locked Moved pfSense Packages
7 Posts 2 Posters 2.2k 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.
  • G
    got0
    last edited by Aug 28, 2015, 6:30 PM

    Avahi has an issue with IPv6 temporary addresses (e.g. IPv6 with privacy extension). Whenever a host changes one of its IPv6, avahi detects a hostname conflict and has a chance to lose its fight against an actually non-existing other host. Then, the avahi changes the hostname to hostname-2, incrementing the number with each conflict lost. Google gives some hits on this, e.g. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=780981

    As a workaround for me, I disabled IPv6 for avahi on pfsense (and all my linux hosts. OSX seems have fixed the same symptoms with 10.10 again). The WUI switch relates to use-ipv6=no and disables avahi's IPv6 socket. However, avahi still publishes IPv6 addresses on its IPv4 socket. To get avahi completely IPv4-only, I set in avahi-daemon.conf (on all hosts) to the following:

    use-ipv4=yes
    use-ipv6=no
    publish-aaaa-on-ipv4=NO  <==

    Since then, avahi works nicely and my hostnames are stable. May I ask to make this option configurable on the WUI as well?

    1 Reply Last reply Reply Quote 0
    • D
      doktornotor Banned
      last edited by Aug 28, 2015, 6:54 PM

      @got0:

      However, avahi still publishes IPv6 addresses on its IPv4 socket.

      And the issue with that is exactly what? That's upstream default.

      1 Reply Last reply Reply Quote 0
      • G
        got0
        last edited by Aug 28, 2015, 7:00 PM

        With aaaa over IPv6, I have "counting" hostnames, if I make use of temporary IPv6. Without aaaa over IPv6, the hostnames remain stable.

        1 Reply Last reply Reply Quote 0
        • D
          doktornotor Banned
          last edited by Aug 28, 2015, 7:04 PM

          What I'm asking is what issues are you having with the publish-aaaa-on-ipv4 thing?

          1 Reply Last reply Reply Quote 0
          • G
            got0
            last edited by Aug 28, 2015, 7:11 PM

            It seems to me that avahi has an issue with changing IPv6 addresses, regardless of whether it gets notified of the hostname-IPv6 info via IPv6 socket or IPv4 socket.

            1 Reply Last reply Reply Quote 0
            • D
              doktornotor Banned
              last edited by Aug 29, 2015, 1:13 AM Aug 28, 2015, 9:40 PM

              Do you have enough options there?  ::) https://github.com/pfsense/pfsense-packages/pull/1030

              1 Reply Last reply Reply Quote 0
              • G
                got0
                last edited by Aug 29, 2015, 9:27 AM

                that's perfect, many thanks

                1 Reply Last reply Reply Quote 0
                7 out of 7
                • First post
                  7/7
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received