Skip to main content
slispd
New Member
February 17, 2019
Solved

Routing with 3 fortigates IPSEC VPN!

  • February 17, 2019
  • 7 replies
  • 10314 views

Hello,

 

I have 3 fortigates A, B and C.

The fortigate B connects to the A and C fortigade with IPSEC vpn. In fortigate A I have internal network 10.0.10.0/24 In fortigate B I have internal network 10.0.20.0/24 In C fortigate I have internal network 10.0.30.0/24

The network 10.0.20 accesses the networks 10.0.10 and 10.0.30, but I need to make the network 10.0.10 access the network 10.0.30, passing through the fortigate B. Making vpn between Fortigates A and C is not an option.

How do I do this?

 

TKS for all.

 

    Best answer by rwpatterson

    Also, you must create the VPNs in interface mode. Policy mode will not allow the routing you wish.

    7 replies

    Dai
    Explorer
    February 26, 2019
    There is no problem if both A and C have reachability. Note the setting of policy (Allow UDP 500)
    Margim_Jmaes
    New Member
    February 26, 2019

    The policy is Allow UDP 500. I think there is no problem.

    ede_pfau
    SuperUser
    SuperUser
    February 26, 2019

    Strange answers. This is not about an additional VPN but simple routing and policies.

     

    To go from A to C, via B:

    1. on FGT A:

    - add a static route for the network C, gateway interface is the tunnel to B, no gateway address

    - the tunnel between A and B should have 2 phase2's:

    one from network A to network B

    one from network A to network C (so this one needs to be added)

    - in the policy from A to B, add network C's address range as destination address

     

    2. on FGT C:

    - add a static route for the network A, gateway interface is the tunnel to B, no gateway address

    - the tunnel between C and B should have 2 phase2's:

    one from network C to network B

    one from network C to network A (so this one needs to be added)

    - in the policy from C to B, add network A's address range as destination address

     

    3. on FGT B:

    - create 2 new policies:

       - from tunnel A to tunnel C

       - from tunnel C to tunnel A

    with the correct source and destination addresses.

     

     

    So, in short words, make sure the tunnel carries 2 destination networks (via 2 phase2's) and the policy allows the remote network. FGT B will do the routing, the transit traffic is allowed by 2 additional policies.

     

    Let us know if this works for you.

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!