Increase max number of vpn-clients?

Hello,
it seems we haved reached the max number of 100 ovpn clients this mornings.

Is it possible to increase the limit?
I found to values in /var/ipfire/ovpn
server.conf: max-clients 100
settings: MAX_CLIENTS=100

If i change it via GUI only the value in settings (MAX_CLIENTS) is increased.
What does the other max-clients-parameter in server.conf mean?

Before i changed the value via GUI there where no settings:MAX_CLIENTS=100

Is changing by GUI is enough or do i have to restart the appliance?

This is IPfire 2.23 32bit Core 136

Best regards

Have you read the following page of documentation?

Best

1 Like

The basic behaviour in IPFire configuration is

  • edit the WUI of the service
  • values are stored in the corresponding settings file
  • save / (re)start produces the config file of the service ( ovpn in your case )
  • now the service runs with the values from the WUI.
  • values shown in the WUI are the values stored in settings file, the service uses values in its own conf file. Transfer of values settings —> .conf is done by save / (re)start button.

BTW: 32Bit Core 136 is very, very old.

3 Likes

Thanks for fast reply. Bernhard.
Yes, its old. We need a little more time, so we’re working on on a new appliance.
Before changing it there is no value MAX_CLIENTS in settingsfile
If i change it via WUI and save the server.conf file is not updated, only the settings file.

Best Regards

I just tried it and it worked fine for me.

  1. Stopped OpenVPN Server
  2. Change to Advanced server options page
  3. Changed Max Clients from 100 to 1000
  4. Saved the Advanced server options
  5. Returned to main OpenVPN page and Started OpenVPN Server
  6. Checked settings and server.conf files and both had the setting at 1000
2 Likes

OK, thanks for fast reply.
I will test ist in my test-installation here on Virtualbox.

Best regards.

I just checked the sources. ( for CU183! )
writes the .conf file
starts OVPN with the new config.

I just compared the code for the max-clients in CU136 with CU185 and they are the same.

I got no possibility to stop OpenVPN Server via GUI.
How did you do that, Adolf?

I just press the button labelled Stop OpenVPN Server.

The status then changes to STOPPED.

Is your status showing RUNNING in green or STOPPED in red?

2 Likes

OK, i cannot stop, button is grey.
I looked in the messages: missing servercert.pem
I have to generate a new host cert.
OK, this was tets installation for another reason.
I will have look tommorrow morning in the productive system.
Thank you gentlemen.