2

I'm dealing with a FortiGate 100D for the first time, and am scratching my head as there doesn't seem to be an easy way to mirror ports in the switch; which is really a facility that I presumed it would provide.

Ideally, I want to mirror one (or more) ports to another port, so that I can track the traffic that is flowing through it.

i.e.

  • mirror WAN1 to an internal port
  • mirror an internal port to a different internal port
  • etc.

I could do it with a passive network tap, of course; but it seems really strange to me that the 100D doesn't seem to expose an easy way to do this.

I'm new to the hardware/FortiOS, though -- so possibly I am simply missing something obvious.

Many thanks if someone can point me in the direction of how to set this up on FortiOS/FortiGate.

2
  • 1
    Aha, nevermind. I found it in the FortiOS CLI reference, under switch-interface > span/span-dest-port/span-direction/span-source-port.
    – Remi
    May 9, 2013 at 2:54
  • Remi: I get alerted for the tags fortinet and fortigate, so I came here. I just wanted to mention that I'm working on an NMS using a project called flow-inspector and a robust flow capturing software by a company qosient called argus. Both are free. Check them out.
    – brandeded
    May 9, 2013 at 15:01

2 Answers 2

3

From the FortiOS CLI reference, under system > switch-interface:

config system switch-interface
  edit <group_name>
    set member <iflist>
    set span {enable | disable}
    set span-dest-port <portnum>
    set span-direction {rx | tx | both}
    set span-source-port <portlist>
    set type {hub | switch | hardware-switch}
    set vdom <vdom_name>
  end
2

The above answer is for older models (4.0).

For newer models (5.0-5.4), look here

From the article:

The Switch Port Analyzer (SPAN) feature is now available for hardware switch interfaces on FortiGate models with built-in hardware switches (for example, the FortiGate-100D, 140D, and 200D etc.)

To enable SPAN on a hardware switch via the GUI, go to System > Network > Interfaces and edit a hardware switch interface.

By default the system may have a hardware switch interface called LAN. A new hardware switch interface can also be created. Select the SPAN check box, then select a source port from which traffic will be mirrored. Select the destination port to which the mirrored traffic is sent. Select to mirror traffic received, traffic sent, or both.

SPAN can also be enabled in the CLI:

config system virtual-switch
    edit <port>
    set span enable 
    set span-source-port <port>
    set span-dest-port <port>
    set span-direction {both | Tx | Rx} 
    end
end

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .