OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.7 Legacy Series »
  • Slow OpenVPN throughput with Intel Xeon :-( only 1 Mb/s
« previous next »
  • Print
Pages: [1]

Author Topic: Slow OpenVPN throughput with Intel Xeon :-( only 1 Mb/s  (Read 7879 times)

cbesener

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Slow OpenVPN throughput with Intel Xeon :-( only 1 Mb/s
« on: July 19, 2019, 06:13:29 pm »
Hello,

I have setup 2 Opnsense with openvpn.

Both systems have a Intel Xeon processor with 16 GB Ram and SSD as harddisk. The Intel RDRAND engine is enabled.

I have configured a VPN witch AES256CBC und SHA256, but I wonder that the VPN speed is so bad. If I copy a large file the max speed is 1,5 Mb per second.

At one side I have a 1000 mbit sync fiber connection at the other side I have a 50 mbit VDSL.

What could I do, to speed up the VPN?

Logged

iam

  • Full Member
  • ***
  • Posts: 105
  • Karma: 1
    • View Profile
Re: Slow OpenVPN throughput with Intel Xeon :-( only 1 Mb/s
« Reply #1 on: July 19, 2019, 11:02:48 pm »
Quote from: cbesener on July 19, 2019, 06:13:29 pm
I have configured a VPN witch AES256CBC und SHA256, but I wonder that the VPN speed is so bad. If I copy a large file the max speed is 1,5 Mb per second.

In both directions? Is the max speed 1,5 Mbit/s or MByte/s? 1,5 MByte/s would be good with 10 Mbit/s upload.
Logged

Bonkerton

  • Newbie
  • *
  • Posts: 29
  • Karma: 0
    • View Profile
Re: Slow OpenVPN throughput with Intel Xeon :-( only 1 Mb/s
« Reply #2 on: July 19, 2019, 11:44:58 pm »
Check with a large download from a known fast site, to see which side is the culprit for slow speed.

Or a torrent, like a Linux distro ISO
Logged

cbesener

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Re: Slow OpenVPN throughput with Intel Xeon :-( only 1 Mb/s
« Reply #3 on: July 20, 2019, 11:58:42 am »
The copy speed is about 1,5 Megabyte per second. Yes that is about 10 mbit. But I have a symmetric fiber channel with 1000 mbit, and on the other site 50 mbit. And I wonder that the VPN only pass 10 mbit. I would like to now how to speed up the VPN.
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Slow OpenVPN throughput with Intel Xeon :-( only 1 Mb/s
« Reply #4 on: July 20, 2019, 02:22:37 pm »
Interfaces : LAN : MSS, set to 1300 for testing. If it doesnt help its IPS, QoS, half duplex or something at other side
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

ruffy91

  • Jr. Member
  • **
  • Posts: 79
  • Karma: 9
    • View Profile
Re: Slow OpenVPN throughput with Intel Xeon :-( only 1 Mb/s
« Reply #5 on: July 20, 2019, 02:24:01 pm »
Try disabling rdrand so it uses aesni. rdrand is a lot slower than aesni or even software.
Logged

cbesener

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Re: Slow OpenVPN throughput with Intel Xeon :-( only 1 Mb/s
« Reply #6 on: July 23, 2019, 10:57:09 am »
After a little bit googling over the world I found a solution, which speed up my VPN to 40000 kbit's

I have changed the buffer size to this values

sndbuf 393216
rcvbuf 393216
push "sndbuf 393216"
push "rcvbuf 393216"

Thanks for your help
Logged

Bargemanos

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Slow OpenVPN throughput with Intel Xeon :-( only 1 Mb/s
« Reply #7 on: September 13, 2019, 03:47:56 pm »
Quote from: cbesener on July 23, 2019, 10:57:09 am
After a little bit googling over the world I found a solution, which speed up my VPN to 40000 kbit's

I have changed the buffer size to this values

sndbuf 393216
rcvbuf 393216
push "sndbuf 393216"
push "rcvbuf 393216"

Thanks for your help

I ran into the same problem, although both internet speed should be sufficient to reach 100mbit without vpn active, i get ~1mb/s with vpn active.
I can not find an clue so i wanted to try the settings you provided above.

But i'm wondering, where did you set those variables. in the "openvpn --> servers" section or while exporting client side settings, of maby.. both? :)
I would like to get this right the first time.. would spare me a lot of possible travel time :)
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Slow OpenVPN throughput with Intel Xeon :-( only 1 Mb/s
« Reply #8 on: September 13, 2019, 07:03:58 pm »
Tunables, just Google them with FreeBSD to see absolute path
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

cbesener

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Re: Slow OpenVPN throughput with Intel Xeon :-( only 1 Mb/s
« Reply #9 on: October 01, 2019, 10:23:53 am »
I entered the values under client specific overrides. Than under Advanced Settings. Now my OpenVpn is fast, as I need.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.7 Legacy Series »
  • Slow OpenVPN throughput with Intel Xeon :-( only 1 Mb/s
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2