---
title: 'Tutorial: Adjusting the Maximum Number of VPN Tunnels'
canonical: https://openvpn.net/as-docs/tutorials/tutorial--change-maximum-vpn-tunnels/
product: Access Server Docs
description: You can increase or decrease the limit of VPN tunnels for Access Server by following these steps.
---

# Tutorial: Adjusting the Maximum Number of VPN Tunnels

## Overview

This tutorial will guide you through the steps to change the maximum number of active incoming VPN tunnels on your Access Server.

> **Important**
>
> Changing this value will restart the OpenVPN daemons, disconnecting all current VPN clients. They will need to reestablish their connections, which should happen automatically.

## Prerequisites

- An installed Access Server.
- Console access and the ability to get root access.

## Step 1: Change the maximum number of active incoming VPN tunnels

1. Connect to the console and get root privileges.
2. Switch to the scripts directory:

   ```
   cd /usr/local/openvpn_as/scripts/
   ```
3. Adjust the maximum number of VPN tunnels with this command:

   ```
   ./sacli --key "vpn.server.max_clients" --value <NUMBER> ConfigPut
   ./sacli start
   ```

   Replace **\<NUMBER\>** with the desired maximum number of connected VPN tunnels.

   - By default, this configuration key isn't present in Access Server, and the limit is assumed to be 2048.
   - You can set it to any valid number of your choice.

---

Prev: [Tutorial: Adjusting Authentication and Database Connection Settings](https://openvpn.net/as-docs/tutorials/tutorial--authentication-and-db-connection-settings.md)
Next: [High Availability and Network Behavior](https://openvpn.net/as-docs/tutorials/high-availability-and-network-behavior.md)
Index: https://openvpn.net/as-docs/llms.txt
