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

    Multi Protocol (TCP/UDP)

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 2 Posters 1.5k 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.
    • N
      NOYB
      last edited by

      Can a single OpenVPN Server instance support both TCP and UDP?

      Have some socks proxy locations that require TCP, but would like to still use UDP for the others.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Unfortunately, no. But you can run a TCP version next to the UDP version and they can be identical except for the tunnel networks.

        The clients can attempt to use both, with the correct "remote" syntax, e.g.

        remote x.x.x.x 1194 udp
        remote x.x.x.x 1195 tcp
        

        And make sure they don't have "proto udp" or "proto tcp-client" or similar elsewhere in the config.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • N
          NOYB
          last edited by

          Yup that's what I thought.  Thanks for the confirmation.  Sure would be nice, and cleaner, if a single instance could be used for both.

          So if allow connected clients to communicate is enabled will the clients of each instance be able to also communicate with clients of the other instance?

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            Yes, so long as a route is pushed for the other tunnel network.

            e.g. the UDP VPN pushes a route to the client's for the TCP VPN tunnel network, and vice versa.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

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