I have an openvpn server residing in amazon cloud on subnet 172.168.1.0/24. I have another X-ec2 instance on another subnet 172.168.2.0/24. I am able to not route internet traffic through the VPN by removing
push "redirect-gateway def1"
on the server configuration file. My requirement is that all traffic to instances on amazon cloud on both subnets 172.168.1.0/24 & 172.168.2.0/24 to go through the vpn tunnel so I added in the server.conf
push "route 172.168.1.0 255.255.255.0 vpn_gateway 1"
push "route 172.168.2.0 255.255.255.0 vpn_gateway 2"
I am still unable to reach the X-ec2 instance from my client windows workstation connected to the vpn. Am I missing anything here?
I also came across this Samba Share Over OpenVPN, Split Tunneling? but I done the exact same as told.