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

    [SOLVED] Slow PIA VPN connection on pfsense 2.4b

    Scheduled Pinned Locked Moved OpenVPN
    86 Posts 4 Posters 27.6k 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
      pfBasic Banned
      last edited by

      Do you use a RAM disk?

      1 Reply Last reply Reply Quote 0
      • R
        Runenaldo
        last edited by

        @pfBasic:

        Do you use a RAM disk?

        Yes, I followed your guide :)

        1 Reply Last reply Reply Quote 0
        • R
          Runenaldo
          last edited by

          So during the installation of pfsense 2.4 I ran into the issue I also had the first time I installed it and that was that the installer hanged after I selected to reboot. See picture.

          I waited aprox 10-15 mins for it to reboot and then forced it by unplugging the router. Is this normal, should I have waited longer?

          In the next picture, this always show up during reboot. Is this normal?

          bootstop.jpg
          bootstop.jpg_thumb
          ![Dump devices does not exist.jpg_thumb](/public/imported_attachments/1/Dump devices does not exist.jpg_thumb)
          ![Dump devices does not exist.jpg](/public/imported_attachments/1/Dump devices does not exist.jpg)

          1 Reply Last reply Reply Quote 0
          • P
            pfBasic Banned
            last edited by

            The "no suitable dump device found" error just means that you don't have swap, which is fine as long as that's the way you installed.

            I'd try it again and leave it for 20-30min.

            There are a few issues with reboot floating around, and there's an issue where reboot can hang for ~20min because it can't install packages but it will eventually continue the boot and then you can get packages installed once boot is complete. The 20 minute hang issue hopefully gets fixed….

            So reinstall, let it start rebooting and just walk away, for a good bit of time.

            For your hardware I don't think it's an issue but make sure you have latest BIOS/UEFI/firmware installed.

            1 Reply Last reply Reply Quote 0
            • R
              Runenaldo
              last edited by

              @pfBasic:

              The "no suitable dump device found" error just means that you don't have swap, which is fine as long as that's the way you installed.

              I did install without swap, so I can ignore that message in the future :)

              @pfBasic:

              I'd try it again and leave it for 20-30min.

              There are a few issues with reboot floating around, and there's an issue where reboot can hang for ~20min because it can't install packages but it will eventually continue the boot and then you can get packages installed once boot is complete. The 20 minute hang issue hopefully gets fixed….

              So reinstall, let it start rebooting and just walk away, for a good bit of time.

              It just started its 20mins reboot countdown, so I'm crossing my fingers :)

              @pfBasic:

              For your hardware I don't think it's an issue but make sure you have latest BIOS/UEFI/firmware installed.

              I am all ready, so shouldn't be a problem.

              1 Reply Last reply Reply Quote 0
              • R
                Runenaldo
                last edited by

                I'm now on 120 mins, no sign of it wanting to reboot..

                1 Reply Last reply Reply Quote 0
                • R
                  Runenaldo
                  last edited by

                  So am I doing something wrong with the install?

                  Downloading the latest memstick image from here https://snapshots.pfsense.org/amd64/pfSense_master/installer/?C=M;O=D unpacking it, then using Win32DiskImager to make the bootable usb stick. Booting it up and following your guide https://forum.pfsense.org/index.php?action=thankyoupostlist;topic=126597.0;msg=699155 and choosing 2 disk mirror.

                  1 Reply Last reply Reply Quote 0
                  • P
                    pfBasic Banned
                    last edited by

                    I don't think so, there have been multiple users reporting reboot issues. I've never encountered it though so I don't really know how to help except pointing you to these.

                    https://forum.pfsense.org/index.php?topic=128577.msg712180#msg712180

                    https://forum.pfsense.org/index.php?topic=126520.msg698661#msg698661

                    1 Reply Last reply Reply Quote 0
                    • R
                      Runenaldo
                      last edited by

                      @pfBasic:

                      I don't think so, there have been multiple users reporting reboot issues. I've never encountered it though so I don't really know how to help except pointing you to these.

                      https://forum.pfsense.org/index.php?topic=128577.msg712180#msg712180

                      https://forum.pfsense.org/index.php?topic=126520.msg698661#msg698661

                      Thanks, its good to know I'm not the only one.

                      Will try to install pfsense 2.4 to my SSD instead, hopefully it will work and then when a fix has been implemented I will go back to the sticks.

                      1 Reply Last reply Reply Quote 0
                      • P
                        pfBasic Banned
                        last edited by

                        Honestly if you have an SSD laying around you are better off using that.

                        In my ZFS Guide I do mention installs to USB sticks, but not because they are better. I mention it because it is a cost saving feature that might enable someone to afford it that otherwise couldn't. There are other reasons to install to USB, but generally speaking if you have an SSD definitely use the SSD.

                        USB drive installs need you to adjust things to make them last that you wouldn't ever have to worry about with an SSD.

                        The only advantage they have over SSDs is price, and how common they are (just about anyone can pull an SSD out of a drawer and install pfSense to their machine.

                        1 Reply Last reply Reply Quote 0
                        • R
                          Runenaldo
                          last edited by

                          @pfBasic:

                          Honestly if you have an SSD laying around you are better off using that.

                          In my ZFS Guide I do mention installs to USB sticks, but not because they are better. I mention it because it is a cost saving feature that might enable someone to afford it that otherwise couldn't. There are other reasons to install to USB, but generally speaking if you have an SSD definitely use the SSD.

                          USB drive installs need you to adjust things to make them last that you wouldn't ever have to worry about with an SSD.

                          The only advantage they have over SSDs is price, and how common they are (just about anyone can pull an SSD out of a drawer and install pfSense to their machine.

                          Ja I totally understand, was just hoping to save the SSD for other projects. Its a bit overkill to have a 256gb disk in a router system IMO  ;D
                          and as I said in my former post, I will properbly go back to the USB's if I hear news that the issue is fixed.

                          1 Reply Last reply Reply Quote 0
                          • R
                            Runenaldo
                            last edited by

                            Oh btw how would you configure the install with an SSD? how big of a swap size, if any?

                            1 Reply Last reply Reply Quote 0
                            • P
                              pfBasic Banned
                              last edited by

                              I don't think the boot issue is USB specific, others have reported the issue on SSD/HDD.

                              Swap is normally double your RAM, I believe that's the default setting.

                              Defaults will work great.

                              1 Reply Last reply Reply Quote 0
                              • R
                                Runenaldo
                                last edited by

                                @pfBasic:

                                I don't think the boot issue is USB specific, others have reported the issue on SSD/HDD.

                                Swap is normally double your RAM, I believe that's the default setting.

                                Defaults will work great.

                                hmm, for me the change to SSD worked, it rebooted straight away, with no issues.

                                In that case, I will need to add some more swap.

                                Will test VPN tommorrow.

                                1 Reply Last reply Reply Quote 0
                                • R
                                  Runenaldo
                                  last edited by

                                  So got OpenVPN configured this morning and with the standard settings, its slow as usual 5/10-30mbit.

                                  With my added settings I'm hitting a max of 84mbps.

                                  I switched to pfsense monitor for reference as it seems Speedtest.net is all over the place..
                                  I tried to set it up as you described it in another thread. https://forum.pfsense.org/index.php?topic=128230.15

                                  @pfBasic:

                                  Then do your best to max out your bandwidth, Steam downloads usually have great bandwidth and they have free titles (DOTA 2 is pretty big and free so it will run for long enough to see it on RRDs).
                                  You have a pretty beefy connection so you might also stream a bunch of UHD youtube videos, I think you can search for even 5k and 8k content that will really suck down some bandwidth!

                                  Anyawys, after you max out the connection for 5-10 minutes,

                                  go to Status / Monitoring and set it up like so:

                                  System > Processor on one side
                                  Traffic > WAN on the other side
                                  1 Hour, 1 Minute, Line, On, Never
                                  De-select everything on the graph except:
                                  user util
                                  nice util
                                  system util
                                  interrupt
                                  inpass total
                                  outpass total

                                  Screenshot the graph and data summary with your mouse hovering over a point on the graph where your bandwidth is maxed out to display the stats you selected and post it up here.

                                  That will give no bullshit real world VPN throughput:CPU usage data (assuming you are piping all of your traffic out through a VPN client as you stated).

                                  I know that's all a very specific request, but it would be greatly appreciated!

                                  I'm thinking its pretty good, though it sucks I know it could be a bit better.
                                  Should I maybe give up and try running two OpenVPN clients? or is there still more I can tinker with?

                                  ![Steam 2nd install SSD VPN.jpg](/public/imported_attachments/1/Steam 2nd install SSD VPN.jpg)
                                  ![Steam 2nd install SSD VPN.jpg_thumb](/public/imported_attachments/1/Steam 2nd install SSD VPN.jpg_thumb)

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    pfBasic Banned
                                    last edited by

                                    I don't know if I've asked this already but what NIC are you using?

                                    The CPU is obviously working just fine at ~17% for 86Mbps VPN throughout.

                                    With this being a clean install it should be maxing your connection.

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      Runenaldo
                                      last edited by

                                      @pfBasic:

                                      I don't know if I've asked this already but what NIC are you using?

                                      The CPU is obviously working just fine at ~17% for 86Mbps VPN throughout.

                                      With this being a clean install it should be maxing your connection.

                                      I'ts running an IBM intel i340-T4 quad

                                      Maybe its totally obvious and I just dont see it, but where do you see the 17% CPU usage?
                                      EDIT: Found it, adding the % together  ::)

                                      btw I got this magnificent reply from PIA support, which really answered all my technical questions in which I specifically told them that I could get 100/100 on my pc client and that my router was suppose to handle well beyond 100mbit…

                                      Thanks for getting back to us.

                                      You can expect to see at least a 10-15%* speed drop from the results you get when testing "disconnected" to our servers on our network page here: https://www.privateinternetaccess.com/pages/network/

                                      • Typically it will be drop between 15-50% for computers and 25-75% (or more, depending on the router's capability) drop for routers.
                                      • The higher encryption that you use, the more overhead that would be added slowing the connection. This can certainly be worsened by connecting to gateways that have additional routing latency or have a lot of traffic on them at the time.
                                      • Our servers also have a 1 gigabit connection (for each server) shared among the customers connecting to the server. That in mind, we wouldn't normally expect you to reach higher than 50-100mbps.

                                      We apologize for the inconvenience.

                                      Let us know if you have anymore questions.

                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        pfBasic Banned
                                        last edited by

                                        Yeah that's just a canned response.

                                        I really have no idea why you aren't getting line speeds. You should be from what I can tell.

                                        Maybe someone else can chime in here?

                                        All I can siggest is playing around with the settings?

                                        Maybe try LZ4v2, try no compression, try disabling NCP? Really idk though. I've run almost an identical setup on a J3355 and got line speeds at 150/10 no problems, no adding custom options.

                                        1 Reply Last reply Reply Quote 0
                                        • R
                                          Runenaldo
                                          last edited by

                                          @pfBasic:

                                          I really have no idea why you aren't getting line speeds. You should be from what I can tell.

                                          No worries, I'm just glad you want to try and help.
                                          and we did fix one issue with the installer  :D

                                          @pfBasic:

                                          All I can siggest is playing around with the settings?

                                          Maybe try LZ4v2, try no compression, try disabling NCP? Really idk though. I've run almost an identical setup on a J3355 and got line speeds at 150/10 no problems, no adding custom options.

                                          I tried different compressions and disabling NCP, without much difference although for the worse.

                                          ![Steam pfsense VPN SSD no compression.jpg_thumb](/public/imported_attachments/1/Steam pfsense VPN SSD no compression.jpg_thumb)
                                          ![Steam pfsense VPN SSD no compression.jpg](/public/imported_attachments/1/Steam pfsense VPN SSD no compression.jpg)
                                          ![Steam pfsense VPN SSD adaptive LZO.jpg](/public/imported_attachments/1/Steam pfsense VPN SSD adaptive LZO.jpg)
                                          ![Steam pfsense VPN SSD adaptive LZO.jpg_thumb](/public/imported_attachments/1/Steam pfsense VPN SSD adaptive LZO.jpg_thumb)
                                          ![Steam pfsense VPN SSD LZO4v2.jpg](/public/imported_attachments/1/Steam pfsense VPN SSD LZO4v2.jpg)
                                          ![Steam pfsense VPN SSD LZO4v2.jpg_thumb](/public/imported_attachments/1/Steam pfsense VPN SSD LZO4v2.jpg_thumb)
                                          ![Steam pcvpn SSD.jpg](/public/imported_attachments/1/Steam pcvpn SSD.jpg)
                                          ![Steam pcvpn SSD.jpg_thumb](/public/imported_attachments/1/Steam pcvpn SSD.jpg_thumb)
                                          ![Steam straight SSD.jpg](/public/imported_attachments/1/Steam straight SSD.jpg)
                                          ![Steam straight SSD.jpg_thumb](/public/imported_attachments/1/Steam straight SSD.jpg_thumb)

                                          1 Reply Last reply Reply Quote 0
                                          • R
                                            Runenaldo
                                            last edited by

                                            Could you explain me how to setup two VPN's as one? or do you have a link to a guide?

                                            Just want to try it out and see if that gets me closer to the 100 mark.  :)

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