R0106-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V7)

126
Ste
p
Command
Remarks
2. Configure a DNS
mapping for NAT.
nat dns-map domain domain-name
protocol pro-type { interface
interface-type interface-number | ip
global-ip } port global-port
By default, no DNS mapping for NAT
exists.
You can configure multiple DNS
mappings for NAT.
Configuring NAT hairpin
NAT hairpin enables an internal host to access an internal server or another internal host by using NAT
addresses. NAT hairpin functions on the interface that connects the internal network and translates the
source and destination IP addresses of a packet on the interface.
NAT hairpin typically operates with NAT Server, outbound dynamic NAT, or outbound static NAT.
To configure NAT hairpin:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter interface view.
interface interface-type
interface-number
N/A
3. Enable NAT hairpin.
nat hairpin enable By default, NAT hairpin is disabled.
Configuring NAT with ALG
Configure NAT with ALG for a specific protocol to analyze and process the payload fields in the
application layer packets.
To configure NAT with ALG:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Configure NAT with ALG for
the specified protocol or all
protocols.
nat alg { all | dns | ftp | h323 |
icmp-error | ils | mgcp | nbt |
pptp | rsh | rtsp | sccp | sip |
sqlnet | tftp | xdmcp }
By default, NAT with ALG is enabled.
Configuring NAT logging
Configuring NAT session logging
NAT session logging records NAT session information, including IP address and port number translation,
user access, and network flows.
A NAT device generates NAT session logs when one of the following occurs:
A NAT session is established.