Joshua.Weber
Cadet
- Joined
- Apr 24, 2019
- Messages
- 4
I'm running a OpenVPN inside a jail on FreeNAS. The connection to the VPN seems to authenticate and connect correctly. Routing to other devices on the server subnet work. Proxy of internet requests via the server's public internet connection work. However performance is slow, and at times it seems the connection temporarily drops or lags out (video streams halt and report a lack of internet connection).
The Client is located in Japan with a server based in the USA. So response time on ping is reasonably high at ~135ms. Server bandwidth via speedtest-cli shows 75Mbps down / 35 Mbps up. Speedtest results at the client are 63 Mbps down and 154 Mbps up. However all bandwidth speed tests on the client through the VPN connection are very limited, ~5-7 Mbps down and ~3-5 Mbps up.
CPU reported by freenas reporting never exceeds 10%. It doesn't feel compute limited or resource limited.
I've tried to change MTU settings via -fragment and -mssfix. Currently set to --fragment 1390 --mssfix. But it doesn't seem to have an impact on performance.
I've setup an new jail. Installed a Wireguard server. Changed my client to a Wireguard client. Connection works, routing to all destinations works. But still limited in bandwidth to perhaps ~<10 Mbps during speedtesting.
I decided to do performance testing outside of a VPN. I utilized iperf3 tool to measure network performance from my client to FreeNAS server host directly via the public internet. Which was only able to achieve a 7.5 Mbps performance.
I'm currently confused as to what the problem could be. But it does seem like there is a significant performance bottleneck on my FreeNAS host. Extra confusing is that the FreeNAS host seems to be able to communicate directly with the public internet without any limitation, scoring high on the speedtest-cli results. Being able to download via wget at a fast full speed rate.
Any advice or next steps anyone could suggest would be greatly appreciated.
Josh
FreeNAS 11.1-U6. CPU Xeon E3-1220. 16GB Memory.
The Client is located in Japan with a server based in the USA. So response time on ping is reasonably high at ~135ms. Server bandwidth via speedtest-cli shows 75Mbps down / 35 Mbps up. Speedtest results at the client are 63 Mbps down and 154 Mbps up. However all bandwidth speed tests on the client through the VPN connection are very limited, ~5-7 Mbps down and ~3-5 Mbps up.
CPU reported by freenas reporting never exceeds 10%. It doesn't feel compute limited or resource limited.
I've tried to change MTU settings via -fragment and -mssfix. Currently set to --fragment 1390 --mssfix. But it doesn't seem to have an impact on performance.
I've setup an new jail. Installed a Wireguard server. Changed my client to a Wireguard client. Connection works, routing to all destinations works. But still limited in bandwidth to perhaps ~<10 Mbps during speedtesting.
I decided to do performance testing outside of a VPN. I utilized iperf3 tool to measure network performance from my client to FreeNAS server host directly via the public internet. Which was only able to achieve a 7.5 Mbps performance.
I'm currently confused as to what the problem could be. But it does seem like there is a significant performance bottleneck on my FreeNAS host. Extra confusing is that the FreeNAS host seems to be able to communicate directly with the public internet without any limitation, scoring high on the speedtest-cli results. Being able to download via wget at a fast full speed rate.
Any advice or next steps anyone could suggest would be greatly appreciated.
Josh
FreeNAS 11.1-U6. CPU Xeon E3-1220. 16GB Memory.