angristan / openvpn-install

Set up your own OpenVPN server on Debian, Ubuntu, Fedora, CentOS or Arch Linux.
https://stanislas.blog
MIT License
13.49k stars 2.95k forks source link

My dear French friend, OpenVPN is ridiculously slow. #1242

Open dolbykoray opened 1 month ago

dolbykoray commented 1 month ago

I really love you my friend, your work is great, greetings from Turkey. I installed the Ubuntu-OpenVPN version but there is a slowness in the system, I tried both with the configuration you suggested and manually, the problem did not go away. I am using speeds close to 300Mbit without VPN, but when I turn on VPN, the speed drops to 20Mbit. How can we solve this?

dolbykoray commented 1 month ago

Please help :'(

gbnk0 commented 1 month ago

How is your server's cpu? Regards

dolbykoray commented 1 month ago

quad core intel xeon cpu no problem 4gb ram 30gb m2ssd, tls very cpu using, how can encrtyp disable?

gbnk0 commented 1 month ago

You mean CPU usage is high? How many clients have you?

dolbykoray commented 1 month ago

Thanks for your answer my friend. I can say that I have completely purified Ubuntu, there are only 2 different apps. nmon-openvpn- other apps may be Ubuntu system software, when I checked the cpu usage, openvpn uses cpu heavily, when I started speedtest, when I encrypted the packet numbers, I interpreted it as showing processor heavy usage.

ruairinewman commented 1 week ago

@dolbykoray This may or may not help you, but while running OpenVPN Community on a low-spec AWS instance, I found that the more secure, higher-bit ciphers were significantly more taxing, and resulted in noticeably slower throughput. Have you tried using a 128-bit cipher? While it's not ideal, it might at least narrow down what's causing your performance degradation.