FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
gmanea
Staff
Staff
Article Id 198276

Description


This article explains how to setup SPAN (Port Mirroring) using ports associated to underlying switch.

 

Scope

 

FortiGate.


Solution

 

The Switch Port Analyzer (SPAN) feature is now available only when type is switch. Port spanning echoes traffic received by the software switch to the span destination port. Port spanning can be used to monitor all traffic passing through the soft switch. You can also configure the span destination port and the span source ports, which are the switch ports for which traffic is echoed. Disabled by default.

SPAN for soft switch can be enabled in the CLI:

# config system switch-interface
    edit <port>
        set vdom <vdom-name> --> Enter the name of the VDOM, if no VDOMS are configured then it will be root
        set member “port no” “port no” --> These are the ports that you want to add to your span port configuration.
        set span enable
        set span-source-port <port no>
        set span-dest-port port
        set span-direction {both | Tx | Rx}
    end
end
 Enter the span port destination port name. All traffic on the span source ports is echoed to the span destination port. Use <tab> to advance through the list of available interfaces. Available when span is enabled.
span-direction {rx | tx | both}

Select the direction in which the span port operates:

rx copy only received packets from source SPAN ports to the destination SPAN port.

tx copy only transmitted packets from source SPAN ports to the destination SPAN port.

Both (the default) copy both transmitted and received packets from source SPAN ports to the destination SPAN port.

 

Intra-switch-policy Requirements (this cannot be changed after the switch is configured. Please delete the soft-switch and create again.)
- intra-switch-policy implicit is required in order to allow packet mirroring.