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

    Tutorial: Configure PIA (Private Internet Access) VPN on pfSense 2.4

    Scheduled Pinned Locked Moved OpenVPN
    16 Posts 11 Posters 18.2k 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.
    • G
      guardian Rebel Alliance
      last edited by

      I thought I would add that I was having some problems with my connection disconnecting and not reconnecting.  The VPN client was on a sub-net connected to a wireless router, so my devices would connect and get an IP, but no internet.  Someone (can't remember who) in the forum gave me some changes to the custom options that came from PIA support.

      I am using the following custom options:

      # Change persist-tun/persist-key (Reconnect Error)
      persist-key;
      remote-cert-tls server;
      reneg-sec 0;
      # Added auth-nocache - Reconnect Error
      auth-nocache;
      

      with a 4096 bit CA and  UDP on port 1197.

      I commented the changes to remind me what I did, just in case there were problems.  Since I made these changes, my connection seems to be working just fine.  If the connection does drop, it comes right back up without any problem.  In use I haven't noticed any problems.

      Sorry, but that's all I can remember - if you want more background, search the forum (circa Oct/Nov 2017 IIRC) for my post about the problem and you'll find more details there.

      UPDATE: So far this configuration seems to be working fine.  When I connect to my WiFi, there has always been internet access.  @Flamez, I can't confirm what configurations these changes work for, but I believe that they should be fine with any of the access methods as long as the rest of your configuration is OK.

      If you find my post useful, please give it a thumbs up!
      pfSense 2.7.2-RELEASE

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

        I have added them and so far it working much better.  Thank you.

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

          Hi!
          4096 bit CA is needed to use AES-256-CBC ? i can only connect with AES-128-CBC when using the 2048 certificate :)

          1 Reply Last reply Reply Quote 0
          • B
            bcruze
            last edited by

            @fastc:

            Hi!
            4096 bit CA is needed to use AES-256-CBC ? i can only connect with AES-128-CBC when using the 2048 certificate :)

            that is correct.  i've followed the above tutorial and it works perfectly

            with the right hardware 256 bit encryption you won't even know you are using a VPN>  and of course a fast reliable service

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

              @bcruze:

              with the right hardware 256 bit encryption you won't even know you are using a VPN>  and of course a fast reliable service

              thanks!
              yes true with 128bit aes currently i have 400mb speed on my 400mb connection :-)

              1 Reply Last reply Reply Quote 0
              • M
                msurg
                last edited by

                Does this work on 2.3.5 too?

                1 Reply Last reply Reply Quote 0
                • K
                  katinatez
                  last edited by

                  Hello, I followed these instructions to the letter. I have VPN up but I have horrible speeds. I have 400/40 internet service but with VPN I barely get between 20-40 Mb download. Is anyone running this setup with pfsense 2.4.3? My motherboard I'm running is Super Micro C2758 which has aes-ni capability.

                  1 Reply Last reply Reply Quote 0
                  • B
                    bcruze
                    last edited by

                    @katinatez:

                    Hello, I followed these instructions to the letter. I have VPN up but I have horrible speeds. I have 400/40 internet service but with VPN I barely get between 20-40 Mb download. Is anyone running this setup with pfsense 2.4.3? My motherboard I'm running is Super Micro C2758 which has aes-ni capability.

                    which one did you follow?  least secure or most ?

                    i am doing most secure on a 1.7Ghz atom processor and get full speeds from a 100Mb download 10Mb upload connection.

                    1 Reply Last reply Reply Quote 0
                    • K
                      katinatez
                      last edited by

                      After I posted, I realized I did not mention this. I am running the
                      Secure:  https://www.privateinternetaccess.com/openvpn/ca.rsa.2048.crt  <—— Use Port: 1198

                      I have downgraded down to pfsense 2.4.2, and still get the same speeds. I know the last time I was running decent speeds with vpn was pfsense 2.4.0.
                      So if I cant fix speeds I will downgrade and stay on 2.40 for a while.

                      Thanks for your reply

                      1 Reply Last reply Reply Quote 0
                      • S
                        sunnyg
                        last edited by

                        Hi,

                        Do these steps still work? I tried them, and get a client that connects successfully and obtains a PIA IP address, but when I perform check to see my public IP address, it still shows as my ISP ip address, is there additional steps needed to get all my outbound traffice to route through PIA?

                        Thanks
                        Sunny

                        1 Reply Last reply Reply Quote 0
                        • lohphatL
                          lohphat
                          last edited by lohphat

                          Since PIA doesn't support IPv6 yet, but my ISP does, is there a setting in the VPN client config or firewall NAT rule set which could blackhole any IPv6 traffic while the tunnel was up?

                          SG-3100 24.11-RELEASE (arm) | Avahi (2.2_6) | ntopng (5.6.0_1) | openvpn-client-export (1.9.5) | pfBlockerNG-devel (3.2.1_20) | System_Patches (2.2.20_5)

                          1 Reply Last reply Reply Quote 0
                          • lohphatL
                            lohphat
                            last edited by lohphat

                            I was able to get PIA running on my SG-3100, however it took a bit of prodding.

                            What's not clear in any of the on-line tutorials is that the AES modes and SHA1/SHA256 are dependent on the goal you're striving for.

                            I defined 2 OpenVPN client configs for testing; one using the ca.rsa.2048.crt and other using the ca.rsa.4096.crt CA configs.

                            What's NOT clear in the docs is that the SHA option is restricted to each CA type.

                            The ca.rsa.2048.crt supports AES-[128|196|256]-CBC with SHA1. The ca.rsa.4096.crt supports AES-[128|196|256]-CBC and SHA256 or SHA1.

                            If you try to use SHA256 with the ca.rsa.2048.crt the tunnel won't stay up. Since we all know SHA1 is insecure, using the ca.rsa.4096.crt is really the only option with PIA.

                            AES-NI is NOT supported by the ARM Cortex-A9 CPU. So you have to use the BSD cryptodev driver mode only. See: https://en.wikipedia.org/wiki/AES_instruction_set#Hardware_acceleration_in_other_architectures

                            These restrictions should be clarified in the docs.

                            SG-3100 24.11-RELEASE (arm) | Avahi (2.2_6) | ntopng (5.6.0_1) | openvpn-client-export (1.9.5) | pfBlockerNG-devel (3.2.1_20) | System_Patches (2.2.20_5)

                            1 Reply Last reply Reply Quote 0
                            • T
                              Tleary
                              last edited by

                              The config in this article fixed my slow pfsense sg-3100 pia openvpn. The official documentation isn't accurate and I also had to piece together the setup, which matched this thread. I only got 30MiB out of 400MiB. I switched to AES 256 Strong Auth and the speed immediately jumped to 300. Thanks.

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