Posts: 10
Joined: Thu Dec 20, 2012 10:00 pm

Setting up VPN on Headless Pi

Tue Feb 19, 2013 5:30 pm

Hi all,

I have set my Pi up as a headless always on Bittorent server but i also pay a monthly subscription to for a VPN and would very much like to use it on the Pi.

Is there a way for me to set up the Pi headlessly to go through the VPN at all times?


User avatar
Posts: 30
Joined: Tue Jan 15, 2013 6:05 pm
Location: California
Contact: Website

Re: Setting up VPN on Headless Pi

Tue Feb 19, 2013 9:48 pm

I have an alternative solution for you:

Subscribe to the RSS feed on low-end-box:

Look for deals in the range $10 -$15 a year. I have a $15 server with 25Gb space.

Install BarracudaDrive on the VPS as explained here:

Select the BitTorrent plugin when installing BarracudaDrive, more info here: ... ent-Client

Install davfs2 on your RPI:
sudo apt-get install davfs2

Create /mnt/torrents: sudo mkdir /mnt/torrents

Mount the online BarracudaDrive server (on your VPS) from your RPI as follows:
sudo mount -t davfs https://your-VPS-IP-address/fs/torrent/download/ /mnt/torrents

You can now copy all torrents from your online VPS to your RPI. I usually start this job before going to bed.

Posts: 10
Joined: Thu Dec 20, 2012 10:00 pm

Re: Setting up VPN on Headless Pi

Wed Feb 20, 2013 12:44 am

That does sound interesting but i really want to keep all my torrent files local on attached storage to my Pi,

Is there no way of setting up a connection for my VPN?

Am i likely going to have to boot fully into the GUI of my Pi and then run it from there, It can still be headless as i can use VNC to access it?

Posts: 317
Joined: Wed Dec 14, 2011 3:59 pm
Location: Wirral, UK

Re: Setting up VPN on Headless Pi

Wed Feb 20, 2013 8:41 pm

the Ubuntu instructions should work ... ... tu_openvpn

for headless, if you want to do it all from the command line you will just have to edit the OpenVPN config files manually. ... howto.html

Posts: 4
Joined: Mon Oct 24, 2016 7:34 am

Re: Setting up VPN on Headless Pi

Wed May 03, 2017 9:52 am

Although Private internet access is the best way to encrypt your data or hide your internet browsing history, however i will suggest that people should take a free trial before purchasing a VPN account although it is very hard to find out best VPNs who are actually offering free trial so this article might be use check this free trial vpn no credit card. :geek:

Wilson Drake
Posts: 9
Joined: Mon Aug 07, 2017 7:22 am

Re: Setting up VPN on Headless Pi

Mon Aug 07, 2017 7:48 am

Definitely I agree with the given statement about at least first giving a trial version for a VPN. But any how, how to install How to Install Raspberry Pi VPN on Kodi is not that of a hassle.

At start you need to have Raspberry account with any service followed by:
  • A USB
  • Download Zomboided Repository
  • Transfer the downloaded files to your USB
  • Plug in the USB into your PI device
  • Go to Porgrams > Add-ons > Get more > Select ellipses ‘…’ Select Ellipses again > Select Install from Zip.
  • Choose the USB flash drive option from the list > Select > The repository will take time to install.
I learned this a while ago at ... pberry-pi/ , you may find it useful.
And also it includes a lot more about different versions of Kodi.

Posts: 1
Joined: Wed Jan 30, 2019 1:16 pm

Re: Setting up VPN on Headless Pi

Wed Jan 30, 2019 1:48 pm

Setting up a VPN on Headless Pi is somewhat a daunting task. However, this answer will help you get a better overview regarding the setup.
Like any similar Internet-connected device, utilizing a VPN on Raspberry Pi is a brilliant idea – especially if you will be using it on Public Wi-Fi. One stressing part of launching up a VPN on Raspberry Pi is to find a flexible VPN service.

This tutorial will facilitate you to get started with a VPN on a Raspberry Pi system. Guidelines for setting up a VPN on Headless Pi are as follow:-

1. Run the terminal.

2. Type sudo apt-get update to update the package list.

3. Type sudo apt-get install openvpn to install OpenVPN.

4. Navigate to OpenVPN directory by typing in: cd /etc/openvpn/ and then download a .ovpn configuration files: sudo wget https://*A_FAMOUS_VPN_URL*/api/files/zip

5. Unzip the package. Type: sudo unzip zip

6. To connect to service type: sudo openvpn file_name (for example: sudo openvpn de75.*A_FAMOUS VPN*.com.udp1194.ovpn)

7. OpenVPN will ask you for credentials, so simply enter those in with your account credentials.

8. You will be connected to the VPN server.

9. To disconnect from VPN press Ctrl+C on the keyboard. If you want to disconnect while using a different terminal window, you can use this command: sudo killall openvpn

Return to “Networking and servers”