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

    PIA on Wireguard

    Scheduled Pinned Locked Moved WireGuard
    8 Posts 4 Posters 7.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.
    • M
      menethoran
      last edited by

      Hey gents,
      Has anyone successfully set up wireguard using PIA as their provider? SUPER Noob on wireguard, so, any documentation would be fantastic (ive been trying to piece together other VPN providers and their integration with Wireguard, but havent been able to figure out how to make the jump from them to PIA in wireguard.

      Thanks in advance for any help.

      M O 2 Replies Last reply Reply Quote 0
      • M
        mcury @menethoran
        last edited by

        @menethoran I don't think PIA is compatible with pfsense wireguard.

        Based on the Christian McDonald's Youtube videos, you would need to import a wireguard config file to pfsense.. I know that Mullvad is compatible..

        In case you can configure and make it work, please share..

        dead on arrival, nowhere to be found.

        M 1 Reply Last reply Reply Quote 0
        • M
          menethoran @mcury
          last edited by

          @mcury yeah, i was looking at mullvad as someone has an OPNSense tutorial for it, and its relatively easy to follow (its actually what i was basing some of what i was trying to do on... )

          I think im gonna see if i can break... cough cough, err.. i mean, fix wireguard to work with PIA (there's no real reason why it wouldnt, PIA has already implemented wireguard usage on their end...

          Ill report in if i figure anything out. I also stumbled across another post on here, maybe the author @Slugger and i can team up and beat it with sticks til it cooperates.

          here is sluggers post:
          https://forum.netgate.com/topic/161550/interest-in-a-wg-manager-for-pia?_=1643398513647

          M 1 Reply Last reply Reply Quote 0
          • M
            mcury @menethoran
            last edited by mcury

            @menethoran said in PIA on Wireguard:

            I think im gonna see if i can break... cough cough, err.. i mean, fix wireguard to work with PIA (there's no real reason why it wouldnt, PIA has already implemented wireguard usage on their end...

            PIA requires an app, the problem is not with pfsense wireguard implementation..

            @menethoran said in PIA on Wireguard:

            Ill report in if i figure anything out. I also stumbled across another post on here, maybe the author @Slugger and i can team up and beat it with sticks til it cooperates.
            here is sluggers post:
            https://forum.netgate.com/topic/161550/interest-in-a-wg-manager-for-pia?_=1643398513647

            Thanks, I have PIA too, so it would be good for me too

            dead on arrival, nowhere to be found.

            M 1 Reply Last reply Reply Quote 0
            • M
              menethoran @mcury
              last edited by

              @mcury PIA doesnt require an app. You can very easilly set up PIA via OpenVPN (on most systems) and you can "bake it into Ubuntu" and use a drop down menu like you do with Wifi.

              IIRC, PIA even has documentation on how to set it up without using their app.

              (Pause while i look it up)

              https://gist.github.com/laineantti/176b1a12d49e4048e39d4523b589b666

              M 1 Reply Last reply Reply Quote 0
              • M
                mcury @menethoran
                last edited by

                @menethoran For wireguard, you can't connect to it without an app.
                Through openvpn you can..

                dead on arrival, nowhere to be found.

                B 1 Reply Last reply Reply Quote 0
                • B
                  bobpaul @mcury
                  last edited by

                  You can use the linux app to create the wireguard connection. Then you can use the wg and wg-quick commands to export the configured wgpia0 interface to a .conf. You can now use that configuration without the app.

                  something like this:

                  $ piactl login
                  $ piactl set protocol wireguard
                  $ piactl get regions #list the region names
                  $ piactl set region auto #if you don't care
                  $ piactl connect
                  $ sudo wg showconf wgpia0 | sudo tee ./wgpia0.conf
                  $ sudo wg-quick save ./wgpia0.conf
                  $ piactl disconnect
                  $ sudo wg-quick up ./wgpia0.conf
                  

                  I haven't tried it with pfsense yet. If you want to use the vpn's DNS, make sure you capture that. Neither wg showconf nor wg-quick save grabbed that, at least on my system.

                  1 Reply Last reply Reply Quote 0
                  • O
                    omid_1985 @menethoran
                    last edited by omid_1985

                    @menethoran Yes, I have used this script to generate a config from the Sydney, Australia server, and It's working fine. However, as PIA does not provide the official method to do this on pfSense, I'm not sure if it will work as reliably as other VPN providers who do offer it. Still, it stayed connected for two days and survived two pfSense reboots, so PIA didn't nuke my generated config just because I got disconnected for a few minutes, which is good.

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