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

Switch OpenVPN to IPv6

Scheduled Pinned Locked Moved OpenVPN
4 Posts 3 Posters 568 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.
  • P
    pixel24
    last edited by Mar 1, 2024, 10:36 AM

    Hi@all,

    I had a working OpenVPN configuration on my pfSense. Now my connection has been switched to IPv6-only and I have to adapt the OVPN server. My server has a valid IPv6 from the provider and can also be reached under this. I have configured an IPv6 dual stack in the LAN (behind the pfSense). The hosts (servers) have a public IPv6 (provider delegation + SLAAC) and a static ULA address.

    My public IPv6 prefix is:

    xxxx:yyyy:2180:8e10::/62
    

    The pfSense has a WAN interface:

    xxxx:yyyy:2180:8e00:6ce5:7bff:fe10:c05b
    

    My ULA in the LAN is:

    fdd0:a044:0f4c:0000:: /64
    

    The pfSense has a LAN interface:

    [2.7.2-RELEASE][root@gate01.lan.xxxx.club]/root: ifconfig
    vtnet0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
    	description: LAN
    	options=c03b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO,LINKSTATE>
    	ether 66:xx:19:xx:32
    	inet 192.168.83.254 netmask 0xffffff00 broadcast 192.168.83.255
    	inet6 fe80::64b2:19ff:fef9:5232%vtnet0 prefixlen 64 scopeid 0x1
    	inet6 fe80::1:1%vtnet0 prefixlen 64 scopeid 0x1
    	inet6 fdd0:a044:f4c::fe prefixlen 64
    	inet6 xxx:yyyy:2180:8e1c:64b2:19ff:fef9:5232 prefixlen 64
    	media: Ethernet autoselect (10Gbase-T <full-duplex>)
    	status: active
    	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    

    I have changed the protocol in the configuration:

    UDP on IPv4 only -> UDP on IPv6 only:

    c4b9a26e-bada-40d9-89c0-40697b1e441c-grafik.png

    65987774-b325-4f5f-a862-c41522b2efa4-grafik.png

    f3b8cd12-19e5-40a1-94e2-286db5ee8e38-grafik.png

    9e15b64a-0548-48b3-a21b-495a2f5a9cd0-grafik.png

    3da13732-4843-4292-abdc-f17dee2d80f4-grafik.png

    aa17475c-effa-464b-a7d6-fb128880bec3-grafik.png

    057bd4d6-f6d5-441b-9be4-01eac68de059-grafik.png

    8dbda2d5-4dcd-4ad1-a054-4818de3f40bd-grafik.png

    What do I have to configure under "IPv6 Tunnel Network"?

    I have adapted my firewall rule for IPv6:

    5e517f32-669e-4c09-a008-936bf04fd408-grafik.png

    924c7e57-731c-4e7c-89be-f546f16361fa-grafik.png

    Can anyone tell me what else I need to configure?

    with best
    pixel24

    T J 2 Replies Last reply Mar 1, 2024, 11:29 AM Reply Quote 0
    • T
      the other @pixel24
      last edited by Mar 1, 2024, 11:29 AM

      @pixel24
      hey there,
      you write that you want to change to IPv6 udp for openVPN but your screenshot shows you configured TCP port 1194...might be a problem, since UDP 1194 is standard port for openVPN (default), with TCP most ppl chose 443 (in order to reach your VPN in strict surroundings > hotel where UDP ist closed).

      Your firewall rule relates to v4 and v6 UDP, so it is a mismatch there...

      the other

      pure amateur home user, no business or professional background
      please excuse poor english skills and typpoz :)

      1 Reply Last reply Reply Quote 0
      • J
        JKnott @pixel24
        last edited by Mar 1, 2024, 3:12 PM

        @pixel24 said in Switch OpenVPN to IPv6:

        Can anyone tell me what else I need to configure?

        You can configure OpenVPN to work over IPv6, IPv4 or both. Mine's configured for both. You can also configure the tunnel for both or either.

        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
        • P
          pixel24
          last edited by Mar 3, 2024, 10:46 AM

          @the-other said in Switch OpenVPN to IPv6:

          you write that you want to change to IPv6 udp for openVPN but your screenshot shows you configured TCP port 1194...might be a problem, since UDP 1194 is standard port for openVPN (default), with TCP most ppl chose 443 (in order to reach your VPN in strict surroundings > hotel where UDP ist closed).

          I made a mistake, I changed it to IPv6 UDP (1194).

          That was the problem. Now it works :-)

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received