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

    OpenVPN IPv4/IPv6 Dual Setup

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 2 Posters 1.3k 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 Offline
      peer69
      last edited by

      Hi everyone,

      I have an OpenVPN Connection for Road Warriors which works as intended. Except for the protocol use behaviour I expected. I want to permit connections using IPv4 and IPv6. Clients should be able to connect regardless of the IP Version. Right now, if I set protocol to UDP Clients can only connect using IPv4. If I set Protocol to UDP6 clients can only connect using IPv6. I expected Option "UDP" to handle both IP Versions. Is there an option to make connections available for both, IPv4 and IPv6 on the same port / same OpenVPN instance or am I just doing something wrong?
      I added the following custom options to the Server for IPv6 Route but I think this shouldn't really have an influence in this case.

      tun-ipv6;
      push tun-ipv6;
      push "route-ipv6 ::/0"; 
      
      1 Reply Last reply Reply Quote 0
      • johnpozJ Online
        johnpoz LAYER 8 Global Moderator
        last edited by

        Just bring up a different server.. You can have more than 1.. So you could have a ipv4 udp, ipv6 udp, ipv4 tcp, ipv6 tcp. You can bring up more if need them, etc.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 25.07 | Lab VMs 2.8, 25.07

        1 Reply Last reply Reply Quote 0
        • P Offline
          peer69
          last edited by

          Sure. But they would listen on different ports, right? Not a giant issue but in this case I would have to roll out new client configuration. Thats what I was worried about.

          I think I found the reason, OpenVPN Version 2.3 is used in the current pfSense version which doesn't seem to work like I expected and I would have to wait for OpenVPN 2.4.
          In this case Ill just bring up another server. Thanks!

          1 Reply Last reply Reply Quote 0
          • johnpozJ Online
            johnpoz LAYER 8 Global Moderator
            last edited by

            no you can listen on port X on ipv4 and port X on ipv6..

            I would assume as soon as openvpn 2.4 comes out of beta they will move to it..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 25.07 | Lab VMs 2.8, 25.07

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