I have an IPSec site-to-site vpn connection setup where both the VPN gws are VyOS
VyOS-1 <-----> VyOS-2
| – ---- – - - ---- |
sw1 – – - – - - - sw2
| – - — ---- - ---- |
sevr1 ----- server2
When testing iperf on my servers passing by IPsec tunnel, I get bandwidth up to 1 Gbps.
What is the maximum performance that is supported by ipsec site to site tunnel in vyos?
Is vyos by default cannot go up to 1gpps with IPsec tunnel ? Because I saw already in the vyos forum that there are a lot of cases like mine, so I wonder if the max performance of ipsec is 1gps
IPsec will unfortunately perform only to the level of your CPU’s single core performance. If you need more throughput with IPsec, you need a better performing CPU, or acceleration like Viacheslav mentioned previously in this thread.
You can solve it by looking towards alternatives for encryption like WireGuard. WireGuard uses all cores in a system so it is much more effecient. Here’s an example on a cheap $100USDmini-pc with a quad-core Celeron (2.7Ghz max clock):