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

    Connect 2 ipv4 sites through ipv6 wireguard tunnel

    Scheduled Pinned Locked Moved WireGuard
    5 Posts 2 Posters 691 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.
    • J
      JoeFromNowhere
      last edited by

      Hello everyone,
      I have 2 ipv4 sites.
      I had an ipv4 wireguard tunnel working well with 2 ISPs (1 for failover). But the failover ISP turned to CGNAT.

      Tunnel is current in production sites are 4km from each others. I'm alone to do this, so I don't want to break everything !
      And I'm new to ipv6, so I tried many things.

      Here's what I did :
      I added ipv6 WANS on both sites (DHCP from ISPs internet boxes) and they are ok (online/green status).
      I added ipv6 configuration to my wireguard interface and I have 2 wireguard gateways now, ipv4 and ipv6.
      Wireguard ipv6 adresses are local (beginning with fdad) with the same prefix.
      Both ipv4 and ipv6 wireguard gateways are connected (online/green status).

      Next step : replace ipv4 endpoints in wireguard with ipv6 endpoints (public ISPs ipv6 addresses).
      I hope I'm not wrong until there.

      But before replace wireguard endpoints, when I try to add a static route with 10.1.2.0/24 destination and the ipv6 wireguard as gateway, pfsense tells me that adresses are not from the same families.
      My question is : how do I tell pfsense to route ipv4 destination networks through ipv6 tunnel ?

      Thank you for your answers and sorry for the english mistakes !

      Bob.DigB 1 Reply Last reply Reply Quote 0
      • Bob.DigB
        Bob.Dig LAYER 8 @JoeFromNowhere
        last edited by

        @JoeFromNowhere said in Connect 2 ipv4 sites through ipv6 wireguard tunnel:

        how do I tell pfsense to route ipv4 destination networks through ipv6 tunnel ?

        You don't. Let that tunnel be IPv4 only and use IPv6 only for the "endpoints".

        J 1 Reply Last reply Reply Quote 0
        • J
          JoeFromNowhere @Bob.Dig
          last edited by

          @Bob-Dig
          Do you mean I should remove ipv6 configuration from the wireguard interface ?

          Bob.DigB 1 Reply Last reply Reply Quote 0
          • Bob.DigB
            Bob.Dig LAYER 8 @JoeFromNowhere
            last edited by

            @JoeFromNowhere said in Connect 2 ipv4 sites through ipv6 wireguard tunnel:

            Do you mean I should remove ipv6 configuration from the wireguard interface ?

            At least you gave no reason why you added IPv6 to it.

            J 1 Reply Last reply Reply Quote 0
            • J
              JoeFromNowhere @Bob.Dig
              last edited by

              @Bob-Dig
              Wonderful ! Much easier than I thought !
              I just followed a tutorial which told me to do so.

              Thank you very much !

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