< Home

firewall log source

Function

The firewall log source command sets the source IP address and port number that the FW uses to send logs.

The undo firewall log source command cancels the above configuration.

Format

firewall log source ip-address port

undo firewall log source

Parameters

Parameter Description Value

ip-address

Specifies the source IP address that the FW uses to send logs.

NOTE:

The source IP address used for sending logs can be an IPv6 address, which takes effect only when the device connects to a third-party log host.

  • IPv4 address: The value is in dotted decimal notation.
  • IPv6 address: The value is a 32-bit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

port

Specifies the port number that the FW uses to send logs.

It is an integer that ranges from 1024 to 65535.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Parameter ip-address is the IP address of an interface of the FW. If ip-address and the IP address of the log host are not on the same network segment, ensure that the route between the FW and the log host are reachable.

If you run the commands repeatedly, the latest configuration overwrites the original one.

Example

# Set the IP address and port number that the FW uses to send logs respectively to 10.10.10.2 and 1234.

<sysname> system-view
[sysname] firewall log source 10.10.10.2 1234
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >