Jump to content
Not connected, Your IP: 3.236.110.106
baz1nga

AirVPN w/ Raspberry Pi 3 -- working

Recommended Posts

I'm posting this hoping it'll help someone else. It's not super detailed but it should get you over the hump.

A better headline would be: "How to setup a RPI as an AirVPN client".

 

My setup:

(I'm using an RPI3 running the max2play image. max2play doesn't really have anything to do with this topic, but just in case you're wondering.)

pi@max2play:~ $ uname -a
Linux max2play 4.4.20-v7+ #908 SMP Wed Sep 7 14:44:27 BST 2016 armv7l GNU/Linux

 

How-to:

Read https://gist.github.com/superjamie/ac55b6d2c080582a3e64 to get the overall idea. The instructions below refer to it.

To make it work with AirVPN:

- User > Client Area > Config Generator > RPI

- build your config...

- under section 3. - check ADVANCED

- CHECK: Separate keys/certs from .ovpn file

- download the config as a zip

- Follow instructions up until "Setup VPN Client"... sudo apt-get install openvpn

- move the AirVPN config zip to your RPI.

- I unzipped mine to ./openvpn using unzip AirVPN-2.zip -d openvpn

- (in my case, I generated a config for Alkaid)

- the key thing is what follows:

$ sudo cp openvpn/AirVPN_US-Chicago-Illinois_Alkaid_UDP-443.ovpn /etc/openvpn/client.conf
$ sudo cp openvpn/*crt /etc/openvpn/
$ sudo cp openvpn/*key /etc/openvpn/

in other words:

- you want to copy the files as root to make sure the perms are good.

- the .ovpn file gets copied as name_of_your_config.conf (and not .ovpn)

- FINALLY, edit your /etc/openvpn/name_of_your_config.conf and full path the keys and certs. The last 4 lines should say:

ca "/etc/openvpn/ca.crt"
cert "/etc/openvpn/user.crt"
key "/etc/openvpn/user.key"
tls-auth "/etc/openvpn/ta.key" 1

Back to superjamie's tutorial, you can skip the whole password section. You're ready to test:

sudo openvpn --config /etc/openvpn/name_of_your_config.conf

It should all work. You can verify with...:

$ curl ipinfo.io/`lwp-request -o text checkip.dyndns.org | awk '{ print $NF }'`
{
  "ip": "x.x.x.x",
  "hostname": "No Hostname",
  "city": "",
  "region": "",
  "country": "US",
  "loc": "37.7510,-97.8220",
  "org": "AS35017 Swiftway Sp. z o.o."
}
$

 

From that point on, you can follow the original instructions.

To enable the VPN as a permanent service: sudo systemctl enable openvpn@name_of_your_config

 

PS: this might be useful to you too:

https://www.howtogeek.com/142044/how-to-turn-a-raspberry-pi-into-an-always-on-bittorrent-box/

 

Bazinga!

Share this post


Link to post

The headline is a bit too vague.

Do I understand it right that this guide is for configuring OpenVPN as a middle man which redirects WLAN traffic into an OpenVPN tunnel?


» I am not an AirVPN team member. All opinions are my own and are not to be considered official. Only the AirVPN Staff account should be viewed as such.

» The forums is a place where you can ask questions to the community. You are not entitled to guaranteed answer times. Answer quality may vary, too. If you need professional support, please create tickets.

» If you're new, take some time to read LZ1's New User Guide to AirVPN. On questions, use the search function first. On errors, search for the error message instead.

» If you choose to create a new thread, keep in mind that we don't know your setup. Give info about it. Never forget the OpenVPN logs or, for Eddie, the support file (Logs > lifebelt icon).

» The community kindly asks you to not set up Tor exit relays when connected to AirVPN. Their IP addresses are subject to restrictions and these are relayed to all users of the affected servers.

 

» Furthermore, I propose that your paranoia is to be destroyed. If you overdo privacy, chances are you will be unique amond the mass again.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...