R2511-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V5)

136
Domain-name: www.server.com
Global-IP : 202.38.1.2
Global-port: 80(www)
Protocol : 6(TCP)
Domain-name: ftp.server.com
Global-IP : 202.38.1.2
Global-port: 21(ftp)
Protocol : 6(TCP)
Host A and Host B can use the domain name www.server.com to access the Web server, and use
ftp.server.com to access the FTP server.
Exporting NAT logs to the information center
Network requirements
As shown in Figure 62, a host in the private network accesses Device B in the public network through
Device A, which is enabled with NAT.
Device A sends NAT logs to the information center in the form of system logs.
You can view the records on the information center to supervise the private network users.
Figure 62 Network diagram
Configuration procedure
The following only lists configurations pertinent to NAT logs. Details of the configurations regarding the
IP addresses of the devices and NAT function are not shown here.
# As shown in Figure 62, conf
igure IP addresses for the interfaces. (Details not shown.)
# Export the NAT logs of Device A to the information center.
<DeviceA> system-view
[DeviceA] userlog nat syslog
# Enable the NAT log function on Device A.
[DeviceA] nat log enable
# View the log buffer to monitor access records.
[DeviceA] quit
<DeviceA> dir
Directory of cf:/
0 -rw- 16850028 Aug 07 2009 04:02:42 mainpack.bin
1 drw- - Aug 07 2005 05:13:48 logfile