OPNsense Forum

English Forums => Virtual private networks => Topic started by: shaozhai on January 04, 2022, 02:04:44 PM

Title: Why does WireGuard only support 20 connections
Post by: shaozhai on January 04, 2022, 02:04:44 PM
Why does WireGuard only support 20 connections
Title: Re: Why does WireGuard only support 20 connections
Post by: Patrick M. Hausen on January 04, 2022, 05:18:02 PM
I supports only 20 instances. Each instance can support a multitude of separate connections to various endpoints. What's your reason to configure that many instances?

I do not know if this limit is in WireGuard or specific to the OPNsense implementation. I never needed more than 2 or three instances, though.
Title: Re: Why does WireGuard only support 20 connections
Post by: mimugmail on January 04, 2022, 05:38:26 PM
Its just a limitation of the early days where WG was unstable. I cant imagine where you need more than 10. Only if you use for every client a dedicated instance (for whatever reason)
Title: Re: Why does WireGuard only support 20 connections
Post by: shaozhai on January 04, 2022, 11:44:48 PM
I go from site to site and have many branches. Can you tell me how to remove this restriction?
Title: Re: Why does WireGuard only support 20 connections
Post by: Patrick M. Hausen on January 04, 2022, 11:49:18 PM
But you need just one instance and N endpoints to connect N branch offices to a HQ in a star topology ...
Title: Re: Why does WireGuard only support 20 connections
Post by: shaozhai on January 05, 2022, 12:02:59 AM
I have more than 100 branches with different IP network segments. How do I set them?
Title: Re: Why does WireGuard only support 20 connections
Post by: Patrick M. Hausen on January 05, 2022, 12:33:32 AM
All as endpoints with a single instance. You do not need a tunnel network! Just allowed networks and that's it.
Title: Re: Why does WireGuard only support 20 connections
Post by: shaozhai on January 05, 2022, 01:09:24 AM
Can this achieve interworking site?
Title: Re: Why does WireGuard only support 20 connections
Post by: mimugmail on January 05, 2022, 07:11:29 AM
Sure :)