
C613-50186-01 Rev B
Command Reference for AR2050V
2660
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
NAT C
OMMANDS
RULE
(NAT)
rule (NAT)
Overview
Use this command to create a NAT rule.
Use the
no
variant of this command to remove a specified rule or all rules.
Syntax
rule [<
1-65535
>] masq
<application-name>
from
<source-entity>
to
<destination-entity>
[with src
<source-host-entity>]
rule [<
1-65535
>] portfw
<application-name>
from
<source-entity>
[to <
destination-entity
>] with dst <
destination-host-entity
>
[dport <
1-65535
>]
rule [<
1-65535
>] netmap
<application-name>
from
<source-subnet-entity>
to
<destination-subnet-entity>
with
{src|dst}
<translated-subnet-entity>
no rule {<
1-65535
>|all}
Parameter
Description
<
1-65535
>
Rule ID is an integer in the range 1 to 65535. If
you do not designate a rule ID, a rule ID will be
automatically generated and it will be greater
than the current highest rule ID.
masq
The type of NAT rule. NAT with IP Masquerade
is a case where all or a range of addresses are
mapped to a single address with source port
translation to identify the association. This
single address masquerades as the public
source address for the private addresses.
portfw
The type of NAT rule. Port forwarding allows
remote hosts to connect to a specific host or
service within a private LAN. This will forward
IPv4 packets on to another device, for
example, forward HTTP traffic to an internal
web server.
netmap
The type of NAT rule. Use subnet-based NAT to
translate the subnet portion of IP addresses
while leaving the host portion unchanged.
<application-name>
In all NAT rules, the application name, either
one of the predefined applications or an
application defined by using the
application
command.