VPN

FortiGate L2TP: Setup, Security, and Alternatives

韩知予··7 min
FortiGate L2TP: Setup, Security, and Alternatives

Learn how FortiGate handles L2TP/IPsec, what to check when it fails, and when to choose a different VPN.

FortiGate L2TP usually refers to remote access using the Layer 2 Tunneling Protocol protected by IPsec. L2TP creates the tunnel, while IPsec provides encryption and authentication. Because FortiOS features and setup options vary by version and model, first confirm that your FortiGate supports the exact L2TP/IPsec configuration you plan to use. If it does, configure matching settings on the firewall and client, then test authentication, routing, and access to internal resources.

NordVPN — fast, secure VPN

Editor's pick: NordVPN — fast, secure VPN — Strong encryption, a no-logs policy and apps for every device. 30-day money-back guarantee. Get NordVPN →

Compare FortiGate remote-access VPN options

OptionBest fitClient supportConfiguration effortMain consideration
L2TP over IPsecLegacy clients or existing setupsDepends on client and FortiOS supportModerateCheck support before planning
SSL VPNUsers needing browser or app-based accessFortiClient or supported browser workflowsModerateAvailability and behavior vary by FortiOS version
IPsec remote accessUsers needing a native VPN clientSupported IPsec clientsModerate to highRequires matching proposals and authentication
WireGuardEnvironments using a compatible gatewayWireGuard clientsLow to moderateNot a built-in FortiGate option in many deployments
Site-to-site IPsecConnecting networks rather than individual usersNetwork gatewaysModerate to highNot a user remote-access replacement
No VPN; use managed access toolsLimited access to specific applicationsWeb browser or managed agentVariesCan reduce exposure of the network

Compiled November 2026; check the provider's site for current details.

What FortiGate L2TP means

L2TP tunnels point-to-point traffic between a client and a network. By itself, it does not encrypt that traffic. L2TP is therefore commonly paired with IPsec, which protects packets as they travel across an untrusted network.

In an L2TP/IPsec setup, the client and FortiGate must agree on key settings, such as the IPsec authentication method, encryption parameters, and user credentials. The FortiGate also needs a way to assign an address to each connected client and rules that permit authorized traffic to reach the intended networks.

Do not assume that every FortiGate model or FortiOS release supports L2TP in the same way. Check the administration guide and release notes for your installed version. Some environments use FortiClient or another supported IPsec VPN method instead of L2TP.

FortiGate L2TP: Setup, Security, and Alternatives: Checklist

Check support and plan the configuration

Before changing the firewall, gather the requirements and confirm the intended design: How Does Mullvad VPN Work? A Clear Guide to Its Privacy and Features

  • FortiGate model and FortiOS version
  • Client operating systems and their L2TP/IPsec capabilities
  • Authentication method, including whether a shared IPsec secret is required
  • User accounts, groups, or an external authentication service
  • A client address pool that does not overlap with local or remote networks
  • Internal destinations that remote users are allowed to access
  • Firewall policies and routing needed for those destinations

Also consider whether the FortiGate is behind another router or firewall. IPsec traffic may need to pass through the upstream device. Commonly relevant traffic includes UDP 500 and UDP 4500 for IKE and NAT traversal, as well as IP protocol 50 (ESP) when it is not encapsulated by NAT traversal. Exact requirements depend on the design and client.

Option What it provides Main consideration
L2TP/IPsec L2TP tunneling protected by IPsec Support and setup can vary across FortiOS and client versions
IPsec remote access Encrypted remote access using IPsec Use a FortiGate-supported client and configuration
SSL VPN Remote access over TLS, where supported Availability, licensing, and features depend on FortiOS and platform

Check before configuring FortiGate L2TP

CheckWhat to verifyIf confirmedIf not confirmed
FortiOS supportL2TP over IPsec availability for the installed versionContinue with version-specific guidanceChoose a supported alternative
Model and firmwareFeatures and interface available on the devicePlan configuration stepsCheck documentation or upgrade options
Client compatibilityOperating system supports the required VPN settingsPrepare client profileUse a compatible client or alternative
WAN reachabilityRequired VPN traffic can reach the FortiGateTest from an external networkReview routing and upstream filtering
Address poolVPN clients receive usable, nonconflicting addressesReserve an appropriate rangeResolve overlap with local networks
AuthenticationUser accounts and authentication method are readyAssign access deliberatelySet up approved authentication first
Firewall policyVPN clients can reach only intended resourcesBuild least-privilege rulesDefine access needs before enabling service
Existing VPN servicesPorts, policies, and routes do not conflictProceed with testingResolve conflicts or select another design

Compiled November 2026; check the provider's site for current details.

Configure the FortiGate and client

There is no single set of steps that applies to every FortiGate release. Use the documentation for your specific version and avoid copying commands or screenshots from a different release without checking their relevance. FortiGate VPN Client: Setup, Connection Options, and Troubleshooting

At a high level, a working setup requires these components:

  1. A VPN listener or gateway configuration. Define the supported L2TP/IPsec or IPsec settings on the FortiGate.
  2. Authentication. Create or connect user accounts and groups, and apply the authentication method supported by the design.
  3. Client addressing. Set a pool or assignment method for remote users. Keep the pool separate from existing LAN, VPN, and cloud subnets.
  4. Routing and policy. Add the necessary routes and firewall policies so VPN clients can reach only the approved internal services.
  5. Matching client settings. Configure the client with the FortiGate’s public address or hostname, the agreed IPsec settings, and the appropriate credentials.

Use strong, unique credentials and a strong IPsec secret if the selected method relies on one. Treat a shared secret as sensitive information: distribute it securely, restrict who can access it, and rotate it if it is exposed. Prefer certificate-based authentication or a stronger supported design when practical.

Troubleshoot common connection problems

A client can fail at different stages, so identify where the connection stops before changing settings. Check FortiGate event and VPN logs, client error messages, and the current configuration. Make one change at a time and test again.

  • No response from the gateway: Verify the public IP or DNS name, upstream firewall rules, and whether required IPsec traffic reaches the FortiGate.
  • IPsec negotiation fails: Compare the client and FortiGate authentication and cryptographic settings. Check for NAT traversal issues and incompatible proposals.
  • User authentication fails: Confirm the username, password, group membership, and configured authentication source. Check account status and authentication logs.
  • The VPN connects but internal resources do not: Check the client’s assigned address, routes, firewall policies, and return path from the internal network.
  • Only some sites work: Look for overlapping subnets, missing routes, DNS problems, or policies that allow only part of the required traffic.
  • The connection drops: Review network stability, session timers, client behavior, and logs around the time of disconnection.

Avoid solving connectivity problems by broadly allowing traffic or disabling security checks. Narrow policies to the required users, destinations, and services, and remove temporary troubleshooting rules when testing is complete. Free VPN Where You Can Choose Location: What to Know

FortiGate L2TP: Setup, Security, and Alternatives: Key points

Security and maintenance

Remote access extends the organization’s network to devices outside its control. Limit access to necessary resources, use individual accounts where possible, and enable multifactor authentication if the selected authentication method supports it.

Keep FortiOS and client software updated, following Fortinet’s security advisories and your organization’s change process. Review VPN accounts and firewall policies regularly, and disable accounts that are no longer needed. Monitor authentication failures and unusual access patterns.

If L2TP/IPsec is required for compatibility, document its configuration and the reason for using it. Test from each supported client platform, and keep a recovery plan in case an update changes VPN behavior.

Troubleshoot and maintain an L2TP connection How About NordVPN? A Practical Review of Features, Value, and Limitations

Symptom or concernCheck firstLikely actionSecurity or maintenance note
Client cannot connectClient settings and FortiGate logsMatch protocol and authentication settingsAvoid weakening authentication as a shortcut
Connection times outWAN reachability and upstream filteringVerify required traffic reaches the FortiGateKeep exposure limited to required services
Authentication failsUsername, password, and account statusConfirm credentials and permitted usersUse strong, unique credentials
Connects but cannot reach resourcesAddress pool, routes, and firewall policiesCorrect routing or access rulesGrant access only to necessary networks
Some networks fail onlyOverlapping client and VPN subnetsChange the conflicting address rangeDocument address-plan changes
Drops after connectingClient stability and device logsCompare client behavior and review logsKeep FortiOS and clients maintained
Configuration changes unexpectedlyFirmware and configuration historyReview recent changes and restore a known-good setupBack up configuration before changes
L2TP is unsupported or unsuitableFortiOS support and security requirementsEvaluate a supported remote-access alternativePrefer a design that meets current security needs

Compiled November 2026; check the provider's site for current details.

Recommendation

For an existing environment that specifically requires L2TP, use it only with IPsec and only after confirming support for your FortiGate model, FortiOS release, and client devices. For a new deployment, compare FortiGate’s currently supported IPsec and SSL VPN options and select the one that best meets your security, compatibility, and maintenance needs.