Applies to Platform: UTM 3.0, 4i Edge 3.0
Updated on: 13th May 2014
This lesson is for release 3.0. If you are running version 2.5.X, please refer to this lesson.
L2TP, the Layer Two Tunneling Protocol, is described in RFC 2661. In a nutshell, it is a protocol that allows a tunnel connection that carries PPP packets. It is used to support VPN connections using IPsec. It can be used for all the devices that support tunneled connection with IPsec, like Android smartphones and Apple's iPad, iPhone, and iOS.
From this lesson, you will learn how to quickly set up on your Endian UTM appliance, an IPsec server using L2TP and password-based (PSK) authentication.
Setting up and Enabling L2TP
The set up of a L2TP tunnel is straightforward and you can achieve it in a few steps:
- Go under Menubar ‣ VPN ‣ IPsec ‣ L2TP.
- A green switch signs that L2TP support is enabled. If it is gray, click on it and wait a few seconds.
- Choose to which zone should the L2TP tunnel connections be directed. You can choose only among the zones that have been activated.
- Choose a pool of IP addresses that should be assigned to the clients connecting through L2TP. These interval should fall within the IP addresses allocated to the zone chosen in step 3.
- Optionally, you can activate the debug mode, which results in more messages to be logged.
Finally, you can save the configuration by clicking on the Save button and then on Apply in the green callout that will appear after saving the configuration.
Configuring IPsec With a L2TP Tunnel.
After the L2TP tunnel has been enabled, you are just a few more steps away to enable IPsec with the L2TP tunnel.
- Click on to the IPsec sub-menu item.
- A green switch signs that IPsec is enabled. If it is gray, click on it and wait a few seconds.
- Choose the certificate that shall be used by the clients to connect. It can be downloada by clicking on the Download PEM file link.
- You can optionally click on "Debug Options" to open a panel with several debugging options that can be activated. These option are used
- Click on the Save button to start the configuration of the VPN.
- After the configuration for IPsec has been saved, click on Add new connection to select and configure the type of connection.
Selecting and Configuring the Connection Type
In this panel, you can configure how the client connects to the IPsec server:
- Choose a name for the connection.
- Select the type of connection: L2TP Host-to-Net (roadwarrior using L2TP).
- Choose the authentication type: Password (PSK).
- Provide a strong password.
- Select the external interface that the Endian UTM Appliance will use for listening for incoming connections.
- To enable the account, tick also the checkbox, otherwise the account can not be used for connecting.
Once you're done, click on Add to store the settings.
Completing the Tunnel' Setup
You are now done! The new connection will appear as "CLOSED" until a client connects, in which case the connection' Status will become "OPEN".
Creating L2TP Users (1/3)
After the VPN connection and the L2TP tunnel have been created, the only piece missing to set up the VPN/IPsec connection is represented by the L2TP users. To create new L2TP users:
- Go under Menubar ‣ VPN ‣ Authentication ‣ Users.
- Click on Add new local user.
Creating L2TP Users (2/3)
In this step you start the creation of the new L2TP user, by supplying:
- The username.
- The password, to be typed twice. Click on the checkboxes on the right-hand side to show the password.
Then, scroll down the page and proceed to the next step.
Creating L2TP Users (3/3)
In this last step, you will finish the creation of the L2TP user:
- Check the Override L2TP options checkbox.
- In the LT2P options panel, choose the IPsec Tunnel to be used.
- Click on the Enable checkbox to activate the user.
To finalise the user creation, click on the Add button.
Configuring The Client to Connect to The Server.
In order to verify if the server is reachable, you need to configure clients with the data that you have provided here, namely username and password of the L2TP users, the IP address or hostname of the Endian UTM Appliance, and the PSK Secret, which is the pre_shared_key you have entered in Section Selecting and Configuring the Connection Type.