Skip to main content
sagha
Staff
Staff
March 31, 2020

Technical Tip: Adding FortiLink interface via CLI

  • March 31, 2020
  • 0 replies
  • 2963 views

Description

 

This article describes how to monitor FortiSwitches connected to FortiGate via the FortiLink interface by adding the FortiLink interface through the CLI.

 

Scope

 

FortiGate, FortiSwitch, FortiLink.


Solution

 

The FortiLink interface needs to be added to the policy.

It is not possible to link a FortiLink interface to a policy in the GUI as it is not visible under Policy -> Source/Destination.

 

Consequently, it must be done through the CLI:


config firewall policy
    edit 15
        set srcintf (fortilink interface)                  <- Name the FortiLink interface here.
        set dstintf (where snmp server is)
        set srcaddr "all"
        set dstaddr "all"
        set action accept
        set schedule "always"
        set service "SNMP"
        set nat enable
    end