---
title: 'Tutorial: Manually Edit Access Server Configuration Using ConfigReplace'
canonical: https://openvpn.net/as-docs/v3/tutorials/tutorial--configreplace/
product: Access Server Docs
description: You can upload Access Server configuration changes in one file using the command, ConfigReplace.
---

# Tutorial: Manually Edit Access Server Configuration Using ConfigReplace

The **ConfigReplace** Access Server command allows you to upload configuration changes in a single file, and Access Server imports those changes to the correct configuration files.

The process is as follows:

1. Download the configuration to a single file.
2. Edit that file.
3. Replace the configuration with changes from the file.
4. Access Server updates the appropriate configuration files.

## Prerequisites

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

## Step 1: Download the configuration to a single file

1. Sign in to the console and get root privileges.
2. Download the configuration to a single file:

   ```
   sacli ConfigQuery > config.txt
   ```

   Where **config.txt** is the name of the new single configuration file.

## Step 2: Edit the configuration file

1. Edit the file **config.txt** with your changes.
   - For example, you might change **auth.module.type** to **pam** or **vpn.client.routing.reroute\_gw** to **false**.
2. Save your changes.

## Step 3: Replace the configuration

1. Replace the configuration:

   ```
   sacli --value_file=config.txt ConfigReplace
   sacli start
   ```
2. Verify your configuration changes.

## Optional step 3: Replace the configuration for a specific profile

Alternatively, if you want to apply the configuration changes to a specific profile, use these commands for the third step, where you replace the configuration.

1. Replace the configuration for a specific profile:

   ```
   sacli --value_file=config.txt --prof=new_profile ConfigReplace
   sacli start
   ```

   Where **new\_profile** is the name of the configuration profile you want changed.
2. Verify your configuration changes.

---

Prev: [Tutorial: How to Restore Access Server Configuration on Docker](https://openvpn.net/as-docs/v3/tutorials/tutorial--docker-restore-backup.md)
Next: [Database Management](https://openvpn.net/as-docs/v3/tutorials/database-management.md)
Index: https://openvpn.net/as-docs/llms.txt
