- Raspberry Pi 3
- Raspbian Jessie Lite installed (my tutorial is based on: March 2017, Kernel 4.4)
I've tried many tutorials, but nothing really worked for the Raspberry Pi 3. Finally I've found a guide to setup a DHCP server and Access Point/NAT configuration. Follow these steps:
- https://cdn-learn.adafruit.com/download ... -point.pdf
-----------------------------------
Install OpenVPN
After your AP is finally up and working, you can install OpenVPN with:
Code: Select all
sudo apt-get install openvpn
- https://github.com/cryptostorm/cryptost ... ster/linux
and copy i.e. "cstorm_linux-frankfurt_udp.ovpn" into:
Code: Select all
/etc/openvpn/
Code: Select all
nano
or any other editor of your choice.
Find the row with
Code: Select all
auth-user-pass
Code: Select all
auth-user-pass /etc/openvpn/pass.txt
Code: Select all
/etc/openvpn/openvpn.conf
Code: Select all
sudo nano pass.txt
- https://cryptostorm.is/sha512.html
Your pass.txt should look like this:
Code: Select all
34594f982a480971258bce1419b77b7cb69126dd0c9a5a309a74a19d9b2af63a66feee1465a35dc7dc8ad964636030e2bc8fd46e714a6bf900820e7a2fd951df
FuckTheNSA
Code: Select all
sudo service openvpn start
Code: Select all
tun0
Code: Select all
ifconfig
Code: Select all
wlan0
Code: Select all
tun0
Code: Select all
sudo iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
sudo iptables -A FORWARD -i tun0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i wlan0 -o tun0 -j ACCEPT
sudo iptables -A INPUT -i tun0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A INPUT -i tun0 -j DROP
Code: Select all
sudo sh -c "iptables-save > /etc/iptables/rules.v4"
- Verify if your connection is secure to prevent DNS, IPv6, IP, WebRTC leaks via https://ipleak.net/, https://www.dnsleaktest.com/
- Download a packet analyzer to verify a encrypted connection
----------------
References
- Parts of the OpenVPN setup above with help from this tutorial: https://alphaloop.blogspot.de/2014/01/r ... ccess.html
- Original post (but without the Cryptostorm specific tutorial) from here (I'm the author there too): https://www.raspberrypi.org/forums/view ... 4#p1128934