Search the Community
Showing results for tags 'RPI3'.
Found 1 result
-
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!