![](/images/new-backgrounds/1202842/202842481x1.webp)
CONFIG Commands
To set up NAT pinholes, you identify the type(s) of traffic you want to redirect by port num- ber, and you specify the internal host to which each specified type of traffic should be directed.
The following list identifies protocol type and port number for common TCP/IP protocols:
•FTP (TCP 21)
•telnet (TCP 23)
•SMTP (TCP 25),
•TFTP (UDP 69)
•SNMP (TCP 161, UDP 161)
set pinhole name name
Specifies the identifier for the entry in the router's pinhole table. You can name pinhole table entries sequentially (1, 2, 3), by port number (21, 80, 23), by protocol, or by some other naming scheme.
set pinhole name name protocol-select { tcp udp }
Specifies the type of protocol being redirected.
set pinhole name name external-port-start [ 0 - 49151 ]
Specifies the first port number in the range being translated.
set pinhole name name external-port-end [ 0 - 49151 ]
Specifies the last port number in the range being translated.
set pinhole name name internal-ip internal-ip
Specifies the IP address of the internal host to which traffic of the specified type should be transferred.
241