I set up OpenVPN using these instructions with the goal of connecting to the outside world using an AWS IP address rather than my ISP assigned IP.
The connection succeeds. When I ping (from the client) for example google.com while connected to the VPN I get
Pinging google.com [172.217.9.174] with 32 bytes of data:
Reply from 172.217.9.174: bytes=32 time=122ms TTL=45
Reply from 172.217.9.174: bytes=32 time=262ms TTL=45
Reply from 172.217.9.174: bytes=32 time=119ms TTL=45
Reply from 172.217.9.174: bytes=32 time=121ms TTL=45
compared to the somewhat faster pings when not using the VPN connection
Pinging google.com [172.217.6.174] with 32 bytes of data:
Reply from 172.217.6.174: bytes=32 time=84ms TTL=52
Reply from 172.217.6.174: bytes=32 time=85ms TTL=52
Reply from 172.217.6.174: bytes=32 time=89ms TTL=52
Reply from 172.217.6.174: bytes=32 time=82ms TTL=52
However, when I attempt to load a website (e.g. cnn.com) in a browser on the client, the load almost always times out.
I tried adding
sndbuf 0
rcvbuf 0
to the OpenVPN configuration on both client and server, same result.
The client is Windows 10 and the server Ubuntu 16.04 running on an AWS Nano instance. top
does not show any significant load on the server during a connection attempt.
The client's connection is 300 Mbps down / 30 Mbps up.
What else can I try to achieve usable speeds over OpenVPN?