AWS EC2 - OpenVPN - VPN OK But No Internet Connection for Clients

Solution 1:

Since you can fetch the page at google.com, which returns the redirect to www.google.com, you have nothing wrong in your configuration. This fact means that the client is able to open a TCP connection to google.com, and issue an HTTP request and receive a response.

Does this happen on other sites too?

Solution 2:

On Ubuntu 18.04 you have to:

  1. install openvpn-systemd-resolved package:
   sudo apt install openvpn-systemd-resolved
  1. add into your .ovpn configuration file:
    script-security 2
    up /etc/openvpn/update-systemd-resolved
    down /etc/openvpn/update-systemd-resolved
    down-pre
    dhcp-option DOMAIN-ROUTE .
  1. check in AWS console a Client VPN endpoint configuration, do you have filled DNS server IP

Solution 3:

You should enable Split Tunnel on your VPN Endpoint.