User Guide

82 Chapter 4. Configuring Special Features
Server Configuration
This section is intended for users and network administrators who wish to allow WAN access to a Web
server, FTP server, SMTP server, etc., on their local LAN, while using NAT.
NAT needs a way to identify which local PC [local IP address(es)] should receive these server requests.
The servers can be configured on a
per-remote-router
basis as well as
globally.
!
!!
!
Remote Commands
The following two commands are used to enable/disable a local IP address (on your LAN) as the server
for a particular protocol for the remote router
<remoteName
>.
remote addServer
<
ipaddr
> |discard|me <
protocolid
> tcp|udp <
first port
> ftp|telnet|smtp|snmp|http
[<
last port
>[<
first private port
>]] <
remoteName
>
remote delServer
<
ipaddr
> |discard|me <
protocolid
> tcp|udp <
first port
> ftp|telnet|smtp|snmp|http
[<
last port
>[<
first private port
>]] <
remoteName
>
where
first port:
this is the first or only port as seen by the remote end.
last port:
if specified, this is used with <
first port
> to specify a range of ports as seen by the remote end
for the server on your LAN.
first private port:
if specified, this is a port remapping of the incoming request from the remote end.
first port
maps to
first private port
.
first port
+ 1 maps to
first private port
+ 1.
last port
maps to
first private port
+
last port
-
first port
first port
through
last port
are the ports as seen by the remote end.
first private port
through
first private port
+
last port
-
first port
are the equivalent ports through which
the server on your local LAN will receive the request.
This command is used to view all of the remote entries, including the changes.
remote list <
remoteName
>
Remember to type
save
to make the changes persistent across boots.
Example 1:
Assume that the local LAN network is 192.168.1.0 255.255.255.0. The following commands are typed to
enable a Telnet server on the local LAN with the IP address 192.168.1.3, and an FTP server with the IP
address 192.168.1.2.
remote addServer 192.168.1.3 tcp telnet router1
remote addServer 192.168.1.2 tcp ftp router1
When the local router receives a request from
router1
to communicate with the local Telnet server, the
local router will send the request to 192.168.1.3. If
router1
asks to talk to the local FTP server, the local
router will send the request to 192.168.1.2.
Example 2:
Assume that the local LAN network is 192.168.1.0 255.255.255.0. When the port value of 0 (zero) is
used, it directs all ports of the specified protocol to the IP address specified.
remote addServer 192.168.1.4 tcp 0 router1