Skip to main content
raksshaya
Staff
Staff
March 16, 2026

Troubleshooting Tip: IPsec VPN Tunnel is not coming up between FortiGate and Palo Alto

  • March 16, 2026
  • 0 replies
  • 596 views

 

Description This article describes troubleshooting steps when the IPsec tunnel Phase 1 and Phase 2 are up on FortiGate hosted in Microsoft Azure, but the tunnel is not established from the Palo Alto side.
Scope FortiGate, Palo Alto.
Solution

Scenario: 

  • FortiGate is deployed in Azure with a private IP address.
  • NAT performed upstream using an Azure public IP address.
  • IPsec VPN configured between FortiGate and Palo Alto firewall.

 

It can be noticed that Phase 1 and Phase 2 show UP on FortiGate, and the same can be verified using the below CLI commands and VPN event logs.

 

diagnose vpn tunnel list name <phase1-name>

diagnose vpn ike gateway list name <phase1-name>

 

However, Phase 1 is not established on the Palo Alto firewall. Palo Alto logs display the error message:

'received id_r <FortiGate Private IP> type ipaddr does not match peers id'.

 

Leave the Local ID field blank on the FortiGate, and the remote end only needs to make the changes 

 

config vpn ipsec phase1-interfac
    edit <phase1-name>
        set localid ''
    next
end

 

 

From the GUI:

 

KB.png

 

The Local ID option in the GUI cannot be seen when the Tunnel is created from the Wizard. In such cases, use the 'Convert to Custom Tunnel' option.

kb2.png


After configuring the FortiGate private IP address as Peer Identification on the Palo Alto firewall, the IPsec tunnel establishes successfully.

 

Screenshot 2026-03-16 155215.png
A private IP address refers to the IP address assigned to the underlying interface on which the tunnel is built on the FortiGate firewall. For example, if the tunnel is configured on interface port1 of the firewall, then the IP address of port1 can be used as the peer identification on the remote firewall (Palo Alto Firewall).

 

Related article:

Technical Tip: Configuring IPSec tunnel between FortiGate and Palo Alto