How do I configure the NAT log output on the AR router

NAT logs are generated when the AR performs address translation. The logs record the source IP address, source port, destination IP address, destination port, and translated source IP address and source port, as well as user actions and timestamp. The configuration is as follows:
[Huawei] firewall log session enable //Enables the log function on the firewall. [Huawei] firewall log session nat enable //Enables the NAT session log function. Run the following commands to output logs to the log host or session log host:
1. Configure the device to use channel6 to send information to the log host at 10.1.1.1.
[Huawei] info-center enable
[Huawei] info-center loghost 10.1.1.1 channel channel6
2. Configure a binary log server whose IP address is 10.10.10.1 and port number is 3456. Set the IP address and port number of the remote device to 10.10.10.2 and 20000 respectively.
[Huawei] firewall log binary-log host 10.10.10.1 3456 source 10.10.10.2 20000

Scroll to top