Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
New Contributor

Use of secondary wan ip on ipsec vpn


wan ip: (assuming is public IP)

i have as another public ip (same subnet of wan) that is whitelisted on the remote gateway of my client ipsec vpn.

how can i use as outgoing ip address going to ipsec tunnel instead of wan ip since on ipsec vpn config you can only select wan interface


so far i have tried both no good:

- set as secondary ip of wan interface - create ip pool of and use it on policy ipsec > lan, lan > ipsec

New Contributor

Can any one help me out regarding how to make SSL VPN users to fail over with Back up (WAN 2)Link???


Currently traffic is going via wan if wan1 fails internet trafiic gets switch over to Wan2.


I Am having a problem of how to make SSL VPN users to connect on WAN 2 Ip..Even i added both public ips on VPN client system and checked .I can able to connect only with Wan 1 Ip

New Contributor III

@luckysantiago, I assume that you are using route based Ipsec VPN.

In this case if you need to use a secondary IP to establish a VPN connection you have to set the secondary IP as local gateway under phase 1 parameters:

config vpn ipsec phase1-interface

edit xx

set local-gw



@navaraj, you need to add the interface wan2 under VPN SSL Settings




That worked.  Thanks!


And this could not be done through DNS administration? For example add two records in the DNS each pointing to the public IPs of each interface: VPN.MYCOMPANY.COM - VPN.MYCOMPANY.COM - This will create a redundancy (round robin) in the DNS. In the configuration of the fortigate: VPN-> IPsec Tunnel in the configuration the Remote Gateway uses Dynamic DNS, and in the Dynamic DNS box we use the name that was registered in DNS, "VPN.MYCOMPANY.COM". With this the fortigate is referring to a name and not the IP address and the DNS would be responsible for making the redundancy. You think this would work? Excuse my English but I must use translators. regards

Top Kudoed Authors