Created on
‎12-23-2024
09:36 PM
Edited on
‎12-26-2024
01:21 AM
By
Anthony_E
Description | This article describes a scenario in which a VPN tunnel does not establish when using secondary IP addresses and presents a 'no proposal chosen' error in the IKE debugs. |
Scope | FortiGate |
Solution |
Overview: When configuring IPsec VPN tunnels on Local FortiGate with Remote Gateway set as secondary IP address of Remote FortiGate interface, the VPN tunnel may fail, showing a 'no proposal chosen' error. This occurs when Remote FortiGate uses the primary interface IP for IKE negotiations by default. In IKE negotiations, FortiGate requires specific parameters such as the peer-id, encryption algorithm, and local-gw. By default:
Problem Description: The issue manifests in environments where:
In this scenario, when the remote peer initiates the VPN connection to the secondary IP address, the FortiGate attempts to use its primary interface IP for the IKE negotiation. This IP address mismatch causes the negotiation to fail with a 'no proposal chosen' error.
Debug Analysis: The debug output shows both failed and successful scenarios:
diag debug application ike -1 diag debug console timestamp enable diag debug enable
Failed Negotiation:
<date>comes 192.168.1.10:14339->172.16.2.10:500,ifindex=17,vrf=0,len=608.. <date> 12:07:25.763232 ike V=root:0: IKEv2 exchange=SA_INIT id=123:435 len=932 <date> 12:07:25.764787 ike V=root:0:24d198225b970144/0000000000000000:17486: no proposal chosen
Successful Negotiation:
<date> 12:07:25.764787 ike V=root: SA proposal chosen, matched gateway Tunnel1 <date/time>ike V=root:0:Tunnel1:Tunnel1: created connection: 0xb5be700 9 192.168.1.10->172.16.2.10:1012.
Correct configuration snapshot:
config vpn ipsec phase1-interface
edit "Tunnel1" set interface "wan1" set local-gw 172.16.2.10 <----- Specify the secondary IP. next end config system interfaces
edit "wan1"
set vdom "root" set ip 172.16.2.9 255.255.255.0 set allowaccess ping fabric set type physical ..... config secondaryip edit 1 set ip 172.16.2.10 255.255.255.0 set allowaccess ping fabric .... Related article:
|