Skip to main content

Tutorial: Reset Multi-Daemon Mode and Number of TCP/UDP Daemons

Abstract

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.

  1. Connect to the console and get root privileges.

  2. 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
    

    1

    Turns on multi-daemon mode.

    2

    Sets the first daemon's protocol to TCP.

    3

    Turns on port sharing for TCP.

    4

    Sets the number of TCP daemons to match the number of CPU cores.

    5

    Sets the number of UDP daemons to match the number of CPU cores.

    6

    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.

  1. Sign in to the Admin Web UI.

  2. Click VPN Server.

  3. On the Network Settings tab, go to the OpenVPN daemons section.

  4. Set the Protocol to TCP and UDP.

  5. Set the Number of daemons for each protocol to the number listed as system-supported.

  6. Click Save and Restart.