Fortinet white logo
Fortinet white logo

CLI Reference

config firewall sniffer

config firewall sniffer

Configure sniffer.

config firewall sniffer
    Description: Configure sniffer.
    edit <id>
        set uuid {uuid}
        set status [enable|disable]
        set logtraffic [all|utm|...]
        set non-ip [enable|disable]
        set interface {string}
        set host {string}
        set port {string}
        set protocol {string}
        set vlan {string}
    next
end

config firewall sniffer

Parameter

Description

Type

Size

Default

id

Sniffer ID.

integer

Minimum value: 0 Maximum value: 9999

0

uuid

Universally Unique Identifier (UUID; automatically assigned but can be manually reset).

uuid

Not Specified

00000000-0000-0000-0000-000000000000

status

Enable/disable the active status of the sniffer.

option

-

enable

Option

Description

enable

Enable sniffer status.

disable

Disable sniffer status.

logtraffic

Either log all sessions, only sessions that have a security profile applied, or disable all logging for this policy.

option

-

utm

Option

Description

all

Log all sessions accepted or denied by this policy.

utm

Log traffic that has a security profile applied to it.

disable

Disable all logging for this policy.

non-ip

Enable/disable sniffing non-IP packets.

option

-

disable

Option

Description

enable

Enable sniffer for non-IP packets.

disable

Disable sniffer for non-IP packets.

interface

Interface name that traffic sniffing will take place on.

string

Maximum length: 35

host

Hosts to filter for in sniffer traffic.

string

Maximum length: 63

port

Ports to sniff.

string

Maximum length: 63

protocol

Integer value for the protocol type as defined by IANA.

string

Maximum length: 63

vlan

List of VLANs to sniff.

string

Maximum length: 63

config firewall sniffer

config firewall sniffer

Configure sniffer.

config firewall sniffer
    Description: Configure sniffer.
    edit <id>
        set uuid {uuid}
        set status [enable|disable]
        set logtraffic [all|utm|...]
        set non-ip [enable|disable]
        set interface {string}
        set host {string}
        set port {string}
        set protocol {string}
        set vlan {string}
    next
end

config firewall sniffer

Parameter

Description

Type

Size

Default

id

Sniffer ID.

integer

Minimum value: 0 Maximum value: 9999

0

uuid

Universally Unique Identifier (UUID; automatically assigned but can be manually reset).

uuid

Not Specified

00000000-0000-0000-0000-000000000000

status

Enable/disable the active status of the sniffer.

option

-

enable

Option

Description

enable

Enable sniffer status.

disable

Disable sniffer status.

logtraffic

Either log all sessions, only sessions that have a security profile applied, or disable all logging for this policy.

option

-

utm

Option

Description

all

Log all sessions accepted or denied by this policy.

utm

Log traffic that has a security profile applied to it.

disable

Disable all logging for this policy.

non-ip

Enable/disable sniffing non-IP packets.

option

-

disable

Option

Description

enable

Enable sniffer for non-IP packets.

disable

Disable sniffer for non-IP packets.

interface

Interface name that traffic sniffing will take place on.

string

Maximum length: 35

host

Hosts to filter for in sniffer traffic.

string

Maximum length: 63

port

Ports to sniff.

string

Maximum length: 63

protocol

Integer value for the protocol type as defined by IANA.

string

Maximum length: 63

vlan

List of VLANs to sniff.

string

Maximum length: 63