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

[SOLVED] PIA OpenVPN Port Forward [SOLVED]

Scheduled Pinned Locked Moved OpenVPN
solved
12 Posts 2 Posters 10.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.
  • A
    Apsis-IM
    last edited by Apsis-IM Feb 4, 2021, 11:58 AM Jan 31, 2021, 12:53 PM

    Is there anyone out there with a current working PIA Port Forward that can share some guidance? I'm trying to test the scripts from these posts:

    https://forum.netgate.com/topic/64905/automated-scripts-for-private-internet-access-port-forwarding

    https://forum.netgate.com/topic/150156/pia-automatic-port-forward-update-for-transmission-daemon?_=1612082490987

    It appears that I'm getting nothing from the API as I keep getting this response from the scripts' first conditional:

    [PIA] Port forwarding is already activated on this connection, has expired, or you are not connected to a PIA region that supports port forwarding.

    I spoke with PIA support and they inform me that, as of today, all non-US servers support port forward. Yet, I haven't managed to get a response (as far as I can tell) from any of them.

    Any assistance is appreciated.

    v/r,

    JG

    M 1 Reply Last reply Jan 31, 2021, 4:53 PM Reply Quote 0
    • M
      mcury @Apsis-IM
      last edited by Jan 31, 2021, 4:53 PM

      @apsis-im Hello Apsis-IM,

      PIA now is running their next gen servers, note that in their website, they are providing a link to version 1.0.0 of their script, however, there is already a version 2.0.0 as per links below.

      I didn't test because I'm not using, but there is a 3rd party repository that includes pfsense in their list.

      Take a look:

      PIA Port Forward script details:
      [https://www.privateinternetaccess.com/helpdesk/kb/articles/manual-connection-and-port-forwarding-scripts](link url)

      Latest version of PIA scripts:
      [https://github.com/pia-foss/manual-connections/tree/v2.0.0](link url)

      3rd party repositories (pfsense):
      [https://github.com/fm407/PIA-NextGen-PortForwarding](link url)

      dead on arrival, nowhere to be found.

      A 1 Reply Last reply Jan 31, 2021, 9:47 PM Reply Quote 1
      • A
        Apsis-IM @mcury
        last edited by Apsis-IM Feb 1, 2021, 1:32 AM Jan 31, 2021, 9:47 PM

        Howdy, @mcury

        yes, I'm aware of the latest scripts. The threads I referenced are long; the first includes updates across several years, and it leads to the second which references the pfsense git script you linked.

        I'm really just looking for a willing participant with a working solution so that I may pick their brain... Besides which server(s) that actually works for them, I wouldn't even know what to ask. All of the configurations that I've implemented were from particularly thorough instructions and I'm feeling kind of suck.

        v/r,

        JG

        edit:

        Actually, the second thread I was following appears to an earlier version of the git solution. I'll run it down. Thanks.

        A 1 Reply Last reply Feb 1, 2021, 1:46 AM Reply Quote 1
        • A
          Apsis-IM @Apsis-IM
          last edited by Feb 1, 2021, 1:46 AM

          @mcury said in PIA OpenVPN Port Forward:

          3rd party repositories (pfsense):
          [https://github.com/fm407/PIA-NextGen-PortForwarding](link url)

          Ran it down...

          /usr/local/etc/rc.d/piaportforwarding: WARNING: cannot read shebang line from /home/custom/piaportforward/pia-pfSense.sh

          But, since this solution is more recent and has a little more functionality I'm going to try and fix this shebang issue...

          M 1 Reply Last reply Feb 1, 2021, 2:01 AM Reply Quote 0
          • M
            mcury @Apsis-IM
            last edited by Feb 1, 2021, 2:01 AM

            @apsis-im According to that tutorial, your pfSense needs the following packages: xmlstarlet and jq

            Maybe you didn't install these packages?

            Note: I didn't test, and I don't recommend installing packages in Pfsense, they may break the firewall, be careful!

            According to the link you provided earlier, it should be:
            pkg install xmlstarlet
            pkg install jq

            dead on arrival, nowhere to be found.

            A 2 Replies Last reply Feb 1, 2021, 3:59 AM Reply Quote 1
            • A
              Apsis-IM @mcury
              last edited by Feb 1, 2021, 3:59 AM

              @mcury, have them both. they're for editing the pfsense config file and the transmission json.

              1 Reply Last reply Reply Quote 0
              • A
                Apsis-IM @mcury
                last edited by Feb 1, 2021, 4:08 AM

                @mcury

                so, I'm able to run it from the shell; And it works!

                but the service that calls the script cannot. I think it's a permissions thing or something.

                M 1 Reply Last reply Feb 1, 2021, 4:13 AM Reply Quote 0
                • M
                  mcury @Apsis-IM
                  last edited by mcury Feb 1, 2021, 4:14 AM Feb 1, 2021, 4:13 AM

                  @apsis-im hmm, getting closer..

                  instead of create the file and paste the code, you could download it.. maybe it will fix the permissions..

                  e3326a21-33c1-48db-ad8e-c9ae8558ed74-image.png

                  dead on arrival, nowhere to be found.

                  A 1 Reply Last reply Feb 1, 2021, 5:06 AM Reply Quote 1
                  • A
                    Apsis-IM @mcury
                    last edited by Feb 1, 2021, 5:06 AM

                    @mcury you're going to laugh at me....

                    service calls the script with pia-pfSense.sh

                    my script was named pia-pfsense.sh

                    I made that file at least 4 times. Hey, thanks for hanging with me and helping me sort this ;)

                    do you download from those URLs with fetch/curl/wget?

                    M 1 Reply Last reply Feb 1, 2021, 5:09 AM Reply Quote 0
                    • M
                      mcury @Apsis-IM
                      last edited by Feb 1, 2021, 5:09 AM

                      @apsis-im haha, that happens to all of us.. :)

                      I would use fetch

                      dead on arrival, nowhere to be found.

                      A 1 Reply Last reply Feb 1, 2021, 5:14 AM Reply Quote 1
                      • A
                        Apsis-IM @mcury
                        last edited by Feb 1, 2021, 5:14 AM

                        @mcury Ah, gotcha! Just making sure. The pfsense crowds seems to prefer fetch for sure. The first round of this I was saving the scripts on my file server and attempting to fetch them from one of the windows shares, lol. Results were... well, it didn't work out.

                        Thanks again, @mcury!

                        M 1 Reply Last reply Feb 1, 2021, 5:15 AM Reply Quote 1
                        • M
                          mcury @Apsis-IM
                          last edited by Feb 1, 2021, 5:15 AM

                          @apsis-im You are welcome, enjoy :)

                          dead on arrival, nowhere to be found.

                          1 Reply Last reply Reply Quote 1
                          12 out of 12
                          • First post
                            12/12
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                            This community forum collects and processes your personal information.
                            consent.not_received