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

Weird slow OpenVpn connection

OpenVPN
3
17
480
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.
  • D
    d.k
    last edited by d.k Jan 5, 2025, 9:35 PM Jan 5, 2025, 9:34 PM

    Before I switched to Pfsense I had a ASUS router where openvpn ran way faster! Now I get weird slow speeds nearly to unusable on Pfsense!

    Here are the speedtests and the settings in screenshots!:
    https://ibb.co/g98x8tz
    https://ibb.co/ZVmYLRW
    https://ibb.co/TkkT787
    https://ibb.co/44pm3fx
    https://ibb.co/rbRjctD
    https://ibb.co/zVHtqLr
    https://ibb.co/2M0ptd2
    https://ibb.co/nzL9Zf0
    https://ibb.co/gSPzbC4
    https://ibb.co/BcYnxW2
    https://ibb.co/0qmckDP
    https://ibb.co/DzgSJKR
    https://ibb.co/VBHj1zZ
    https://ibb.co/48D0KbZ
    https://ibb.co/K0YHdtr

    I have read already a few articles where was suggested to enable hardware acceleration but it only helped a bit!

    I would appreciate some help with that!

    G 1 Reply Last reply Jan 6, 2025, 8:53 AM Reply Quote 0
    • G
      Gertjan @d.k
      last edited by Jan 6, 2025, 8:53 AM

      @d-k

      How is your pfSense WAN set up ? Upstream ISP router ?

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      D 1 Reply Last reply Jan 6, 2025, 10:56 AM Reply Quote 0
      • D
        d.k @Gertjan
        last edited by Jan 6, 2025, 10:56 AM

        @Gertjan I am not sure if that is what you mean but:
        The Pfsense is connected directly to the isp router (modem)!

        G 1 Reply Last reply Jan 6, 2025, 11:22 AM Reply Quote 0
        • G
          Gertjan @d.k
          last edited by Gertjan Jan 6, 2025, 11:23 AM Jan 6, 2025, 11:22 AM

          @d-k said in Weird slow OpenVpn connection:

          The Pfsense is connected directly to the isp router (modem)!

          Humm , that was what I wanted to know.
          Is it a router ?
          Or a modem....
          If its a router, your WAN IP of pfSense is a RFC1918 (= 10/8, 172.16/12, 192.168/16) and in that case its simple to place a switch between the pfSense WAN and the ISP router's LAN, so you can add wired PC or an Access Point.
          When that done, install the OpenVPN connect app, set up the paramters (using as a connection IP, the WAN IP of pfSense) and now you've a wired connection directly. Now you have a OpenVPN access speed test, and you control the entire network.
          Btw ; if you are still using a 'remote' test site like the classic Spedtest.net app, you still need your ISP WAN connection, if if that s*cks at that moment, then yeah, OpenVPN will look slow (also)

          I'm pretty sure you'll sudden you'll see a full speed connection now, as you've eliminated the entire "ISP network and whatever you use as a so called 5G".

          Btw : I've a 1 Gbit connection upstream down stream. Tested with my recent iPhone this morning my VPN connection.
          125 Mbits up (from pfSense to my phone) and 25 mbits down (from my phone to pfSense).
          Maybe normal, because everybody is working again this morning after the end-of-year holidays.
          I've seen 3 times better also.

          On what device is pfSense running ?

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          D 2 Replies Last reply Jan 6, 2025, 1:38 PM Reply Quote 0
          • G Gertjan referenced this topic on Jan 6, 2025, 11:41 AM
          • D
            d.k @Gertjan
            last edited by d.k Jan 6, 2025, 1:43 PM Jan 6, 2025, 1:38 PM

            @Gertjan I use a slightly modified Dell Precision Tower 3620 with a 4 port nic intel! The nic is wan and lan!

            I have 470 down and 20up!

            G 1 Reply Last reply Jan 6, 2025, 2:03 PM Reply Quote 0
            • D
              d.k @Gertjan
              last edited by Jan 6, 2025, 1:42 PM

              @Gertjan I don’t understand why the connection is on that way better hardware so much slower then on the small slow ASUS router! Yes I indeed used mobile data network to connect but I used to do that and never had such a slow connection!

              1 Reply Last reply Reply Quote 0
              • G
                Gertjan @d.k
                last edited by Jan 6, 2025, 2:03 PM

                @d-k said in Weird slow OpenVpn connection:

                Dell Precision Tower 3620 with a 4 port nic intel!

                Without knowing more about your Dell, I'm pretty sure it has a 1 Gbits/sec BICs for a WAN and a LAN.
                This device can easily completely fill up the up and down stream of your ISP.
                And it will "eat through a VPN connection like cake".

                @d-k said in Weird slow OpenVpn connection:

                but I used to do that and never had such a slow connection!

                Like me this morning.
                Normally, a couple of hundreds of Mbits/sec and this morning, it was crawling.

                Again, if you have a NAS or something like that, and you can connect a PC on the WAN side of pfSense, do a NAS transfer direcly (open up the ports on WAN first) and do also a OpenVPN test with a OpenVPN client on the PC and the OpenVPN server on pfSense.

                You didn't add weird stuff like jumbo packets on WAN (just an example) or anything else special that is not 'default' ?

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                D 1 Reply Last reply Jan 7, 2025, 4:58 AM Reply Quote 0
                • D
                  d.k @Gertjan
                  last edited by Jan 7, 2025, 4:58 AM

                  @Gertjan No pretty much everything should still be standard except firewall rules And Nat port forwarding!

                  1 Reply Last reply Reply Quote 0
                  • D
                    Decepticon
                    last edited by Jan 7, 2025, 5:04 AM

                    I know it sounds strange, but try changing from UDP to TCP.

                    I have found that the very same OpenVPN tunnel on TCP works faster than UDP. I know it's supposed to be the other way around, but my real world experience has consistently been the opposite.

                    Alternatively, you might have an MTU issue. Either way, TCP may paradoxically speed things up.

                    D 2 Replies Last reply Jan 7, 2025, 5:13 AM Reply Quote 0
                    • D
                      d.k @Decepticon
                      last edited by d.k Jan 7, 2025, 5:13 AM Jan 7, 2025, 5:13 AM

                      @Decepticon I am already running on TCP!

                      This is the nic I use for wan and lan!

                      https://a.co/d/gvQPQjX

                      D 1 Reply Last reply Jan 7, 2025, 5:21 AM Reply Quote 0
                      • D
                        d.k @Decepticon
                        last edited by Jan 7, 2025, 5:20 AM

                        @Decepticon I also tried UDP Protocol and exact the same speed as TCP!

                        1 Reply Last reply Reply Quote 0
                        • D
                          Decepticon @d.k
                          last edited by Jan 7, 2025, 5:21 AM

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • D
                            Decepticon
                            last edited by Decepticon Jan 7, 2025, 5:29 AM Jan 7, 2025, 5:27 AM

                            In that case, I don't know. My personal view is that pfSense makes OpenVPN much more complicated than it needs to be. Ideally, I'd just paste my OpenVPN configuration file into a field and it would work. Instead, pfSense breaks all the options into separate entries on a webpage. It may be that in one of those many options, you've changed something. Or it may be that your new hardware is just less capable than your old one when it comes to OpenVPN.

                            My best recommendation is to use Wireguard, which is way faster than OpenVPN. The implementation in pfSense is much easier to map to a configuration file.

                            D 2 Replies Last reply Jan 7, 2025, 5:28 AM Reply Quote 0
                            • D
                              d.k @Decepticon
                              last edited by Jan 7, 2025, 5:28 AM

                              @Decepticon Ok I’ll check it out thanks!

                              I also did a run from my computer and from 550up I went down to 50up that’s pretty interesting so it’s not the mobile network 5g connection that is the problem!

                              1 Reply Last reply Reply Quote 0
                              • D
                                d.k @Decepticon
                                last edited by Jan 7, 2025, 5:42 AM

                                @Decepticon I found the issue I watched a second tutorial and saw that he didn’t use TCP and IPV6 on all interfaces (multidimensional) instead he used only TCP on IPv4 only! And that speeds up to the speed it should be!

                                D 1 Reply Last reply Jan 7, 2025, 6:17 AM Reply Quote 0
                                • D
                                  Decepticon @d.k
                                  last edited by Jan 7, 2025, 6:17 AM

                                  @d-k

                                  I'm glad that my suggestions pointed you in the right direction!

                                  D 1 Reply Last reply Jan 7, 2025, 7:02 AM Reply Quote 0
                                  • D
                                    d.k @Decepticon
                                    last edited by Jan 7, 2025, 7:02 AM

                                    @Decepticon yup thanks!

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