# Setting up Private Internet Access with Dietpi

**URL:** <https://dietpi.com/forum/t/setting-up-private-internet-access-with-dietpi/24808>\
**Category:** General Discussion\
**Created:** [22 December 2025 13:40 UTC](https://dietpi.com/forum/t/setting-up-private-internet-access-with-dietpi/24808 "2025-12-22T13:40:47Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam-F](https://dietpi.com/forum/user_avatar/dietpi.com/adam-f/32/8058_2.png) [@Adam-F](https://dietpi.com/forum/u/Adam-F)\
**Post date:** [22 December 2025 13:40 UTC](https://dietpi.com/forum/t/setting-up-private-internet-access-with-dietpi/24808/1 "2025-12-22T13:40:47Z")

</div>

Hi All,

I have just purchased Private Internet Access, I was wondering, how do I go about setting it up with Dietpi?

I want my Raspberry pi to be setup, so all the software and services that are running on dietpi are fully protected with PIA.

The services I have running are as follows.

OpenSSH,

Jellyfin,

Deluge Torrents,

Pi-Hole

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [22 December 2025 14:01 UTC](https://dietpi.com/forum/t/setting-up-private-internet-access-with-dietpi/24808/2 "2025-12-22T14:01:03Z")

</div>

> [@Adam-F](#):
>
> I have just purchased Private Internet Access

Ok and what is this? A VPN? First step would be to check software documentation and how to setup on Linux/ Raspberry Pi.

---

<div class="post-metadata">

**Author:** ![Adam-F](https://dietpi.com/forum/user_avatar/dietpi.com/adam-f/32/8058_2.png) [@Adam-F](https://dietpi.com/forum/u/Adam-F)\
**Post date:** [22 December 2025 16:17 UTC](https://dietpi.com/forum/t/setting-up-private-internet-access-with-dietpi/24808/3 "2025-12-22T16:17:57Z")

</div>

Yes it’s a VPN, Do you have a like to the setup steps please?

> **[Private Internet Access: The Best VPN Service For 10+ Years](https://www.privateinternetaccess.com/)**
>
> PIA VPN is 2025's top-rated VPN service – with ultra-fast speeds, worldwide streaming servers, and 100% open-source software. Try PIA risk free for 30 days.

How do I set it up with the dietpi operating system?

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [22 December 2025 16:36 UTC](https://dietpi.com/forum/t/setting-up-private-internet-access-with-dietpi/24808/4 "2025-12-22T16:36:04Z")

</div>

PIA provides `.ovpn` files. You can copy this onto your SBC and just use `dietpi-vpn`.

> **[Where can I find your OVPN files? - Knowledgebase / Technical /...](https://helpdesk.privateinternetaccess.com/kb/articles/where-can-i-find-your-ovpn-files)**

So the DietPi device would be the gateway of your network.  
But maybe your router supports external VPN, then you could also use your router as gateway

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [22 December 2025 16:47 UTC](https://dietpi.com/forum/t/setting-up-private-internet-access-with-dietpi/24808/5 "2025-12-22T16:47:53Z")

</div>

Yes you need to check with your VPN provider on how to get the configuration files.

---

<div class="post-metadata">

**Author:** ![Adam-F](https://dietpi.com/forum/user_avatar/dietpi.com/adam-f/32/8058_2.png) [@Adam-F](https://dietpi.com/forum/u/Adam-F)\
**Post date:** [23 December 2025 13:51 UTC](https://dietpi.com/forum/t/setting-up-private-internet-access-with-dietpi/24808/6 "2025-12-23T13:51:58Z")

</div>

Update

I have obtained the open vpn config files from Private Internet Access, the also provided the following tutorial, which I am not sure is relevant to Diet-Pi.

[Linux - Setting up manual OpenVPN connection through the Terminal - Knowledgebase / Technical / Troubleshooting / OpenVPN - PIA Support Portal](https://helpdesk.privateinternetaccess.com/kb/articles/linux-setting-up-manual-openvpn-connection-through-the-terminal)

---

<div class="post-metadata">

**Author:** ![Adam-F](https://dietpi.com/forum/user_avatar/dietpi.com/adam-f/32/8058_2.png) [@Adam-F](https://dietpi.com/forum/u/Adam-F)\
**Post date:** [23 December 2025 13:53 UTC](https://dietpi.com/forum/t/setting-up-private-internet-access-with-dietpi/24808/7 "2025-12-23T13:53:31Z")

</div>

My router doesn’t support external VPNs as its a router provided by my ISP.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [23 December 2025 14:30 UTC](https://dietpi.com/forum/t/setting-up-private-internet-access-with-dietpi/24808/8 "2025-12-23T14:30:35Z")

</div>

> [@Adam-F](#):
>
> I have obtained the open vpn config files from Private Internet Access

you can use `dietpi-vpn` with your custom configuration file [Software Installation - DietPi.com Docs](https://dietpi.com/docs/dietpi_tools/software_installation/#dietpi-vpn)

---

<div class="post-metadata">

**Author:** ![Adam-F](https://dietpi.com/forum/user_avatar/dietpi.com/adam-f/32/8058_2.png) [@Adam-F](https://dietpi.com/forum/u/Adam-F)\
**Post date:** [23 December 2025 15:11 UTC](https://dietpi.com/forum/t/setting-up-private-internet-access-with-dietpi/24808/9 "2025-12-23T15:11:16Z")

</div>

At this screen, how can I input my account details without manually inputting them in?

Copy & Paste isn’t working in my terminal session.

Can I not add a text file with my details in, the directory that has all my config files inside?

Thanks

 ![image](https://dietpi.com/forum/uploads/default/original/2X/2/2817941d05c53e82233609ce128ed05a629cbb57.jpeg)

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [23 December 2025 15:21 UTC](https://dietpi.com/forum/t/setting-up-private-internet-access-with-dietpi/24808/10 "2025-12-23T15:21:40Z")

</div>

If you connect via SSH, copy&paste would work. You need to enter credentials once. It is internally converted into a dedicated file, hence would be a nice feature to allow providing this file directly. But it does not work yet.

From the screenshot, you have ProtonVPN selected as provider. We actually support PIA directly, i.e. no need to download the OVPN manually. But adding one with “Custom” provider works as well.

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [23 December 2025 21:25 UTC](https://dietpi.com/forum/t/setting-up-private-internet-access-with-dietpi/24808/11 "2025-12-23T21:25:23Z")

</div>

But in your screenshot you’ve chosen ProtonVPN, but you’ve said you use PIA.  
YOu would need to chose “custom” and the select the `.ovpn` file you have copied onto the device

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [28 December 2025 13:20 UTC](https://dietpi.com/forum/t/setting-up-private-internet-access-with-dietpi/24808/12 "2025-12-28T13:20:06Z")

</div>

> [@Jappe](#):
>
> YOu would need to chose “custom”

Or “PIA”. Little benefit is that the OVPN templates are updated automatically when changing/saving settings and there should be a server/location submenu to switch to a different country when needed.

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [28 December 2025 15:17 UTC](https://dietpi.com/forum/t/setting-up-private-internet-access-with-dietpi/24808/13 "2025-12-28T15:17:57Z")

</div>

Oh there is already PIA support, nice.  
I must have overlooked it when I checked the script 😅

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [26 June 2026 15:18 UTC](https://dietpi.com/forum/t/setting-up-private-internet-access-with-dietpi/24808/14 "2026-06-26T15:18:16Z")

</div>

Closed on 26 June 2026 15:18 UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
