nat command (Network Address Translation)
Description
local_acl (-acl) - ACL local networks list and public address
argument: $NAME [public_addr|dhcp IFNAME]
[-exclude $DSTACL] [enable|disable|delete]
maxlinks (-ml ) - maximal links number
argument: NUM
ignore_incoming (-i ) - ignore unknown incoming connections
argument: [yes|no]
same_ports (-sp ) - try to keep original port numbers for connections
argument: [yes|no]
verbose (-v ) - verbose mode, dump packet information
argument: [yes|no]
stat (-s ) - NAT statistic
redirect_port (-rpo) - redirect a port (or ports) for incoming traffic
argument: tcp|udp|ras|cs local_addr:local_port_range[,...]
[public_addr:]public_port_range
[remote_addr[:remote_port_range]]
redirect_proto (-rpr) - redirect packets of a given proto
argument: proto local_addr [public_addr [remote_addr]]
redirect_address (-ra ) - define mapping between local and public addresses
argument: local_addr[,...] public_addr
proxy_rule (-pr ) - add transparent proxying / destination NAT
argument:
[type encode_ip_hdr|encode_tcp_stream]
[port xxxx]
[server [a.b.c.d]:yyyy]
[proto tcp|udp] [src <addr>[/mask]] [dst <addr>[/mask]]
default_h323 (-dh ) - use default H.323 ports for outgoing connections
argument: [yes|no]
h323_destination (-hd ) - describe H.323 outgoing connection
argument: ras|cs remote_addr[:remote_port]
[local_addr[:local_port]]
proxy_only (-po ) - transparent proxy only, no aliasing
argument: [yes|no]
skinny_port (-skp) - set the TCP port for the Skinny Station protocol
argument: port
del (-del) - delete nat rule
argument: rule_number
enable (ena ) - enable nat translation
disable (disa) - disable nat translationParameters
Parameter
Description
Packet redirection
Parameter
Description
Examples
Last updated