Hi everyone, I am trying to build a reverse VPN gateway as described in this video by Hak5: https://youtu.be/b7qr0laM8kA
The basic concept is to bridge two networks by dialing them both into the same VPN server. This allows you to remotely access a network without needing to punch holes in a firewall.
The difference is that I'm using a Raspberry Pi running Wheezy instead of a LAN Turtle.
My two clients are both connected to OpenVPN Access Server. I can ping the target client using its VPN IP or its local IP. However, I can't access the rest of its local network..
The target machine is on 192.168.1.0/24
According to Access Server, my Dynamic IP Address Network is 172.27.224.0/20
However, when I start up OpenVPN, I am missing some of the network mappings that appear in the demonstration video.
I have enabled IPv4 forwarding with:
sudo sysctl -w net.ipv4.ip_forward=1
and I have tried mapping the networks using:
sudo iptables -A FORWARD -s 192.168.1.0/24 -d 172.27.224.0/20 -j ACCEPT
sudo iptables -A FORWARD -s 172.27.224.0/20 -d 192.168.1.0/24 -j ACCEPT
but it's still not working.
Can someone help me with these mappings? (LAN -> VPN, and VPN -> LAN)
Any help would be greatly appreciated.