You can configure the NAT log function to record NAT operation information in real time, which strengthens device maintainability.
NAT logs are generated by a NAT device during NAT operation. The information contains basic user information and NAT operation information. NAT logs also record private network users' access to public networks and public network users' access to private network servers. When private network users access a public network through the NAT device, they share an external network address. For this reason, the users accessing the public network cannot be located. The log function helps trace and record users' access to external networks in real time, enhancing network maintainability.
The system view is displayed.
The NAT instance view is displayed.
The NAT log function is enabled.
A NAT log host is configured.
The mode of sending NAT logs is configured.
Return to the system view.
(Optional) Run nat time local
The local time is displayed in the logs.
(Optional) Run nat time { endtime-second-dec | endtime-second-hex | starttime-second-dec | starttime-second-hex | starttime | timestamp-second-dec | timestamp-second-hex | timestamp } { local | utc }
The end time, start time, or timestamp in the log is set to the local time or UTC time.
The time format configured using the nat time command takes precedence over that configured using the nat time local command in the flexible log template view. If the nat time command is run, the time format of the end time, start time, or timestamp takes effect according to the configured format. If the nat time command is not run, the nat time local command takes effect. If neither the nat time command nor the nat time local command is run, the default UTC time takes effect.
In the flexible NAT flow log template view, run the nat position command to configure a flexible flow log template.
Return to the system view.
The configuration is committed.