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

IPv6 routing over VPN

IPv6
3
9
1.2k
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.
  • W
    waldy327
    last edited by Dec 20, 2022, 12:32 AM

    Hello,

    I have a problem to understand the IPv6 routing over a VPN.

    The IPv4 configuration works without problems, but the same IPv6 way doesn't.

    My setup is as follows:
    external VPS (with a /64 IPv6 network and currently one IPv4) (Wireguard, NAT) <-> pfSense (NAT) <-> DMZ server

    The IPv4 way is configured like this:

    on the VPS (the Wireguard interface has the 10.56.0.1):

    10.56.0.0       0.0.0.0         255.255.255.0   U         0 0          0 wg0
    

    on the pfSense on the Wireguard client interface:

    10.56.0.0/24       link#13            U       tun_wg2
    10.56.0.5          link#13            UHS         lo0
    

    on the pfSense DMZ interface (10.255.254.2) I have configured a static route:

    192.168.201.0/24   3c:ec:ef:70:6d:ba  US         igb2
    

    and the route back on the DMZ server:

    default         10.255.254.2    0.0.0.0         UG        0 0          0 ens18
    10.255.254.2    0.0.0.0         255.255.255.255 UH        0 0          0 ens18
    

    Also I have configured a NAT with the source network 192.168.201.0/24 over the VPN interface address.

    With IPv4 that works without any problems. But, when I configure it in the same way for the IPv6 connection it seems that the pfSense cannot route over the VPN tunnel.

    So, where is my misconception?

    J 1 Reply Last reply Dec 20, 2022, 1:30 AM Reply Quote 0
    • J
      JKnott @waldy327
      last edited by Dec 20, 2022, 1:30 AM

      @waldy327 said in IPv6 routing over VPN:

      Also I have configured a NAT with the source network 192.168.201.0/24 over the VPN interface address.
      With IPv4 that works without any problems. But, when I configure it in the same way for the IPv6 connection it seems that the pfSense cannot route over the VPN tunnel.
      So, where is my misconception?

      Are you using NAT for IPv6? Do you not have multiple /64s to work with? I use OpenVPN and assign it it's own /64 prefix.

      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...

      W 1 Reply Last reply Dec 20, 2022, 6:24 PM Reply Quote 0
      • W
        waldy327 @JKnott
        last edited by Dec 20, 2022, 6:24 PM

        @jknott said in IPv6 routing over VPN:

        Are you using NAT for IPv6? Do you not have multiple /64s to work with? I use OpenVPN and assign it it's own /64 prefix.

        Yes, I tried it with NAT like the IPv4 way, but it does not work. When I ping the pfSense's gateway address directly it works, but other outgoing IPv6 connections to other targets seems not to be routed correctly.

        btw.: I have only one /64 for the VPS, so I want to use the network only partial at home.

        B J 2 Replies Last reply Dec 20, 2022, 6:59 PM Reply Quote 0
        • B
          Bob.Dig LAYER 8 @waldy327
          last edited by Dec 20, 2022, 6:59 PM

          @waldy327 What is on the VPS?

          W 1 Reply Last reply Dec 20, 2022, 7:05 PM Reply Quote 0
          • W
            waldy327 @Bob.Dig
            last edited by Dec 20, 2022, 7:05 PM

            @bob-dig said in IPv6 routing over VPN:

            What is on the VPS?

            Only the Wireguard server and iptables.

            B 1 Reply Last reply Dec 20, 2022, 7:07 PM Reply Quote 0
            • B
              Bob.Dig LAYER 8 @waldy327
              last edited by Bob.Dig Dec 20, 2022, 7:07 PM Dec 20, 2022, 7:07 PM

              @waldy327 WireGuard Server is what OS?

              W 1 Reply Last reply Dec 20, 2022, 7:22 PM Reply Quote 0
              • W
                waldy327 @Bob.Dig
                last edited by Dec 20, 2022, 7:22 PM

                @bob-dig said in IPv6 routing over VPN:

                WireGuard Server is what OS?

                Debian

                1 Reply Last reply Reply Quote 1
                • J
                  JKnott @waldy327
                  last edited by Dec 20, 2022, 7:52 PM

                  @waldy327 said in IPv6 routing over VPN:

                  btw.: I have only one /64 for the VPS, so I want to use the network only partial at home

                  Can you spare another? Also, you can always use Unique Local Addresses for the tunnel.

                  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...

                  W 1 Reply Last reply Dec 20, 2022, 8:36 PM Reply Quote 0
                  • W
                    waldy327 @JKnott
                    last edited by Dec 20, 2022, 8:36 PM

                    @jknott said in IPv6 routing over VPN:

                    Can you spare another? Also, you can always use Unique Local Addresses for the tunnel.

                    No. But the tunnel is not the problem. Here I already use Unique Local Adresses.

                    Here is my IPv6 configuration, maybe it helps to solve my problem:

                    Wireguard Server:

                    [Interface]
                    Address = 10.56.0.1/24, fe00::1/64
                    PrivateKey = ********************
                    ListenPort = 51820
                    
                    [Peer]
                    PublicKey = ********************
                    AllowedIPs = 10.56.0.5/32, fe00::2/128, 2001:********************::/64
                    

                    At the wireguard client side (the pfSense) I use the fe00::2. This works.

                    But the routing/NAT between my DMZ server and the pfSense is not working:

                    On the pfSense DMZ interface (which I gave no IPv6 ip) I have the following static route:

                    2001:******************** 3c:ec:ef:70:6d:ba UHS        igb2
                    

                    On the DMZ server (with the ip 2001:********************:21/128) I configured the route back as the host route:

                    [::]/0                         fe80::3eec:efff:fe70:6dba  UGH  1024 3     0 ens18
                    

                    And here comes my problem:
                    Direct ping to fe80::3eec:efff:fe70:6dba (the pfSense's link local address) works. But no NAT or routing to other targets.

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