• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Oct 7, 2017, 6:26 PM

    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
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Oct 10, 2017, 12:44 PM

      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 Oct 10, 2017, 6:40 PM

        please see the attached

        Capture.PNG
        Capture.PNG_thumb

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Oct 10, 2017, 6:54 PM

          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 Oct 10, 2017, 8:49 PM Oct 10, 2017, 8:33 PM

            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 Oct 12, 2017, 7:02 PM

              jimp, no change after implementing your suggestion

              1 Reply Last reply Reply Quote 0
              • J
                jimp Rebel Alliance Developer Netgate
                last edited by Oct 12, 2017, 7:28 PM

                @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 Oct 12, 2017, 7:29 PM

                  no of the above worked for me

                  1 Reply Last reply Reply Quote 0
                  • A
                    Asiya
                    last edited by Oct 13, 2017, 10:45 AM

                    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 Oct 13, 2017, 1:43 PM

                      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 Oct 13, 2017, 1:49 PM

                        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 Oct 13, 2017, 1:51 PM

                          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 Oct 13, 2017, 1:52 PM

                            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
                            • J
                              jimp Rebel Alliance Developer Netgate
                              last edited by Oct 16, 2017, 2:28 PM

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