Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Change protocol from TCP to UDP

    OpenVPN
    3
    7
    318
    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
      p44 translator last edited by

      Dear all,

      default protocol port of OpenVPN 7494/TCP.

      Is possible to change protocol to UDP? This because some providers detect VPN over TCP and blocks that.

      Inside "app" location I saw a check on "VPN TCP Port": what if I deselect?

      Schermata 2021-03-26 alle 09.01.28.png

      Thank's a lot!

      nebulon 1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff @p44 last edited by nebulon

        @p44 not sure if possible but I guess we can also add UDP alongside TCP, have to see.

        If you uncheck the TCP port, then it simply would not be opened up in the firewall and will not be setup to be forwarded to the app. I guess in this case it kinda renders the OpenVPN app instance useless then

        P 1 Reply Last reply Reply Quote 1
        • mehdi
          mehdi App Dev last edited by

          I am quite surprised that some providers detect and block VPN over TCP, as it should literally be impossible to distinguish between it and any other TLS-encrypted stream.

          However, it would be very valuable to add the option of using UDP instead, as it can be unstable to have TCP streams inside a TCP VPN when the network is not very reliable (the effect is called "TCP Meltdown", which is quite a badass name in my opinion ^^ https://openvpn.net/faq/what-is-tcp-meltdown/ )

          P 1 Reply Last reply Reply Quote 1
          • P
            p44 translator @nebulon last edited by

            @nebulon Thank's a lot! Hope that feature can be added to OpenVPN so app can be used also to keep working VPN in some cases where Isp analyse Internet traffic.

            1 Reply Last reply Reply Quote 0
            • P
              p44 translator @mehdi last edited by

              @mehdi Several countries and individual ISPs are known to use Deep Packet Inspection (DPI) to analyse Internet traffic. In that case, OpenVPN connection is instable or useless.

              Some VPN providers suggest to switch over UDP and in some cases add the "scramble" feature, so ports can be changed during data transfer.

              Eg. see this: StrongVPN and this

              mehdi 1 Reply Last reply Reply Quote 0
              • mehdi
                mehdi App Dev @p44 last edited by

                @p44 The doc in question actually says the opposite :

                You can try UDP for a possibly faster connection, but if it can not connect, switch it to TCP.

                Which makes sense : UDP OpenVPN traffic is very specific, so easy to detect. TCP OpenVPN traffic is very hard to detect.

                P 1 Reply Last reply Reply Quote 1
                • P
                  p44 translator @mehdi last edited by

                  @mehdi Thank's a lot! 🙂

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB