Jump to content
Not connected, Your IP: 54.160.133.33
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?


NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT.

LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too!

Want to contact me directly? All relevant methods are on my About me page.

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...