<type>
1=TCP, 2=UDP, 3=GRE Local End, 4=GRE Remote End
<count>
Number of simultaneous TCP/UDP sessions.
<listenport>
Port on which to listen.
<remoteport>
Remote port to connect to.
<remoteaddress>
Remote address to connect to.
To erase a proxy line, one would create a new proxy with the <
id
> to be erased for the
first argument followed by “0” for all other arguments. E.g.:
AT+LCPROX=<
id
>,0,0,0,0,0.0.0.0
Proxy Examples:
NOTE: these examples assume that the modem is connected via a crossover
ethernet cable directly to a computer holding an IP of: 192.168.1.35 and the
cellular “antenna IP” of the modem is: 166.139.64.245.
Example #1 (Incoming Connections):
AT+LCPROX=1,1,1,23,23,192.168.1.35
This command will set the modem to accept incoming connections to the
“antenna IP” (166.139.64.245). When the modem detects an incoming packet it
first checks what port number it is coming in over. If it sees port 23 as defined in
the proxy above, the modem will perform Network Address Translation (NAT)
and send the packet to the port and IP specified in the proxy (command line
argument numbers 5 and 6).
Example #2 (Outbound Connections):
AT+LCPROX=1,1,3,80,80,209.42.39.164
This command will set the modem to perform an outbound NAT to the IP and
port specified. To activate the proxy for outbound traffic, simply access the
ethernet port from your computer. To further illustrate, the IP 209.42.39.164 is
the www.land-cellular.com website. If the modem is configured as above and is
in Online State or Online Command State, you could access the modem by
opening a web browser and pointing it to: http://192.168.1.222, which is the
default setting for the ethernet port. When the modem sees an incoming packet, it
examines what port it is going to. When it sees port 80, which is the port on
which most standard HTTP web traffic occurs, it looks in the proxy for
instructions where to send the packet. The proxy tells the modem to forward the
packet to 209.42.39.164 on port 80. The modem will transmit the packet from the
“antenna IP” to the server and establish a two-way TCP connection. When the
server responds, the data is automatically forwarded to the ethernet port.
Example #3 (GRE Connections):
AT+LCPROX=1,1,1,1723,1723,66.139.73.113
AT+LCPROX=2,3,1,0,0,192.168.1.35
AT+LCPROX=3,4,1,0,0,66.139.73.113
To establish a GRE tunnel, you must specify an IP to go to in the same method
that you would for a standard TCP connection as indicated in Example #2 above.
The only difference is that the port will always be
1723
. This tells the modem