Context
NAT filtering has the following modes:
l
Endpoint-independent filtering
l
Address-dependent filtering
l
Address and port-dependent filtering
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
nat filter-mode
{
endpoint-dependent
|
endpoint-independent
|
endpoint-and-port-
dependent
}
The NAT filtering mode is set.
NAT filtering applies to the traffic from an external network to an internal network. The default
mode is
endpoint-and-port-dependent
. In this mode, the system uses the source IP address,
source port, destination IP address, destination port, and protocol number as the index to search
the NAT mapping table.
----End
5.3.9 Configuring NAT Mapping
NAT mapping allows applications using the STUN, TURN, and ICE technologies to traverse
the NAT server.
Context
The NAT function saves IPv4 addresses and improves network security. NAT mapping has the
following modes:
l
Endpoint-independent mapping: reuses the port mapping for subsequent packets sent from
the same internal IP address and port to any external IP address and port.
l
Address-dependent mapping: reuses the port mapping for subsequent packets sent from the
same internal IP address and port to the same external IP address, regardless of the external
port.
l
Address and port-dependent mapping: reuses the port mapping for subsequent packets sent
from the same internal IP address and port to the same external IP address and port while
the mapping is still active.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - IP Service
5 NAT Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
114