< Home

firewall log packet-discard

Function

The firewall log packet-discard command sets the type of packet discarding logs.

The undo firewall log packet-discard command clears the setting of the type of packet discarding logs.

Format

firewall log packet-discard { session-miss | packet-filter | default-packet-filter | ip-mac | others } [ sample-rate sample-rate ]

undo firewall log packet-discard { session-miss | packet-filter | default-packet-filter | ip-mac | others }

Parameters

Parameter Description Value

session-miss

Indicates the log on packet discarding when the packet does not match the session table.

-

packet-filter

Indicates the log on packet discarding when the packet is denied by security policy.

-

default-packet-filter

Indicates the log on packet discarding when the packet is denied by the default packet filtering.

-

ip-mac

Indicates the log on packet discarding when the packet is discarded because it fails to match an IP-MAC binding entry.

NOTE:

This parameter is supported only in V600R007C20SPC501, and V600R007C20SPC601 and its later versions .

-

others

Indicates the packet discarding log in other types.

-

sample-rate sample-rate

Specifies the sampling ratio for sending packet discarding logs.

The value is an integer ranging from 1 to 1000000.

The default sampling ratio for packet discarding logs is 1000. That is, a packet discarding log is sent for every 1000 packet discarding messages.

Packet discarding logs of the session-miss, ip-mac and others types are sent based on the sampling ratio.

For packet discarding logs of the packet-filter and default-packet-filter types, when the number of packets discarded per second does not exceed the fixed threshold, a packet discarding log is sent for each discarded packet; when the number of packets discarded per second exceeds the fixed threshold, packet discarding logs are sent based on the sampling ratio.

The threshold for the number of packets discarded per second varies according to the model.

  • USG6510E/USG6510E-POE: The value is an integer ranging from 1 to 30.
  • USG6530E: The value is an integer ranging from 1 to 50.
  • USG6525E: The value is an integer ranging from 1 to 300.
  • USG6515E: The value is an integer ranging from 1 to 300.
  • USG6550E/6560E/6580E: The value is an integer ranging from 1 to 400.
  • USG6555E/6565E/6575E-B/6585E/6605E-B: The value is an integer ranging from 1 to 400.
  • USG6615E: The value is an integer ranging from 1 to 800.
  • USG6610E: The value is an integer ranging from 1 to 800.
  • USG6620E: The value is an integer ranging from 1 to 1200.
  • USG6625E: The value is an integer ranging from 1 to 1200.
  • USG6630E: The value is an integer ranging from 1 to 1000.
  • USG6635E/6655E: The value is an integer ranging from 1 to 1200.
  • USG6650E: The value is an integer ranging from 1 to 1200.
  • USG6680E: The value is an integer ranging from 1 to 1250.
  • USG6712E/6716E: The value is an integer ranging from 1 to 2500.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

You can run this command for many times to set multiple types of packet discarding logs.

IPv6 packet discard logs do not support others type.

Example

# Set the packet discarding log type to default packet filtering packet discarding.

<sysname> system-view
[sysname] firewall log packet-discard default-packet-filter
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >