Fortinet white logo
Fortinet white logo

CLI Reference

config switch-controller flow-tracking

config switch-controller flow-tracking

Note

This command is available for model(s): FortiGate 1000D, FortiGate 100EF, FortiGate 100E, FortiGate 100F, FortiGate 101E, FortiGate 101F, FortiGate 1100E, FortiGate 1101E, FortiGate 1200D, FortiGate 140D-POE, FortiGate 140D, FortiGate 140E-POE, FortiGate 140E, FortiGate 1500DT, FortiGate 1500D, FortiGate 2000E, FortiGate 200E, FortiGate 201E, FortiGate 2200E, FortiGate 2201E, FortiGate 2500E, FortiGate 3000D, FortiGate 300D, FortiGate 300E, FortiGate 301E, FortiGate 30E 3G4G GBL, FortiGate 30E 3G4G INTL, FortiGate 30E 3G4G NAM, FortiGate 30E, FortiGate 3100D, FortiGate 3200D, FortiGate 3300E, FortiGate 3301E, FortiGate 3400E, FortiGate 3401E, FortiGate 3600E, FortiGate 3601E, FortiGate 3700D, FortiGate 3800D, FortiGate 3810D, FortiGate 3815D, FortiGate 3960E, FortiGate 3980E, FortiGate 400D, FortiGate 400E Bypass, FortiGate 400E, FortiGate 401E, FortiGate 40F 3G4G, FortiGate 40F, FortiGate 500D, FortiGate 500E, FortiGate 501E, FortiGate 50E, FortiGate 51E, FortiGate 52E, FortiGate 600D, FortiGate 600E, FortiGate 601E, FortiGate 60E DSLJ, FortiGate 60E-POE, FortiGate 60E, FortiGate 60F, FortiGate 61E, FortiGate 61F, FortiGate 800D, FortiGate 80E-POE, FortiGate 80E, FortiGate 80F Bypass, FortiGate 80F-POE, FortiGate 80F, FortiGate 81E-POE, FortiGate 81E, FortiGate 81F-POE, FortiGate 81F, FortiGate 900D, FortiGate 90E, FortiGate 91E, FortiGate 92D, FortiGate VM64, FortiGateRugged 30D, FortiGateRugged 35D, FortiGateRugged 60F 3G4G, FortiGateRugged 60F, FortiGateRugged 90D, FortiWiFi 30E 3G4G INTL, FortiWiFi 30E 3G4G NAM, FortiWiFi 30E, FortiWiFi 40F 3G4G, FortiWiFi 40F, FortiWiFi 50E 2R, FortiWiFi 50E, FortiWiFi 51E, FortiWiFi 60E DSLJ, FortiWiFi 60E, FortiWiFi 60F, FortiWiFi 61E, FortiWiFi 61F, FortiWiFi 80F 2R, FortiWiFi 81F 2R-POE, FortiWiFi 81F 2R.

It is not available for: FortiGate 5001D, FortiGate 5001E1, FortiGate 5001E.

Configure FortiSwitch flow tracking and export via ipfix/netflow.

config switch-controller flow-tracking
    Description: Configure FortiSwitch flow tracking and export via ipfix/netflow.
    config aggregates
        Description: Configure aggregates in which all traffic sessions matching the IP Address will be grouped into the same flow.
        edit <id>
            set ip {ipv4-classnet}
        next
    end
    set collector-ip {ipv4-address}
    set collector-port {integer}
    set format [netflow1|netflow5|...]
    set level [vlan|ip|...]
    set max-export-pkt-size {integer}
    set sample-mode [local|perimeter|...]
    set sample-rate {integer}
    set timeout-general {integer}
    set timeout-icmp {integer}
    set timeout-max {integer}
    set timeout-tcp {integer}
    set timeout-tcp-fin {integer}
    set timeout-tcp-rst {integer}
    set timeout-udp {integer}
    set transport [udp|tcp|...]
end

config switch-controller flow-tracking

Parameter

Description

Type

Size

collector-ip

Configure collector ip address.

ipv4-address

Not Specified

collector-port

Configure collector port number.

integer

Minimum value: 0 Maximum value: 65535

format

Configure flow tracking protocol.

option

-

Option

Description

netflow1

Netflow version 1 sampling.

netflow5

Netflow version 5 sampling.

netflow9

Netflow version 9 sampling.

ipfix

Ipfix sampling.

level

Configure flow tracking level.

option

-

Option

Description

vlan

Collects srcip/dstip/srcport/dstport/protocol/tos/vlan from the sample packet.

ip

Collects srcip/dstip from the sample packet.

port

Collects srcip/dstip/srcport/dstport/protocol from the sample packet.

proto

Collects srcip/dstip/protocol from the sample packet.

mac

Collects smac/dmac from the sample packet.

max-export-pkt-size

Configure flow max export packet size.

integer

Minimum value: 512 Maximum value: 9216

sample-mode

Configure sample mode for the flow tracking.

option

-

Option

Description

local

Set local mode which samples on the specific switch port.

perimeter

Set perimeter mode which samples on all switch fabric ports and fortilink port at the ingress.

device-ingress

Set device -ingress mode which samples across all switch ports at the ingress.

sample-rate

Configure sample rate for the perimeter and device-ingress sampling.

integer

Minimum value: 0 Maximum value: 99999

timeout-general

Configure flow session general timeout.

integer

Minimum value: 60 Maximum value: 604800

timeout-icmp

Configure flow session ICMP timeout.

integer

Minimum value: 60 Maximum value: 604800

timeout-max

Configure flow session max timeout.

integer

Minimum value: 60 Maximum value: 604800

timeout-tcp

Configure flow session TCP timeout.

integer

Minimum value: 60 Maximum value: 604800

timeout-tcp-fin

Configure flow session TCP FIN timeout.

integer

Minimum value: 60 Maximum value: 604800

timeout-tcp-rst

Configure flow session TCP RST timeout.

integer

Minimum value: 60 Maximum value: 604800

timeout-udp

Configure flow session UDP timeout.

integer

Minimum value: 60 Maximum value: 604800

transport

Configure L4 transport protocol for exporting packets.

option

-

Option

Description

udp

UDP protocol.

tcp

TCP protocol.

sctp

SCTP protocol.

config aggregates

Parameter

Description

Type

Size

id

Aggregate id.

integer

Minimum value: 0 Maximum value: 4294967295

ip

IP address to group all matching traffic sessions to a flow.

ipv4-classnet

Not Specified

config switch-controller flow-tracking

config switch-controller flow-tracking

Note

This command is available for model(s): FortiGate 1000D, FortiGate 100EF, FortiGate 100E, FortiGate 100F, FortiGate 101E, FortiGate 101F, FortiGate 1100E, FortiGate 1101E, FortiGate 1200D, FortiGate 140D-POE, FortiGate 140D, FortiGate 140E-POE, FortiGate 140E, FortiGate 1500DT, FortiGate 1500D, FortiGate 2000E, FortiGate 200E, FortiGate 201E, FortiGate 2200E, FortiGate 2201E, FortiGate 2500E, FortiGate 3000D, FortiGate 300D, FortiGate 300E, FortiGate 301E, FortiGate 30E 3G4G GBL, FortiGate 30E 3G4G INTL, FortiGate 30E 3G4G NAM, FortiGate 30E, FortiGate 3100D, FortiGate 3200D, FortiGate 3300E, FortiGate 3301E, FortiGate 3400E, FortiGate 3401E, FortiGate 3600E, FortiGate 3601E, FortiGate 3700D, FortiGate 3800D, FortiGate 3810D, FortiGate 3815D, FortiGate 3960E, FortiGate 3980E, FortiGate 400D, FortiGate 400E Bypass, FortiGate 400E, FortiGate 401E, FortiGate 40F 3G4G, FortiGate 40F, FortiGate 500D, FortiGate 500E, FortiGate 501E, FortiGate 50E, FortiGate 51E, FortiGate 52E, FortiGate 600D, FortiGate 600E, FortiGate 601E, FortiGate 60E DSLJ, FortiGate 60E-POE, FortiGate 60E, FortiGate 60F, FortiGate 61E, FortiGate 61F, FortiGate 800D, FortiGate 80E-POE, FortiGate 80E, FortiGate 80F Bypass, FortiGate 80F-POE, FortiGate 80F, FortiGate 81E-POE, FortiGate 81E, FortiGate 81F-POE, FortiGate 81F, FortiGate 900D, FortiGate 90E, FortiGate 91E, FortiGate 92D, FortiGate VM64, FortiGateRugged 30D, FortiGateRugged 35D, FortiGateRugged 60F 3G4G, FortiGateRugged 60F, FortiGateRugged 90D, FortiWiFi 30E 3G4G INTL, FortiWiFi 30E 3G4G NAM, FortiWiFi 30E, FortiWiFi 40F 3G4G, FortiWiFi 40F, FortiWiFi 50E 2R, FortiWiFi 50E, FortiWiFi 51E, FortiWiFi 60E DSLJ, FortiWiFi 60E, FortiWiFi 60F, FortiWiFi 61E, FortiWiFi 61F, FortiWiFi 80F 2R, FortiWiFi 81F 2R-POE, FortiWiFi 81F 2R.

It is not available for: FortiGate 5001D, FortiGate 5001E1, FortiGate 5001E.

Configure FortiSwitch flow tracking and export via ipfix/netflow.

config switch-controller flow-tracking
    Description: Configure FortiSwitch flow tracking and export via ipfix/netflow.
    config aggregates
        Description: Configure aggregates in which all traffic sessions matching the IP Address will be grouped into the same flow.
        edit <id>
            set ip {ipv4-classnet}
        next
    end
    set collector-ip {ipv4-address}
    set collector-port {integer}
    set format [netflow1|netflow5|...]
    set level [vlan|ip|...]
    set max-export-pkt-size {integer}
    set sample-mode [local|perimeter|...]
    set sample-rate {integer}
    set timeout-general {integer}
    set timeout-icmp {integer}
    set timeout-max {integer}
    set timeout-tcp {integer}
    set timeout-tcp-fin {integer}
    set timeout-tcp-rst {integer}
    set timeout-udp {integer}
    set transport [udp|tcp|...]
end

config switch-controller flow-tracking

Parameter

Description

Type

Size

collector-ip

Configure collector ip address.

ipv4-address

Not Specified

collector-port

Configure collector port number.

integer

Minimum value: 0 Maximum value: 65535

format

Configure flow tracking protocol.

option

-

Option

Description

netflow1

Netflow version 1 sampling.

netflow5

Netflow version 5 sampling.

netflow9

Netflow version 9 sampling.

ipfix

Ipfix sampling.

level

Configure flow tracking level.

option

-

Option

Description

vlan

Collects srcip/dstip/srcport/dstport/protocol/tos/vlan from the sample packet.

ip

Collects srcip/dstip from the sample packet.

port

Collects srcip/dstip/srcport/dstport/protocol from the sample packet.

proto

Collects srcip/dstip/protocol from the sample packet.

mac

Collects smac/dmac from the sample packet.

max-export-pkt-size

Configure flow max export packet size.

integer

Minimum value: 512 Maximum value: 9216

sample-mode

Configure sample mode for the flow tracking.

option

-

Option

Description

local

Set local mode which samples on the specific switch port.

perimeter

Set perimeter mode which samples on all switch fabric ports and fortilink port at the ingress.

device-ingress

Set device -ingress mode which samples across all switch ports at the ingress.

sample-rate

Configure sample rate for the perimeter and device-ingress sampling.

integer

Minimum value: 0 Maximum value: 99999

timeout-general

Configure flow session general timeout.

integer

Minimum value: 60 Maximum value: 604800

timeout-icmp

Configure flow session ICMP timeout.

integer

Minimum value: 60 Maximum value: 604800

timeout-max

Configure flow session max timeout.

integer

Minimum value: 60 Maximum value: 604800

timeout-tcp

Configure flow session TCP timeout.

integer

Minimum value: 60 Maximum value: 604800

timeout-tcp-fin

Configure flow session TCP FIN timeout.

integer

Minimum value: 60 Maximum value: 604800

timeout-tcp-rst

Configure flow session TCP RST timeout.

integer

Minimum value: 60 Maximum value: 604800

timeout-udp

Configure flow session UDP timeout.

integer

Minimum value: 60 Maximum value: 604800

transport

Configure L4 transport protocol for exporting packets.

option

-

Option

Description

udp

UDP protocol.

tcp

TCP protocol.

sctp

SCTP protocol.

config aggregates

Parameter

Description

Type

Size

id

Aggregate id.

integer

Minimum value: 0 Maximum value: 4294967295

ip

IP address to group all matching traffic sessions to a flow.

ipv4-classnet

Not Specified