# OpenVPN with PIA?

**URL:** https://dietpi.com/forum/t/openvpn-with-pia/997
**Category:** General Discussion
**Created:** [12 February 2017 23:38 UTC](https://dietpi.com/forum/t/openvpn-with-pia/997 "2017-02-12T23:38:27Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![bizzaro](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/4da419/32.png) [@bizzaro](https://dietpi.com/forum/u/bizzaro)
#### Post date: [12 February 2017 23:38 UTC](https://dietpi.com/forum/t/openvpn-with-pia/997/1 "2017-02-12T23:38:27Z")

</div>

Are there any guides to setting up openvpn with a paid vpn service such as private internet access? I’ve been trying all day to get it working, but whenever it’s running I can’t connect to the internet.

---

<div class="post-metadata">

### Author: ![Kymru](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/k/ce73a5/32.png) [@Kymru](https://dietpi.com/forum/u/Kymru)
#### Post date: [13 February 2017 02:16 UTC](https://dietpi.com/forum/t/openvpn-with-pia/997/2 "2017-02-13T02:16:06Z")

</div>

> [@bizzaro](#):
>
> Are there any guides to setting up openvpn with a paid vpn service such as private internet access? I’ve been trying all day to get it working, but whenever it’s running I can’t connect to the internet.

yes there is, i followed this [guide](https://gist.github.com/superjamie/ac55b6d2c080582a3e64) and got it working, one thing i will say is

at [this](https://gist.github.com/superjamie/ac55b6d2c080582a3e64#vpn-kill-switch) point, leave out

_sudo iptables -A OUTPUT -o eth0 -j DROP_

i couldnt connect at all until i took this out

if you have any issues give me a shout, dont forget to change

_sudo iptables -A OUTPUT -d 192.168.1.0/24 -o eth0 -m comment --comment “lan” -j ACCEPT_

to whatever your network is using

i have all the ovpn files already edited from

_ca ca.rsa.2048.crt  
auth-user-pass  
crl-verify crl.rsa.2048.pem_  
   
_To this:_  
   
_ca /etc/openvpn/ca.rsa.2048.crt  
auth-user-pass /etc/openvpn/login  
crl-verify /etc/openvpn/crl.rsa.2048.pem_

TCP and UDP

---

<div class="post-metadata">

### Author: ![bizzaro](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/4da419/32.png) [@bizzaro](https://dietpi.com/forum/u/bizzaro)
#### Post date: [13 February 2017 21:37 UTC](https://dietpi.com/forum/t/openvpn-with-pia/997/3 "2017-02-13T21:37:01Z")

</div>

Thanks. It seems to be working, but when I get [ipleak.net](http://ipleak.net) from within the gui on my pi, it shows my ipv4 from the Netherlands (as expected) and an ipv6 from the US. It also says no forwards IP detected. If you are using a proxy, it’s a transparent proxy.

---

<div class="post-metadata">

### Author: ![bizzaro](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/4da419/32.png) [@bizzaro](https://dietpi.com/forum/u/bizzaro)
#### Post date: [13 February 2017 21:46 UTC](https://dietpi.com/forum/t/openvpn-with-pia/997/4 "2017-02-13T21:46:56Z")

</div>

Never mind. I disabled ipv6 in system sysctl.conf, so it only shows the Netherlands ipv4 now. Thanks again!

---

<div class="post-metadata">

### Author: ![Kymru](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/k/ce73a5/32.png) [@Kymru](https://dietpi.com/forum/u/Kymru)
#### Post date: [14 February 2017 01:41 UTC](https://dietpi.com/forum/t/openvpn-with-pia/997/5 "2017-02-14T01:41:19Z")

</div>

> [@bizzaro](#):
>
> Never mind. I disabled ipv6 in system sysctl.conf, so it only shows the Netherlands ipv4 now. Thanks again!

if you are using PIA, change the dns servers in the interfaces file to PIA DNS servers, install dnsmasq, no dns leaks

what are you using this setup for?

---

<div class="post-metadata">

### Author: ![bizzaro](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/4da419/32.png) [@bizzaro](https://dietpi.com/forum/u/bizzaro)
#### Post date: [14 February 2017 10:05 UTC](https://dietpi.com/forum/t/openvpn-with-pia/997/6 "2017-02-14T10:05:14Z")

</div>

> [@Kymru](#):
>
> > [@bizzaro](#):
> >
> > Never mind. I disabled ipv6 in system sysctl.conf, so it only shows the Netherlands ipv4 now. Thanks again!
> 
> if you are using PIA, change the dns servers in the interfaces file to PIA DNS servers, install dnsmasq, no dns leaks
> 
> what are you using this setup for?

Using the pi as a seed box.

---

<div class="post-metadata">

### Author: ![Kymru](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/k/ce73a5/32.png) [@Kymru](https://dietpi.com/forum/u/Kymru)
#### Post date: [14 February 2017 13:28 UTC](https://dietpi.com/forum/t/openvpn-with-pia/997/7 "2017-02-14T13:28:32Z")

</div>

> [@bizzaro](#):
>
> Using the pi as a seed box.

nice, if you are using PIA it might disconnect a lot with torrent files, mine did, the only way around it that i could find was to switch from a UDP to a TCP connection and use a different port

---

<div class="post-metadata">

### Author: ![kennethhall250](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/k/ce73a5/32.png) [@kennethhall250](https://dietpi.com/forum/u/kennethhall250)
#### Post date: [5 September 2019 06:55 UTC](https://dietpi.com/forum/t/openvpn-with-pia/997/8 "2019-09-05T06:55:59Z")

</div>

> [@](#):
>
> Are there any guides to setting up openvpn with a paid vpn service such as private internet access? I’ve been trying all day to get it working, but whenever it’s running I can’t connect to the internet.

Just follow the simple steps:

1. Visit the official download page for the Windows OpenVPN Installer, located here: [Community Downloads - Open Source VPN | OpenVPN](https://openvpn.net/index.php/open-source/downloads.html)
2. Choose the version that matches the operating system you’re using (whether 32-bit, or 64-bit)
3. Choose to save the file
4. Go to the downloads link in your browser, and click the option to open the folder containing the download
5. Right-click on the installer, and choose Run as Administrator
6. You may receive a popup from the User Account Control on Windows; if so, choose Yes to proceed with the installation
7. When the Install completes, click Next
8. Uncheck Show Readme and click Finish
9. Download the OpenVPN Configuration Files here: [https://www.privateinternetaccess.com/openvpn/openvpn.zip](https://www.privateinternetaccess.com/openvpn/openvpn.zip)
10. Open the folder that the configuration file was downloaded to
11. Right-Click the openvpn.zip and click Extract All
12. Click Extract
13. Highlight and copy all of the Extracted files from the zip and paste them into the OpenVPN config folder C:\Program Files\OpenVPN\config or C:\Program Files (x86)\OpenVPN\config
14. When you Paste, it will ask you to confirm Administrator permission to copy the files
15. Right-click the OpenVPN GUI icon on your desktop, and choose Run as administrator
16. Right-click the OpenVPN icon in the System Tray to choose a region to connect to, or to disconnect from the VPN
17. Enter your Username and password when prompted, and Click OK

For more details, have a look at this PIA VPN review [here](https://www.vpnranks.com/vpn-reviews/private-internet-access/).

---

<div class="post-metadata">

### Author: ![brucelee](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/3da27b/32.png) [@brucelee](https://dietpi.com/forum/u/brucelee)
#### Post date: [5 September 2019 09:38 UTC](https://dietpi.com/forum/t/openvpn-with-pia/997/9 "2019-09-05T09:38:15Z")

</div>

You can find their support documentation in the official website of openvpn. The support documentation has detailed installation and setup guides for novices. Follow their instructions.

The installation guide is as follows: [openvpn.net/quick-start-guide/](http://openvpn.net/quick-start-guide/)

If you still have some questions, you can try sending them an email and asking for his support.

---

<div class="post-metadata">

### Author: ![luzifia](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/l/5daacb/32.png) [@luzifia](https://dietpi.com/forum/u/luzifia)
#### Post date: [8 September 2019 08:57 UTC](https://dietpi.com/forum/t/openvpn-with-pia/997/10 "2019-09-08T08:57:13Z")

</div>

i have had similar problem

have a look at  
[https://dietpi.com/forum/t/solved-nordvpn-transmission-plex-seeding-not-work-no-port-forwarding/3038/1](https://dietpi.com/forum/t/solved-nordvpn-transmission-plex-seeding-not-work-no-port-forwarding/3038/1)

i’ve done this following guides from here:  
[https://www.htpcguides.com/configure-transmission-for-vpn-split-tunneling-ubuntu-16-04-debian-8/](https://www.htpcguides.com/configure-transmission-for-vpn-split-tunneling-ubuntu-16-04-debian-8/)
