Opened 6 years ago

Closed 4 weeks ago

#873 closed Feature Wish (fixed)

Increase maximum numbers of servers allowed in config file

Reported by: nrenniewaldock Owned by:
Priority: minor Milestone: release 2.6
Component: Configuration Version: OpenVPN 2.4.0 (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords:
Cc:

Description

Can the maximum number of servers per config file be increased to 256?
The default is 64, which may not be enough for some users as many paid VPN services have more than 64 servers and some users would like to be able to pick a random server.

Change History (4)

comment:1 Changed 6 years ago by Gert Döring

"may"?

Is there a specific example of a VPN service that is exceeding this?

comment:2 Changed 6 years ago by nrenniewaldock

Yes.
OctaneVPN have over 100 hostnames: http://www.octanevpn.com/server-locations.html
NordVPN have over 400: https://nordvpn.com/servers/
ExpressVPN have at least 94 hostnames: https://www.expressvpn.com/vpn-server#locations

Providers tend to have at minimum 1 hostname per country they provide servers in.
These are just a few of the ones that have the lists public.

comment:3 Changed 6 years ago by NHellFire

It's a simple enough request.

comment:4 Changed 4 weeks ago by Gert Döring

Milestone: release 2.6
Resolution: fixed
Status: newclosed

Someone needed to write code to make the internal structure dynamic ("just make it big" is usually a waste of memory for most users, and still too small for some others, so it needs to be re-coded to be more dynamic).

This has now happened and will be in 2.6.0, to be released in the coming weeks.

commit ceba452ee44439b426b786325db2b4e1b1c8b663
Author: Selva Nair <selva.nair@…>
Date: Tue Sep 7 18:31:25 2021 -0400

Permit unlimited connection entries and remotes


Currently we allow a max of 64 connection entries and remotes.
A larger number would allow users with 100's of independent
config files for different end points of same provider to
consolidate them to connection entries.

Note: See TracTickets for help on using tickets.