© Microhard Systems Inc.
182
Appendix D: Port Forwarding
By completing the Quick Start process, a user should have been able to log in and set up the IPn3G to
work with their cellular carrier. By completing this, the modem is ready to be used to access the internet
and provide mobile connectivity. However, one of the main applications of the IPn3G is to access
connected devices remotely. In order to do this, the IPn3G must be told how to deal with incoming traffic,
where to send it to. To accomplish this there are three options :
- IP-Passthrough
- Port Forwarding
- DMZ (a type of Port Forwarding)
In the previous section we illustrated how to use and setup IP-Passthrough. In this section we will talk
about port forwarding. Port forwarding is ideal when there are multiple devices connected to the IPn3G
through a switch, or if other features of the IPn3G are required (Serial Ports, Firewall, GPS, etc). In port
forwarding, the IPn3G looks at each incoming Ethernet packet on the WAN and by using the destination
port number, determines where it will send the data on the private LAN . The IPn3G does this with each
and every incoming packet.
DMZ (a form of port forwarding) is useful for situations where there are multiple devices connected to the
IPn3G, but all incoming traffic is destined for a single device. It is also popular to use DMZ in cases where
a single device is connected but several ports are forwarded and other features of the IPn3G are required,
since in pass-through mode all of these features are lost.
Consider the following example. A user has a remote location that has several devices that need to be
accessed remotely. The User at PC1 can only see the IPn3G directly using the public static IP assigned by
the wireless carrier, but not the devices behind it. In this case the IPn3G is acting a gateway between the
Cellular Network and the Local Area Network of its connected devices. Using port forwarding we can map
the way that data passes through the IPn3G.
Step 1
Log into the IPn3G (Refer to Quick Start), and ensure that the
Firewall
is enabled. This can be found under
Firewall >
General.
Also ensure that either
WAN Request
is set to Allow, which allows traffic to come in from the WAN, or that
sufficient
Rules
or
IP lists
have been setup to allow specific traffic to pass through the IPn3G. Once that is complete,
remember to “Apply” the changes.
Cellular Network/
Internet
IPn3G
WAN IP:
74.198.186.193
(Cellular Carrier)
LAN IP: 192.168.0.1
PC2: 192.168.0.20
Webserver on port 80
Wireless Cellular
Connection
PC1: Connected to
internet.
PLC/RTU: 192.168.0.30
Webserver on port 80
Modbus on port 502
IP Camera: 192.168.0.40
Webserver on Port 80
Switch