
NAT/NAPT configuration task list
133
IPLink Software Configuration Guide
12 • NAT/NAPT configuration
Use
no
in front of the above commands to delete a specific entry or the whole profile.
Note
The command
icmp default
is obsolete.
Example:
Creating a NAPT Profile
The following example shows how to create a new NAPT profile access that contains all settings necessary to
implement the examples in section
“Introduction”
on page 129.
IPLink(cfg)#profile napt access
IPLink(pf-napt)[access]#range 192.168.1.10 192.168.1.19 131.1.1.2
IPLink(pf-napt)[access]#static tcp 192.168.1.20 80
IPLink(pf-napt)[access]#static tcp 192.168.1.20 23 131.1.1.3
IPLink(pf-napt)[access]#range 192.168.1.30 192.168.1.39 131.1.1.10 131.1.1.15
IPLink(pf-napt)[access]#static 192.168.1.40 131.1.1.20
IPLink(pf-napt)[access]static ah 192.168.1.41 131.1.1.120
Configuring a NAPT DMZ host
The NAPT allows a DMZ host to be configured, which receives any inbound traffic on the global NAPT
interface, which:
•
Is not translated by any static or dynamic NAPT entry and
•
Is not handled by the device itself.
The following procedure shows how a DMZ host can be configured.
Mode:
profile napt <pf-name>
4
(optional)
node
(pf-napt)[
name
]#
range
local-
ip-range-start local-ip-range-stop
global-ip-start global-ip-stop
Configures and activates the Dynamic NAT:
local-ip-
range-start
and
local-ip-range-stop
define the subset
of local hosts that use an address from the global
NAT address pool to access to global network.
glo-
bal-ip-start
and
global-ip -stop
define the global NAT
address pool.
(max. 20 entries)
The IP ranges of different Dynamic NAT entries must
not overlap each other.
5
(optional)
node
(pf-napt)[
name
]#
static
local-
ip global-ip
Creates a Static NAT entry:
local-ip
is mapped to
global-ip
.
(max. 20 entries)
6
(optional)
node
(pf-napt)[
name
]#
static
{ ah|esp|gre|ipv6 }
local_ip
[
global_ip
]
.
Creates a static NAT entry: traffic of the IP protocol
AH, ESP, GRE, or IPv6 respectively directed to the
global_ip
is forwarded to the
local_ip
.
Step
Command
Purpose
1
[
name
] (pf-napt)[
pf-name
]# [no]
dmz-host <dmz-host-ip-address>
[<global-ip-address>]
Configures a DMZ host. The global-ip-address must
only be specified, if the DMZ host shall handle the
inbound traffic for a different NAPT global IP address
than the gateways global interface IP address.
Step
Command
Purpose