Skip to main content
hvardhang
Staff
Staff
August 12, 2019

Technical Tip: How to aggregate tunnel interfaces

  • August 12, 2019
  • 0 replies
  • 5502 views

Description


This article describes how to aggregate tunnel members' interfaces. Starting from 6.2.1, aggregate-member has to be enabled in the phase 1 IPsec Tunnel.

 

Scope

 

FortiGate.

Solution


In the example below, two Phase1 interfaces have been created as pri_HQ1 and sec_HQ1. For both tunnels, the aggregate-member in the Phase 1 has been enabled.

 

config vpn ipsec phase1-interface
    edit "pri_HQ1"
         set interface "port1"
         set peertype any
         set net-device disable
         set proposal aes128-sha256 aes256-sha256 aes128-sha1 aes256-sha1
         set remote-gw 172.16.202.1
         set psksecret sample1
         set aggregate-member enable
    next
    edit "sec_HQ1"
        set interface "port2"
        set peertype any
        set net-device disable
        set proposal aes128-sha256 aes256-sha256 aes128-sha1 aes256-sha1
        set remote-gw 172.17.202.1
        set psksecret sample2
        set aggregate-member enable
    next
end

config vpn ipsec phase2-interface

    edit "pri_HQ1"
        set phase1name "pri_HQ1"
        set proposal aes128-sha1 aes256-sha1 aes128-sha256 aes256-sha256 aes128gcm aes256gcm chacha20poly1305
        set auto-negotiate enable
    next
    edit "sec_HQ1"
        set phase1name "sec_HQ1"
        set proposal aes128-sha1 aes256-sha1 aes128-sha256 aes256-sha256 aes128gcm aes256gcm chacha20poly1305
        set auto-negotiate enable
    next
end

 

The members in the aggregate should be configured as follows:

 

config system ipsec-aggregate
    edit AGGREGATE
        set member pri_HQ1 sec_HQ1
end

 

To enable the Aggregate Member in IPsec using the GUI, navigate to VPN -> VPN Tunnels -> Select the IPsec tunnel -> Network -> Advanced network settings.

 

aggregate.png

 

Note:

  • To add an IPsec tunnel as an aggregate-member, all references (firewall policy, static route, etc.) must be removed. Otherwise, the following errors will appear. It is not possible to add a dial-up tunnel as an aggregate member. 

 

This interface is currently in use.
object set operator error, -23, roll back the setting
Command fail. Return code -23

 

  • If 'aggregate-member' has been enabled on the IPsec tunnel, it will not be possible to use the individual tunnel interface in the polices anymore. The tunnel interface will be removed on the listed tunnels under the specific WAN link.

 

Related article

Technical Tip: How to create aggregate IPsec tunnel with GUI

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.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!