I'm having issues routing traffic from the VPN Clients to the LAN the openvpn server is on.

This is running in AWS VPC. I can ping vpn client and server from one another, but not the other servers in the vpc from the client. My vpn lan is the default and the VPC lan is I have enabled ip forwarding. I'm using a setup similar to the second one here https://community.openvpn.net/openvpn/wiki/BridgingAndRouting and I've setup those iptables rules on the server. I added a route in the AWS Routes for the VPC subnet to point the VPN subnet to the VPC ip of the openvpn server. I have the windows firewall completely off. I want to be able to connect to servers in the VPC lan from the clients, but so far pings, ssh, rdp are all failing. I am running OpenVPN 2.3.2 on Ubuntu 14.04 and Openvpn Gui for windows 10.

Any help is greatly appreciated!

my server config, client config and openvpn server iptables https://gist.github.com/greyhammer/7eba7bf3e9e3bf2e3b0f


Turns out I was missing a NAT Command.

iptables -t nat -A POSTROUTING -s -o eth0 -j MASQUERADE

Then don't forget to save the Iptables to make sure its still set after reboot

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.