General Router FAQPort Forwarding |
When running NAT (Network Address Translation) the Vigor router takes the single public IP address, allocated by your ISP and automatically passes data between it and the local PCs on your private local network. However, with only one address visible to the outside world, external users cannot address specific local PCs inside your network.
Therefore, an 'unsolicited' TCP/IP packet to your Internet IP address would arrive at your router but then the router wouldn’t know who (or what), locally, the packet is intended for.
In order to run a local server, for example a web server which is visible to the outside world, you have to set up a port forward rule whereby an incoming packet on a particular TCP/UDP port is kept open and forwarded to a specific local PC. Each service (http, ftp, smtp etc.) uses a different port number. This procedure is commonly used if you are running an internal SMTP mail server to which your ISP sends email to.
Once you have set up this type of 'port forwarding' rule. External users, i.e. people elsewhere on the internet can then access your internal server via your public ip address. In the case of a web server, for example, they can enter http:\\213.103.123.11 into their browser, if that was your public IP address. If you are using a Dynamic DNS service (see earlier) then this would work with the port forwarding too.
From the main router menu, select the NAT Setup menu (under Advanced Setup) and then Open Ports Setup and the screen shown below will appear. It is important that you only open the ports that you need to, rather than open/forward all ports, as otherwise you compromise the NAT intrinsic security.
The above method uses 'Open Ports Setup' in which an external port number is redirected to the same port number on an internet LAN PC. In some circumstances you might want to translate from one port to another, in which case you can use Port Redirection instead. This redirects a single port, as shown below. You can use the same port number in both boxes, in which case the facility is equivalent to Open Ports, giving you more capacity.
When using NAT, you have only one public IP address. This means that incoming data which is not in response to an outgoing request from a local client does not know where to go. Port Forwarding can be used to direct UDP/TCP traffic on particular ports to specified internal clients. However other IP protocols, for example Protocols 50 (ESP) and 51 (AH) do not have port numbers so there is no unique detail to decide which local client to forward the data to.
In situations like this, the Vigor has a facilility called DMZ. In the DMZ setup, you can specify a single local client (private IP address) to which ALL unsolicited data on all protocols should be forwarded. Regular web browsing and other such actitivty from other clients will continue to work.
With a DMZ, the inherrent security properties of NAT are somewhat bypassed, so you may want to consider adding addional filter rules or a secondary firewall.
Another important point is that although a DMZ will pass all data through, some protocols are still not NAT friendly. The 'AH' extension to IPSec is designed in such a way that it prevents Network Address Translation - the header encodes the source IP address, which in this case would be your private IP address. The receiving end will see the packet as having come from your public IP address and thus reject the packet. AH protocol therefore will not work. ESP is more tolerant.
In the previous section, we discussed port mapping to allow internal network devices (e.g. servers) to be accessible from the Internet. The Vigor router actually supports three variants of port mapping methods, as follows :
Port Redirection > Open Ports > DMZ
For example, if an incoming packet's port number matches a rule in both 'Port Redirection' and 'Open Ports' then the packet will be forwarded onto the local address defined in 'Port Redirection'.
As the router has its own built-in web server for the configuration screens, if you want access to that router remotely (from the WAN side) and to a web server behind that router, you will have to change the router's http 'port' to something other than the default (which is Port 80). You can change the admin port from the Management Setup menu:
You might choose port 8080 instead; you must then access the admin screens by suffixing the normal IP address with :8080 (e.g. http://192.168.1.1:8080).
NOTICE : This document is © SEG Communications and may not be distributed without specific written consent. Information and products subject to change at any time without notice.