There are moments when OpenVPN is extremelly slow with good WAN connections
Posted: Wed Jun 07, 2017 9:27 am
Hello guys,
I have been noticing that some times users got slow connections from client to side, but each connection is 100/10 Fiber or almost a stable 21/21 4G. There is no bottleneck between each point.
From several random connections that I have made from 4G in random locations, some times I got some kind of bottleneck in Upload or Download, and dont know why.
When I noticed some bottleneck in VPN connection, just to confirm, I made speed tests and exit the connection and then made another speed test.
From another user using Windows 10, he is experincing another behaviour that cannot use the tunnel when it does his first login, it needs to restart his machine to be able to use the VPN properly. In server side when this problem occurs, the device seems to be able to login. I have not confirm yet if I am able to ping when this happens or if openvpn client is still "green".
There are some imgs attached, with some tests that I have made using the same connection:
http://prntscr.com/fgwd8z
http://prntscr.com/fgwdff
http://prntscr.com/fgwdkz
http://prntscr.com/fgwdow
In system logs, there are no errors as well as in user sides.
Router Firewall: Netgate SG-4860
OpenVPN server config:
UDP
tun
DH Parameter: 1024
Encryption Algoritm: AES 128 CBC
Auth digest algoritm: SHA256
Hardware crypto: BSD cryptodev engine
Cert depth: One
Compression: Adaptive compression
Duplicate connection: yes
Block Outside DNS: yes
Force DNS cache update: no
OpenVPN client config:
dev tun
persist-tun
persist-key
cipher AES-128-CBC
auth SHA256
tls-client
client
resolv-retry infinite
remote x 1194 udp
lport 0
verify-x509-name "x" name
auth-user-pass
pkcs12 pfSense-udp-1194-fabio.p12
tls-auth pfSense-udp-1194-fabio-tls.key 1
ns-cert-type server
comp-lzo adaptive
Anyone knows or have saw this problem before?
I have been noticing that some times users got slow connections from client to side, but each connection is 100/10 Fiber or almost a stable 21/21 4G. There is no bottleneck between each point.
From several random connections that I have made from 4G in random locations, some times I got some kind of bottleneck in Upload or Download, and dont know why.
When I noticed some bottleneck in VPN connection, just to confirm, I made speed tests and exit the connection and then made another speed test.
From another user using Windows 10, he is experincing another behaviour that cannot use the tunnel when it does his first login, it needs to restart his machine to be able to use the VPN properly. In server side when this problem occurs, the device seems to be able to login. I have not confirm yet if I am able to ping when this happens or if openvpn client is still "green".
There are some imgs attached, with some tests that I have made using the same connection:
http://prntscr.com/fgwd8z
http://prntscr.com/fgwdff
http://prntscr.com/fgwdkz
http://prntscr.com/fgwdow
In system logs, there are no errors as well as in user sides.
Router Firewall: Netgate SG-4860
OpenVPN server config:
UDP
tun
DH Parameter: 1024
Encryption Algoritm: AES 128 CBC
Auth digest algoritm: SHA256
Hardware crypto: BSD cryptodev engine
Cert depth: One
Compression: Adaptive compression
Duplicate connection: yes
Block Outside DNS: yes
Force DNS cache update: no
OpenVPN client config:
dev tun
persist-tun
persist-key
cipher AES-128-CBC
auth SHA256
tls-client
client
resolv-retry infinite
remote x 1194 udp
lport 0
verify-x509-name "x" name
auth-user-pass
pkcs12 pfSense-udp-1194-fabio.p12
tls-auth pfSense-udp-1194-fabio-tls.key 1
ns-cert-type server
comp-lzo adaptive
Anyone knows or have saw this problem before?