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

WireGuard interface IPv6 prefixlen

Scheduled Pinned Locked Moved WireGuard
7 Posts 4 Posters 932 Views 3 Watching
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 Offline
    Ghola
    last edited by Feb 23, 2021, 7:39 PM

    I'm trying to set up two WireGuard tunnels. These are the addresses I have been provided:

    • 10.72.69.xxx/32,fc00:bbbb:bbbb:bb01::9:xxxx/128
    • 10.71.231.xxx/32,fc00:bbbb:bbbb:bb01::8:xxxx/128

    I can add the first one fine, but then I get this error when trying to add the second:

    The following input errors were detected:
    fc00:bbbb:bbbb:bb01::8:xxxx/128 is already configured on this firewall: OPT10 (fc00:bbbb:bbbb:bb01::9:xxxx/64)

    As the error indicates, the first interface seems to have been assigned a /64 rather than the specified /128. Confirmed with ifconfig wg0:

        inet 10.72.69.xxx netmask 0xffffffff
        inet6 fc00:bbbb:bbbb:bb01::9:xxxx prefixlen 64
    

    Am I missing something? This seems like a bug.

    D 1 Reply Last reply Mar 3, 2021, 5:32 PM Reply Quote 0
    • G Offline
      Ghola
      last edited by Ghola Mar 2, 2021, 1:32 AM Mar 2, 2021, 12:38 AM

      I dug further into this. It is a bug. When I add the first interface, /etc/inc/web/wg.inc does this:

      /sbin/ifconfig 'wg0' inet6 'fc00:bbbb:bbbb:bb01::9:xxxx' netmask '255.255.255.255'
      

      If I apply the attached fix, it does this instead:

      /sbin/ifconfig 'wg0' inet6 'fc00:bbbb:bbbb:bb01::9:xxxx' prefixlen '128'
      

      wg.inc.patch

      M 1 Reply Last reply Mar 2, 2021, 2:07 AM Reply Quote 2
      • M Offline
        Manatee @Ghola
        last edited by Mar 2, 2021, 2:07 AM

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • N Offline
          nva
          last edited by nva Mar 3, 2021, 5:11 PM Mar 3, 2021, 5:02 PM

          Ahh a fellow Mullvad user. I had same problem and was going to post this. Are Netgate aware of this bug? I just take a look at bug tracker and it seems nobody posted this there. Tagging mod @dennis_s

          D 1 Reply Last reply Mar 3, 2021, 5:18 PM Reply Quote 0
          • D Offline
            dennis_s @nva
            last edited by Mar 3, 2021, 5:18 PM

            @nva Thanks for the mention...let me bring this up to our engineers.

            1 Reply Last reply Reply Quote 1
            • D Offline
              dennis_s @Ghola
              last edited by dennis_s Mar 3, 2021, 5:33 PM Mar 3, 2021, 5:32 PM

              @ghola Can you please open a ticket on Redmine for this issue. You can find details of what is needed here.

              G 1 Reply Last reply Mar 3, 2021, 10:24 PM Reply Quote 0
              • G Offline
                Ghola @dennis_s
                last edited by Mar 3, 2021, 10:24 PM

                @dennis_s Sure! Opened bug #11618.

                1 Reply Last reply Reply Quote 2
                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