| Description | This article describes an issue when VPN traffic is being routed to the wrong VPN tunnel due to traffic selector of one tunnel being conflicted with the IP address of another tunnel. |
| Scope | FortiGate. |
| Solution |
In this example, two site to site VPN tunnels are configured with the following settings:
Tunnel1 with remote subnet (traffic-selector) = 172.16.20.0/24.
Tunnel2 with remote subnet (traffic-selector) = 172.17.20.0/24.
However, when sending traffic to 172.16.20.1, traffic is routed to Tunnel2 instead of Tunnel1.
Example packet captures.
diagnose sniffer packet any 'host 172.16.20.1' 4 0 l
Routing table also pointed to Tunnel2.
get router info routing-table details 172.16.20.1 Known via "static", distance 5, metric 0, best
This issue happens because 172.16.20.1 is assigned to Remote IP of Tunnel2 interface under Network -> Interfaces -> Tunnel2, which conflicts with the remote subnet of Tunnel1.
Because that IP is assigned to Tunnel2 Remote IP as shown above, FortiGate creates a static route for 172.16.20.1/32 via Tunnel2 which take precedence over the 172.16.20.0/24 route via Tunnel1 because of longest-prefix-match.
get router info routing-table all
To resolve this issue, assign different IP/subnet to Tunnel2 and ensure it does not overlap with any local or remote subnets.
After changing the Remote IP of Tunnel2, traffic is routed to Tunnel1 correctly.
diagnose sniffer packet any 'host 172.16.20.1' 4 0 l |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2026 Fortinet, Inc. All Rights Reserved.