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

    Can't bind socket: Can't assign requested address for fe80:

    2.4 Development Snapshots
    4
    14
    4.3k
    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
      samham
      last edited by

      Any idea what the following errors mean and how to stop them:

      pfsense unbound: [38137:0] error: can't bind socket: Can't assign requested address for fe80:xx::x
      pfsense unbound: [38137:0] error: can't bind socket: Can't assign requested address for fe80:xx::x
      pfsense unbound: [38137:3] error: can't bind socket: Can't assign requested address for fe80:xx::x

      I'm running 2.4.0-RC (amd64) with dual stack

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

        What, specifically, do you have selected in the DNS Resolver for all of its interface controls (network and outgoing)

        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
        • S
          samham
          last edited by

          please see the attached

          Capture.PNG
          Capture.PNG_thumb

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

            Try deselecting the IPv6 link-local interfaces from the list, see if that helps.

            I think someone else hit that before, where it wouldn't bind to a link-local for one reason or another. If you need it to bind to those you may have to use 'all' (or select nothing).

            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
            • A
              Asiya
              last edited by

              I have a similar issue with log spam:

              The log is filling up with 'error: can't bind socket: Can't assign requested address for fe80::4:2:1070'

              fe80::4:2:1070 is the WAN Link Local address.

              Unbound config:

              • Respond to queries on LAN and Localhost.
              • Outgoing network interface is set to WAN
              • Forwarding mode is enabled

              IPv6 is configured on the WAN with the following settings that differ from the defaults:

              • Request a IPv6 prefix/information through the IPv4 connectivity link
              • Only request an IPv6 prefix, do not request an IPv6 address
              • Prefix delegation size: 60
              • (Username & Password filled in)

              LAN IPV6 config is set to 'Track Interface - WAN'

              1 Reply Last reply Reply Quote 0
              • S
                samham
                last edited by

                jimp, no change after implementing your suggestion

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

                  @samham:

                  jimp, no change after implementing your suggestion

                  Which suggestion specifically? I listed three things to try:

                  • Deselecting the Link-Local addresses in the list
                  • Using the "All" option in the list
                  • Deselecting everything in the list

                  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
                  • S
                    samham
                    last edited by

                    no of the above worked for me

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

                      What do you have selected for your Outgoing network interfaces? I changed mine from 'WAN' to 'All' and the error disappeared.

                      On my WAN interface, the primary IPv6 and Link local addresses are the same. My ISP only provides an IPv6 prefix.

                      I'm not sure why unbound keeps trying to bind to the Link-Local address over and over though

                      1 Reply Last reply Reply Quote 0
                      • S
                        samham
                        last edited by

                        upgrading to 2.4.0 and changing outgoing to all seem to fix it!

                        1 Reply Last reply Reply Quote 0
                        • K
                          kpa
                          last edited by

                          In general you almost never need to change the outgoing interfaces setting, the system will select the appropriate outgoing interface properly based on the destination addresses of the queries. It's only when you have a very special and complicated set up with multiple WANs and complicated routing you have to touch the setting.

                          1 Reply Last reply Reply Quote 0
                          • S
                            samham
                            last edited by

                            I don't have a complicated setup, it's one outgoing interface with IPv4 and IPv6 that's it.

                            1 Reply Last reply Reply Quote 0
                            • K
                              kpa
                              last edited by

                              I meant changing it from the default "All" to something else, you almost never need to do that.

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

                                I finally was able to replicate it, but it looks like we're doing everything correctly. The specifications of link local addresses all have a scope in the configuration file. It looks like unbound is not too happy about the same link local address being on multiple interfaces, but that's why scopes existโ€ฆ

                                Checking sockstat, unbound is actually bound to the addresses it complains about, even with the different scopes.

                                It appears to be harmless, just log spam. Someone could report it upstream to unbound if they want.

                                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
                                • First post
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.