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

    Tunnel and LAN IPv6 addresses for OpenVPN server

    Scheduled Pinned Locked Moved OpenVPN
    6 Posts 2 Posters 937 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.
    • L
      lifespeed
      last edited by

      I was able to connect from Windows 10 using OpenVPN Connect and the IPv4 settings for tunnel and LAN, below. But my network is set up for IPv6 as well and I would like that functional over VPN. How do I configure the IPv6 subnets and LAN? pfSense shows a globally-routable address for my LAN, I'm not sure that is what I'm supposed to use. For the tunnel network, notes in the server configuration give an example of fe80::/64

      Capture.PNG

      JKnottJ 1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott @lifespeed
        last edited by

        @lifespeed

        Things like routing and tunnels work pretty much the same for IPv4 and IPv6. For example, you used a separate subnet for your IPv4 tunnel. You can do the same with IPv6, using a global address subnet, if you have one to spare or unique local, which is the IPv6 equivalent of RFC1918,

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        L 1 Reply Last reply Reply Quote 0
        • L
          lifespeed @JKnott
          last edited by lifespeed

          @JKnott I apologize for the late reply. I read your Unique Local Addresses post, and think I understand that I can create a ULA starting with FD as follows, where xxxx are random hex numbers.

          FDxx:xxx:xxxx:0::

          I don't understand if or why I should use a ULA address with FD prefix instead of a link-local prefix FE as shown in the OpenVPN example above. I'm not sure why a GUA subnet would be used in this case, or how to create it.

          Edit: tried fd45::/64 in the IPv6 tunnel network field, the remote client connects and shows both IPv4 and IPv6 configured in OpenVPN server on pfSense as the tunnel network IP addresses

          JKnottJ 1 Reply Last reply Reply Quote 0
          • JKnottJ
            JKnott @lifespeed
            last edited by JKnott

            @lifespeed

            Actually, you can use anything, including no address. When routing, you need to know how to get to the next hop. On a point to point link, such as a VPN you can even use just the interface. There's also no reason you couldn't use a link local address. In fact, that's what I use with my ISP. I just thought using a routable address would be easier for some to understand. My VPN uses one of my global /64 prefixes as the other end is only my notebook computer and it would need a global address. For a tunnel between two sites, any method could be used.

            PfSense running on Qotom mini PC
            i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
            UniFi AC-Lite access point

            I haven't lost my mind. It's around here...somewhere...

            L 1 Reply Last reply Reply Quote 0
            • L
              lifespeed @JKnott
              last edited by lifespeed

              @JKnott said in Tunnel and LAN IPv6 addresses for OpenVPN server:

              My VPN uses one of my global /64 prefixes as the other end is only my notebook computer and it would need a global address. For a tunnel between two sites, any method could be used.

              This makes sense, and is likely the most complete configuration. The client connected by VPN will have a complete set of network addresses including GUA IPv6 if I configure as a subnet of my ISP prefix delegation to pfSense and LAN.

              Now I just need to figure out IPv6 subnet addressing and input the subnet to the IPv6 tunnel address. Of course, if this prefix delegation from my ISP changes addresses once a year or so, it will break the setup as this address will be hard-coded and not follow LAN prefix delegation from the ISP.

              JKnottJ 1 Reply Last reply Reply Quote 0
              • JKnottJ
                JKnott @lifespeed
                last edited by

                @lifespeed

                My prefix has been the same for almost 5 years. However, this is one reason I mentioned ULA. It won´t change, unless you change it.

                There's not much to subnet. You just assign a /64 to each interface.

                PfSense running on Qotom mini PC
                i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                UniFi AC-Lite access point

                I haven't lost my mind. It's around here...somewhere...

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