Hak5 2018 – How to Build an OpenVPN Access Point Pt 2

Part two of Building an OpenVPN access point, this time on Hak5.
Shop: http://www.hakshop.com
Support: http://www.patreon.com/threatwire
Subscribe: http://www.youtube.com/hak5
Our Site: http://www.hak5.org
Contact Us: http://www.twitter.com/hak5
Recap: We’ve been building an VPN WiFi hotspot using OpenWRT and OpenVPN.

Last week we setup the OpenVPN Access Server and setup user accounts.

Today we’re going to work on the access-point side of things in OpenWRT by setting up the openvpn client, configuring the IP routing and testing the connection with WiFi devices.

SCP client.opvn to pineapple
SSH to pineapple
Get pineapple online
opkg update
opkg install openvpn-openssl
openvpn client.ovpn

#Setup forwarding for clients

iptables -t nat -A POSTROUTING -s -o tun0 -j MASQUERADE
iptables -A FORWARD -s -o tun0 -j ACCEPT
iptables -A FORWARD -d -m state –state ESTABLISHED,RELATED -i tun0 -j ACCEPT

#demo clients
Test connection

apt-get update
apt-get install php5-cli

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>