
C613-50186-01 Rev B
Command Reference for AR2050V
2663
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
NAT C
OMMANDS
RULE
(NAT)
Examples
To perform network address translation and port forward application ‘http’ from
entity ‘public’ to any with target destination dmz.servers.web_server, use the
commands:
awplus#
configure terminal
awplus(config)#
nat
awplus(config-nat)#
rule 10 portfw
http from public with dst dmz.servers.web_server
To perform network address translation and masquerade application ‘http’ from
entity ‘private’ to ‘public’, use the commands:
awplus#
configure terminal
awplus(config)#
nat
awplus(config-nat)#
rule 20 masq
http from private to public
To use subnet-based NAT to translate the source address of all traffic from
‘private.lan’ going to ‘remote.lan’ with the new subnet specified in ‘private.global’,
use the commands:
awplus#
configure terminal
awplus(config)#
nat
awplus(config-nat)#
rule 30 netmap all from private.lan to
remote.lan with src private.global
To remove NAT rule 10, use the command:
awplus(config-nat)#
no rule 10
Related
commands
Command
changes
Version 5.4.7-0.1:
netmap
option added.