Skip to main content
spoojary
Staff
Staff
Jul 25, 2025 4:37 PM UTC

IPsec dial-up connection to a Loopback Interface using Virtual IP does not work

  • Nov 5, 2026 8:45 AM UTC
  • 0 replies
  • 4845 views
  • Translate All

Description

Issues with using a loopback interface linked to a Virtual IP (VIP) for IPSec dial-up connections.

Scope

FortiGate.

Solution

Note: 

IPsec VPN remote access does not support loopback using a virtual IP at the moment.
The connection may go up, but it will not allow traffic to pass at all. It will also show esp_errors in the VPN event logs.

The reason is that on FortiOS, the inbound IPsec SA lookup happens before destination NAT (VIP translation).
This is explained in Technical Tip: IPsec VPN tunnel termination on the VIP address (DNAT), limitations and alternatives

 

This article formerly described steps on how to configure a setup with IPSec VPN and a loopback interface accessible via Virtual IP.
This setup does not work, and the steps were removed accordingly.

 

Working IPSec VPN examples with loopback interfaces (and no virtual IP) can be found here:

Technical Tip: Best practice when IPSec VPN is bound to loopback interface

Technical Tip: IPsec between 2 FortiGates using a loopback interface 

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024