Tutorial: Reset Multi-Daemon Mode and Number of TCP/UDP Daemons
How to reset the multi-daemon mode in Access Server to the default settings. This includes configuring the number of TCP and UDP daemons.
Overview
This tutorial guides you through resetting the multi-daemon mode in Access Server to its default settings. This involves configuring the number of TCP and UDP daemons to match the number of CPU cores on your system.
An installed Access Server.
Console access and the ability to get root access.
Connect to the console and get root privileges.
Run the commands below, which use the
sacli GetNCores
command to detect the number of CPU cores and set the number of TCP and UDP daemons accordingly.sacli --key "vpn.server.daemon.enable" --value "true" ConfigPut1 sacli --key "vpn.daemon.0.listen.protocol" --value "tcp" ConfigPut2 sacli --key "vpn.server.port_share.enable" --value "true" ConfigPut3 sacli --key "vpn.server.daemon.tcp.n_daemons" --value "`./sacli GetNCores`" ConfigPut4 sacli --key "vpn.server.daemon.udp.n_daemons" --value "`./sacli GetNCores`" ConfigPut5 sacli start6
Turns on multi-daemon mode.
Sets the first daemon's protocol to TCP.
Turns on port sharing for TCP.
Sets the number of TCP daemons to match the number of CPU cores.
Sets the number of UDP daemons to match the number of CPU cores.
Restarts the Access Server service to apply changes.
You've now reset your Access Server to use multi-daemon mode, with the number of TCP and UDP daemons set according to your CPU cores. This setup helps optimize VPN connection performance and load balancing.
Sign in to the Admin Web UI.
Click VPN Server.
On the Network Settings tab, go to the OpenVPN daemons section.
Set the Protocol to TCP and UDP.
Set the Number of daemons for each protocol to the number listed as system-supported.
Click Save and Restart.