nat Commands
694
E-DOC-CTC-20080409-0002 v2.0
nat mapadd
Add an address mapping to a nat enabled interface.
SYNTAX:
nat mapadd intf = <{loop|ipsec0|lan1|wan1|dmz1|guest1}>
[type = <{napt|nat}>]
[outside_addr = <ip-range>]
[inside_addr = <ip-range>]
[access_list = <ip-range>]
[foreign_addr = <ip-range>]
[protocol = <{ah|egp|esp|ggp|gre|hmp|icmp|
igmp|pup|rdp|rsvp|tcp|udp|vines|xns-idp|6to4|
ipip} or number>]
[outside_port = <port-range>]
[inside_port = <port-range>]
[mode = <{auto|inbound|outbound}>]
[weight = <number{0-255}>]
where:
intf The IP interface name. REQUIRED
type The type of mapping. OPTIONAL
outside_addr The outside (typically public) IP address (range
for NAT).
OPTIONAL
inside_addr The inside (typically private) IP address (range
for NAT).
OPTIONAL
access_list The range of inside addresses the mapping is
restricted to.
OPTIONAL
foreign_addr The range of destination addresses the mapping
is restricted to.
OPTIONAL
protocol The IP protocol. OPTIONAL
outside_port The outside port number or range (only for
NAPT).
OPTIONAL
inside_port The inside port number or range (only for
NAPT).
OPTIONAL
mode The mode to create the portmap. OPTIONAL
weight The weight for the portmap. OPTIONAL