# How to set up L2TP over IPsec for iDRAC on Linux Ubuntu 18.04 (/docs/tutorials/idrac-vpn-access/l2tp-ipsec-idrac-linux-ubuntu-18-04)



















This article explains step-by-step guides how to connect to iDRAC using a secure L2TP over IPsec VPN connection. It covers how to find your VPN credentials in the Customer Portal, installing the required packages, configure the VPN connection, and add the necessary routes to access the iDRAC network.

## Temporary public access

Alternatively, if necessary, you can enable temporary public access to the iDRAC interface, allowing access without a VPN. This can be activated in the [Customer Portal](https://portal.servers.com/login) on the **server details page** under the **OOB** section by selecting **Enable public access for 4 hours**. Once activated, public access remains enabled for the next four hours, but can be manually disabled at any time.

For security reasons, VPN access remains the preferred method and should be used whenever possible.

## Finding VPN credentials

Credentials and instructions for setting up a VPN connection to the OOB network are available in the [Customer Portal](https://portal.servers.com/login). To access them:

1. Navigate to **VPN access** → **VPN to DRAC** section
2. Select the location and click **Credentials**
3. In the opened window, you will find the credentials

<img alt="VPN access credentials dialog showing the VPN server, login, password, and shared secret" src={__img0} />

## Installing required packages

1. Update the package information to retrieve the latest versions and dependencies:
   ```
   sudo apt update
   ```
2. Install the L2TP plugin for NetworkManager:
   ```
   sudo apt install -y network-manager-l2tp network-manager-l2tp-gnome
   ```
3. Restart your system:
   ```
   sudo reboot
   ```

## Setting up a new VPN connection

1. Click the **Settings** button in the shortcuts menu
   <img alt="Establish a VPN connection and access iDRAC" src={__img1} />

2. In the settings window, navigate to the **Network** tab and click the **+** button next to the VPN label to add a new VPN connection
   <img alt="Establish a VPN connection and access iDRAC" src={__img2} />

3. Choose **Layer 2 Tunneling Protocol (L2TP)**
   <img alt="Establish a VPN connection and access iDRAC" src={__img3} />

4. In the **VPN connection settings**, go to the **Identity** tab and enter the following details:
   * Name (e.g., VPN1)
   * Login credentials obtained from the Customer Portal:
     * Gateway: VPN server
     * Username: login
     * Password: password
   * Click the **user symbol** in the password input field and select **Store the password only for this user**
     <img alt="Establish a VPN connection and access iDRAC" src={__img4} />

5. In the same window, click the **IPsec Settings** button:
   * Tick **Enable IPsec tunnel to L2TP host**
   * Enter the **Shared secret** obtained from the Customer Portal in the **Pre-shared key** input box
   * Leave the **Phase1 Algorithms** and **Phase2 Algorithms** fields blank or manually enter the specific encryption methods. Example configuration:
     * Set Phase1 Algorithms to `aes128-sha1-modp2048`
     * Set Phase2 Algorithms to `aes128-sha1`
     * Tick **Disable PFS**
   * Click **OK** to save the settings
     <img alt="Establish a VPN connection and access iDRAC" src={__img5} />

6. Navigate to the **IPv4** tab and scroll down to the **Routes** section:
   * Disable automatic route detection by toggling the **Automatic** switch
   * Add the following routes:
     * `198.18.0.0/15`
     * `100.64.0.0/15`
   * Click **Apply** to save the settings
     <img alt="Establish a VPN connection and access iDRAC" src={__img6} />

7. Ensure your newly created VPN connection is turned on
   <img alt="Establish a VPN connection and access iDRAC" src={__img7} />

## Finding iDRAC credentials

The IP address and credentials for an individual server's iDRAC interface can be found in the [Customer Portal](https://portal.servers.com/login):

1. Navigate to **Enterprise Bare Metal** and select your server from the list
2. Scroll down to the **OOB** section and click **Credentials**
