Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Wireguard is slow
« previous
next »
Print
Pages: [
1
]
Author
Topic: Wireguard is slow (Read 2024 times)
Andreiva
Newbie
Posts: 3
Karma: 0
Wireguard is slow
«
on:
May 19, 2023, 03:41:09 pm »
Hi! I have an issue with my site to site wireguard vpn between OPNSense and Openwrt and that is slow speed, I get around 20mbps while I get at least 300mbps both upload and download at both sites. A client connecting directly just to the OPNSense vpn experiences the same speed. I have tried bigger and smaller MTUs with no meaningful change. Also both wireguard-kmod and wireguard-go offer the same performance. CPU usage isn't over 50%...
Logged
Kinerg
Newbie
Posts: 33
Karma: 0
Re: Wireguard is slow
«
Reply #1 on:
May 20, 2023, 10:25:10 pm »
How are you testing performance?
Logged
Andreiva
Newbie
Posts: 3
Karma: 0
Re: Wireguard is slow
«
Reply #2 on:
May 21, 2023, 03:42:25 pm »
With iperf3 server on the opnsense machine and client on my desktop at the other site, same thing happens if iperf3 server runs on a pc connected to opnsense
«
Last Edit: May 21, 2023, 03:46:39 pm by Andreiva
»
Logged
meyergru
Hero Member
Posts: 1681
Karma: 165
IT Aficionado
Re: Wireguard is slow
«
Reply #3 on:
May 21, 2023, 06:00:56 pm »
CPU not going over 50% is no sure indicator that it is not too slow for this application. Did you try iperf with -P8?
It is a common misconception to think that full bandwidth can be achieved with only one connection - much more true if that one thread runs on one core that is too slow to handle encryption. That being said, Wireguard is less taxing on CPU than any other VPN software and does not even need AES-NI acceleration.
Logged
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005
1100 down / 440 up
,
Bufferbloat A+
Andreiva
Newbie
Posts: 3
Karma: 0
Re: Wireguard is slow
«
Reply #4 on:
May 21, 2023, 06:05:42 pm »
Tried with -P8, still limited to under 20mbps.
Logged
Kinerg
Newbie
Posts: 33
Karma: 0
Re: Wireguard is slow
«
Reply #5 on:
June 03, 2023, 05:31:40 pm »
Did you manage to find the culprit?
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Wireguard is slow