I'm experiencing this issue as well.
Scenario/How to Reproduce
- * I installed a fresh pay as you go license for OpenVPNAS on AWS. Version 2.5.
* Set up this EC2 instance using whatever public IP amazon gave it
* I didn't notice any problems in the web UI.
* Then I attached an elastic IP address to the instance.
* Added a hostname/FQDN that resolved publicly via Route53.
* Installed a real TLS cert for the web server.
* Changed the "Hostname or IP Address" setting under "Network Settings" to match the public hostname.
* verified that I can resolve this hostname and IP from my workstation and from a command line on the VPN server.
* I restarted the openvpnas service
Suddenly the webUI very slow. The
https://myserver.com/admin URL takes 40 seconds to finish loading. Individual components take about 5.0 seconds each. In chrome's dev tools the Waiting (time to first byte) is at least 5.0 seconds for every item.
What it is not:
- * DNS resolution (nslookup/dig work fine from the host and from laptop)
* CPU/Disk/IO Load (oversized instance, nothing else weird running. htop/sar show near zero utilization)
* Weird cipher suite/Slow TLS negotiation
What it Might Be
When I go to
http://myserver.com/admin:943 the page loads are normal (less than 2 seconds).
When I do the same on port 443 (default https), then that's where the slowness is.
So I suspect the problem lies here:
https://docs.openvpn.net/command-line/managing-settings-for-the-web-services-from-the-command-line/#Set_the_interface_and_ports_for_the_web_services
I'm not sure what changes need to happen in the web service forwarding settings though.
How I solved it
Basically disable this business where the VPN server forwards connections on 443 to 943. Its slow AF, don't know why.
In the admin console flip these two sliders (about 1/4th way down the page in the VPN Server section)
Network settings is the menu item on the left side of the page.
Network Settings -> Admin Web Server -> Off
Network Settings -> Client Web Server -> Off