Fortinet black logo

CLI Reference

sniffer

sniffer

Configure packet sniffing.

Syntax

config system sniffer

edit <id>

set host <string>

set interface <interface>

set ipv6 {enable | disable}

set max-packet-count <integer>

set non-ip {enable | disable}

set port <string>

set protocol <string>

set vlan <string>

next

end

Variable

Description

<id> Sniffer ID.
host <string> IP addresses of the hosts to filter for in sniffer traffic. Multiple individual IP addresses and ranges of addresses can be entered.
interface <interface> The interface to sniff.
ipv6 {enable | disable} Enable/disable sniffing IPv6 packets.
max-packet-count <integer> The maximum packet count (1 - 1000000, default - 4000).
non-ip {enable | disable} Enable/disable sniffing non-IP packets.
port <string> The ports to sniff. Individual ports or port ranges can be entered.
protocol <string> Integer value for the protocol type as defined by IANA (0 - 255).
vlan <string> The VLANs to sniff.

sniffer

Configure packet sniffing.

Syntax

config system sniffer

edit <id>

set host <string>

set interface <interface>

set ipv6 {enable | disable}

set max-packet-count <integer>

set non-ip {enable | disable}

set port <string>

set protocol <string>

set vlan <string>

next

end

Variable

Description

<id> Sniffer ID.
host <string> IP addresses of the hosts to filter for in sniffer traffic. Multiple individual IP addresses and ranges of addresses can be entered.
interface <interface> The interface to sniff.
ipv6 {enable | disable} Enable/disable sniffing IPv6 packets.
max-packet-count <integer> The maximum packet count (1 - 1000000, default - 4000).
non-ip {enable | disable} Enable/disable sniffing non-IP packets.
port <string> The ports to sniff. Individual ports or port ranges can be entered.
protocol <string> Integer value for the protocol type as defined by IANA (0 - 255).
vlan <string> The VLANs to sniff.