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

    Slow OpenPVN

    Scheduled Pinned Locked Moved OpenVPN
    10 Posts 3 Posters 2.0k 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.
    • F
      fmroeira86
      last edited by

      Hi,

      I've openvpn configured and as VPN Client I'm getting arround 3 Mbit's Downstream and 5 to 6Mbits upstream (Tested on speedtest).

      My ISP connection is 100Mbps downstream / 20 Upstream.

      Any hint to get this better?

      Thanks!

      PS- Tested with UDP and TCP… same thing...

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

        and who is your vpn provider - what do they support?

        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 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • F
          fmroeira86
          last edited by

          @johnpoz:

          and who is your vpn provider - what do they support?

          Myself :)

          I'm connecting to my pfsenser openvpn server where I do have 100mbit/20mbit

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

            So your an outside client using pfsense openvpn as the server, and what connection does this remote client have - does it also have a 100/20 connection?  At most you could hope for if that was the case would be max of 20/20.. Since your pfsense could only upload to your client at its max upload speed of 20.

            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 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • F
              fmroeira86
              last edited by

              @johnpoz:

              So your an outside client using pfsense openvpn as the server, and what connection does this remote client have - does it also have a 100/20 connection?  At most you could hope for if that was the case would be max of 20/20.. Since your pfsense could only upload to your client at its max upload speed of 20.

              The client has 50/50.

              I'm getting speeds of 3Mbit download and 5 to 6mbit upload - client side.

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

                well the best you could hope for is 20/20 but yeah that is a bit shoddy if your 100/20 at the server side.

                Do you have net.inet.ip.fastforwarding = 1 set in your system tunables?

                edit: So just did a quick test on mine.  Which runs on a n40l as a vm.  I have a 50/10 connection at home.  So just connected with my phone through it and got 10/10 which is what you would expect since my home connection upload is only 10.  So while I could upload to it a bit faster (have 30+ here on my phone via wireless), the download side on the remote client would be limited to what my server can upload at.  And when I go to upload, the limit to the speed test server would also be limited by my servers upload speed.

                So you when doing a speed test on something past your vpn server, your going to be hit by the upload limit both ways.

                This was using udp - let my switch it to tcp and test that.

                speedtestvpn.PNG
                speedtestvpn.PNG_thumb

                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 24.11 | Lab VMs 2.8, 24.11

                1 Reply Last reply Reply Quote 0
                • F
                  fmroeira86
                  last edited by

                  Well… A reboot solved (pfsense reboot).

                  Now I get good speeds :))

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

                    good speed as in 20/20?  Or something a bit less?  Using tcp or udp?

                    Do you have
                    net.inet.ip.fastforwarding = 1
                    set or no?

                    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 24.11 | Lab VMs 2.8, 24.11

                    1 Reply Last reply Reply Quote 0
                    • F
                      fmroeira86
                      last edited by

                      Arround 18mbit up and down.

                      UDP

                      No other tweaks

                      1 Reply Last reply Reply Quote 0
                      • ?
                        Guest
                        last edited by

                        I have one openVPN (transnational, Europe) between 16/8Mbit DSL and 100/100 MBit fibre where the maximum I get is 200-300 kBit (no joke, most time around 56 kbit, reminds me of some times very long ago ;-) ). Very frustrating latencies, apparently the NSA has only limited capacity on that route :-D

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