My CentOS VM cannot connect to the external Internet. I cannot use yum to install anything and when I try to ping Google's server, I get unknown host google.com. When I try to ping their DNS at 8.8.8.8, I get 100% packet loss. My iptables are set up correctly (copied them from another server that does work). It seems like all the request are being blocked. I am able to connect through SSH from the external IP and the internal one (on virtual network, see next part).
If it matters, I have a virtual network set up with point-to-site configured on 172.16.4.0/24 and the network itself on 172.16.0.0/22 with two subnets on 172.16.0.248/29 and 172.16.1.0/24 and the gateway at 172.16.0.0/29. The server is on the second subnet with an IP of 172.16.1.4 for the internal address.
Any thoughts on how to fix?