Skip to main content
eng
New Member
May 27, 2020 1:11 PM UTC
Solved

Multiple IPSec tunnels on single interface

Hello,

 

We currently use a single VPN to get into our office, this VPN is using a software switch as the interface.

 

However, I need to create another VPN for a separate purpose (because I need to provide another subnet range to these special VPN clients). I have tried creating another VPN and I have added the same software switch as the interface, but I am unable to connect to this VPN.

 

This software interface has 1 main gateway IP and 4 secondary external IP addresses.

 

How can I implement this second VPN?

 

Thanks

 

 

sw2090
sw2090Answer
SuperUser
May 28, 2020 11:49 AM UTC

you need to make your tunnels identifyabl. If they are not the FGt uses the first tunnel that matches proposals and that may be the wrong one. If they have the same remote gw on one side you need to set peer-ids to make them unique.

7 replies

eng
engAuthor
New Member
May 27, 2020 5:31 PM UTC

Nevermind - I found the solution here: https://kb.fortinet.com/kb/documentLink.do?externalID=FD38084

 

Cheers!

sw2090
SuperUser
sw2090Answer
SuperUser
May 28, 2020 11:49 AM UTC

you need to make your tunnels identifyabl. If they are not the FGt uses the first tunnel that matches proposals and that may be the wrong one. If they have the same remote gw on one side you need to set peer-ids to make them unique.

eng
engAuthor
New Member
May 29, 2020 1:10 PM UTC

sw2090 wrote:

you need to make your tunnels identifyabl. If they are not the FGt uses the first tunnel that matches proposals and that may be the wrong one. If they have the same remote gw on one side you need to set peer-ids to make them unique.

Hey, 

 

Thanks for the response. I got this working when using Forticlient, but I need to connect using Strongswan - how do I specify this Local ID in my /etc/ipsec.conf  ?

 

Cheers

eng
engAuthor
New Member
May 29, 2020 1:18 PM UTC

ahh got it:

 

leftid = %<MY_ID>

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