![background image](http://html1.mh-extra.com/html/patton-electronics/smartnode-series/smartnode-series_software-configuration-manual_4048643138.webp)
NAT/NAPT configuration task list
138
SmartWare Software Configuration Guide
11 • NAT/NAPT configuration
Example:
Display NAT/NAPT configuration information
node(pf-napt)[access]#show profile napt access
NAPT profile access:
--------------------------
STATIC NAPT MAPPINGS
Protocol Local IP Local Port Global IP Global Port
-------- --------------- ----------- --------------- -----------
tcp 192.168.1.20 80 0.0.0.0 80
tcp 192.168.1.20 23 131.1.1.3 23
STATIC NAT PROTOCOL MAPPINGS
Protocol Local IP Global IP
-------- --------------- ---------------
ah 192.168.1.41 131.1.1.120
STATIC NAT MAPPINGS
Local IP Global IP
--------------- ---------------
192.168.1.40 131.1.1.20
STATIC NAPT RANGE MAPPINGS
Local IP Start Local IP Stop Global IP
--------------- --------------- ---------------
192.168.1.10 192.168.1.19 131.1.1.15
STATIC NAT RANGE MAPPINGS
Local IP Start Local IP Stop Global IP Start Global IP Stop
--------------- --------------- --------------- ---------------
192.168.1.30 192.168.1.39 131.1.1.10 131.1.1.15
Configuring NAT static protocol entries
The following command adds a static NAT entry, which causes any packets of the specified protocol received
on the global side of the NAT to be forwarded to the host specified on the local side of the NAT.
node(pf-napt)[ name]#static { udp | tcp } local-ip local-port [ global-ip] [ global-port]
Mode:
profile napt <pf-napt>
Step
Command
Purpose
1
[
name
]
(
pf-napt
)#
static <protocol>
<local-ip-address> [<global-ip-
address>]
Adds a static NAT protocol entry