Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
🔍 Discover Our Product Documentation

Barracuda CloudGen Firewall 10
Results will update as you type.
  • Deployment
  • Get Started
  • Network
  • High Availability
  • Licensing
  • Administration
  • Authentication
  • Cloud Integration
  • Assigned Services
  • Services
    • Access Control Service
    • DHCP
    • DNS
    • Dynamic Routing Protocols (OSPF/RIP/BGP)
    • Firewall
    • HTTP Proxy
    • SIP Proxy
    • URL Filter
    • Virus Scanner
    • VPN
      • Authentication, Encryption, Transport, IP Version and VPN Routing
      • Client-to-Site VPN
        • How to Configure a Client-to-Site VPN Group Policy
        • How to Configure the Azure Multi-Factor Authentication Server for VPN Client Authentication
        • How to Configure a Client-to-Site TINA VPN with Personal Licenses
        • Examples for TINA and IPsec Client-to-site VPNs
        • How to Configure a Client-to-Site PPTP VPN
        • How to Configure an Access Rule for a Client-to-Site VPN
        • How to Configure VPN Authentication for SMS PASSCODE
        • How to Export VPN Files for VPN Group Policies
        • Client-to-Site Group Policy Settings
        • How to Configure a Client-to-Site L2TP/IPsec VPN
        • How to Configure a Client-to-Site VPN Group Policy for a CloudGen Firewall Auto Scaling Cluster in AWS
        • How to Create a SAML Endpoint in Microsoft Azure and Client-to-Site SAML Configuration
      • Site-to-Site VPN
      • SSL VPN
      • How to Set Up Barracuda VPN CA VPN Certificates
      • How to Set Up External CA VPN Certificates
      • VPN Settings
    • Wi-Fi
    • CloudGen Access Proxy
    • Edge Computing
  • Automated Critical Updates
  • Firewall Control Center
  • Barracuda Secure Connector
  • Best Practice
  • Implementation Guides
  • Monitoring and Reporting
  • Maintenance
  • Remote Access Clients
  • Management Interfaces, Tools, and Apps
  • TUFIN Integration API Service
  • Hardware Models
  • REST API

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    How to Configure a Client-to-Site L2TP/IPsec VPN
    Published Jan 09

    How to Configure a Client-to-Site L2TP/IPsec VPN

    Subscribe

    Follow the instructions in this article to configure a client-to-site L2TP/IPsec VPN. With this configuration, IPsec encrypts the payload data of the VPN because L2TP does not provide encryption. L2TP/IPsec VPN connections can only be created between two devices using IPv4 addresses.

    Client-2-SiteL2TP.png

    Supported VPN Clients

    Use a standard-compliant L2TP/IPsec client, such as the native Windows VPN client.

    Before You Begin

    • Set up the VPN certificates for External CA. For more information, see How to Set Up External CA VPN Certificates.

      In the default server certificate, you must set the SubAltName with the FQDN that resolves to the listening IP address of the VPN service.

       

    • Configure an external authentication scheme. If an authentication service other than MSCHAPv2 or local DB is used, the client must transmit the password in plaintext (PAP). For more information, see Authentication. 

    Step 1. Configure General Settings

    Configure the general settings to be applied to all L2TP/IPsec connections.

    1. Open the L2TP/PPTP Settings page for the VPN service (Configuration > Configuration Tree > Box > Assigned Services > VPN-Service).

    2. Click Lock.

    3. Edit the following general settings for L2TP/IPsec access:

      • First DNS | Second DNS – The IP addresses of the first and secondary DNS servers for the VPN client.

      • First WINS | Second WINS – The IP addresses of the primary and secondary WINS server.

      • Static IP – To assign static IP addresses to your VPN clients, select yes. If you enable this option, you must also configure a user list. See Step 4.

    4. Click Send Changes and Activate.

    Step 2. Configure L2TP/IPsec VPN

    Enable L2TP and configure the L2TP-specific settings.

    1. Go to CONFIGURATION > Configuration Tree > Box > Assigned Services > VPN-Service > L2TP/PPTP Settings.

    2. In the left menu, select L2TP/IPSEC.

    3. Click Lock.

    4. From the Enable L2TP list, select yes.

    5. In the L2TP Settings section, specify the following settings:

      • L2TP Listen IP – The IP address that the L2TP/IPsec service will listen on, or, in other words, the public IP address on the WAN that the L2TP client connects to.

        L2TP does not work if client IP address and listen IP reside in the same subnet.

         

      • Local Tunnel IP – The gateway's IP address in the VPN subnet (e.g., 10.0.10.1).

         When using Barracuda Network Access / VPN Client simultaneously, the VPN client network must not be the same as a VPN network used for NAC connections.

         

      • Pool IP-Begin – The first IP address for L2TP/IPsec clients accessing the VPN subnet (e.g., 10.0.10.2).

      • Pool Size – The number of addresses that are available for L2TP/IPsec clients (e.g., 50).

    6. In the Authentication Settings section, specify the L2TP authentication settings:

      • User Authentication – The authentication service.

      • Authentication Scheme (external authentication only) – The authentication scheme. For more information, see Authentication.

        When using an authentication scheme, the VPN client must be configured to use unencrypted passwords (PAP).

         

      • Allowed Users (MS-CHAP-v2 only) – The specific users who are allowed to connect to the VPN. To allow all users, leave this table empty. 

      • Allowed Groups (MS-CHAP-v2 only) – The specific groups that are allowed to connect to the VPN. To allow all groups, leave this table empty.

    7. Click Send Changes and Activate.

    Step 3. Configure IPsec PSK

    You must configure the pre-shared key in the IPSec settings.

    1. Go to CONFIGURATION > Configuration Tree > Box > Assigned Services > VPN > VPN Settings.

    2. Click Lock.

    3. Verify that the Default Server Certificate and Private key are both valid (green). If the Default Server Certificate and Private key are not valid, see How to Set Up Barracuda VPN CA VPN Certificates.

    4. In the left menu, select IPSec.

    5. In the IKEv1 section, enter the Pre-shared key. E.g.,  pre$haredKey

    PSK02.png
    1. Click OK.

    2. Click Send Changes and Activate.

    Step 4. (For Local Authentication or Static IP Addresses) Configure a User List

    If you are not using an external authentication scheme or must assign static IP addresses, you can also create a list of L2TP/IPsec users who can access the VPN. Specify the username, password, and optional static IP address for each user.

    1. Go to CONFIGURATION > Configuration Tree > Box > Assigned Services > VPN-Service > L2TP/PPTP Settings.

    2. In the left menu, select User List.

    3. Click Lock.

    4. In the Username table, add the L2TP/IPsec users.

    5. Click Send Changes and Activate.

    Step 5. Create a Host Firewall Rule

    To allow multiple clients behind the same NATed IP address to connect to the CloudGen Firewall, you must create an additional host firewall rule.

    1. Go to CONFIGURATION > Configuration Tree > Box > Infrastructure Services > Host Firewall Rules.

    2. Click Lock. 

    3. Click the plus icon (+) at the top right of the ruleset, or right-click the ruleset and select New > Rule.

    FW_Rule_Add01.png
    1. Specify the following settings that must be matched by the traffic to be handled by the access rule:

      • Action – Select PASS.

      • Source – Select Internet. 

      • Service – Select NGF-OP-VPN.

      • Destination – Select Server IPs. 

      • Connection Method – Double click and select Original Source IP from the Translated Source IP list.

    l2tp_hostFW01.png
    1. In the left menu, click Advanced.

    2. In the Dynamic Interface Handling section, set Source Interface to Any.

    l2tp_hostFW02.png
    1. Click OK.

    2. Place the host firewall rule directly above the OP-SRV-VPN rule in the Inbound ruleset.

    3. Click Send Changes and Activate.

    Step 6. Create an Access Rule for L2TP/IPsec Clients

    To allow traffic from connected L2TP clients into your network, you must create an access rule.

    1. Go to CONFIGURATION > Configuration Tree > Box > Assigned Services > Firewall > Forwarding Rules.

    2. Click Lock. 

    3. Click the plus icon (+) at the top right of the ruleset, or right-click the rule set and select New > Rule.

    FW_Rule_Add01.png
    1. Specify the following settings that must be matched by the traffic to be handled by the access rule:

      • Action – Select PASS.

      • Source – Select the network object containing the L2TP VPN clients. Alternatively, use 0.0.0.0/0 with source interface pvpn0 as the source.

      • Service – Select ANY.

      • Destination – Select Trusted LAN.

      • Connection Method – Select Dynamic NAT.

    l2tp_rule_00.png
    1. In the left menu, click Advanced.

    2. In the TCP Policy section, set the Force MSS (Maximum Segment Size) to at least 40 bytes less than the MTU of the interface. E.g., 1320

    l2tp_rule_01.png
    1. In the Miscellaneous section, set the Clear DF Bit to yes.

    l2tp_rule_02 (1).png
    1. Click OK.

    2. Place the access rule so that no rule above it matches this traffic.

    3. Click Send Changes and Activate.

    Troubleshooting

    To troubleshoot VPN connections, see the \VPN\l2tpd log file. For more information, see LOGS Tab.


    We value your feedback.
    If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
    For general product inquiries or technical support, please contact the global Barracuda Support team.

    {"serverDuration": 11, "requestCorrelationId": "83e364d1a8784c74addff6610cd5e264"}