I need to setup our openvpn server to allow all traffic togo through it when we connect(as we need to whitelist its public IP address). The problem I'm having is that once I start to route all traffic through vpn I lose all connectivity. Here's my config:
server 172.16.253.0 255.255.255.0 ifconfig-pool-persist /tmp/ipp.txt push "route 172.16.64.0 255.255.224.0" push "redirect-gateway def1" push "dhcp-option DNS 172.16.64.2"
172.16.64.2 is VPC dns server ip address.
When I connect to vpn and try traceroute 188.8.131.52 I get the following:
traceroute to 184.108.40.206 (220.127.116.11), 64 hops max, 52 byte packets 1 ip-172-16-253-1.eu-west-1.compute.internal (172.16.253.1) 30.283 ms 15.633 ms 16.482 ms 2 * * *
This is where it stops. My route tables point
172.16.253.0/24 to the EC2 instance hosting openVPN. Why is it not working and what am I missing?
Source/Dest check is disabled.