© Microhard Systems Inc.
182
5.0 AT Command Line Interface
AT+MFDMZ
Command Syntax
Get/Set firewall Port Forwarding rules
AT+MFPORTFWD[=<Name>[,<Operation>[,<Source>,<Internal IP>,<Internal Port>,<Protocol>,<External Port>]]]
Parameters:
Name: Name of Port Forwarding rule, 1 - 64 characters
Operation: ADD - Add a rule
EDIT - Edit a rule
DEL - Delete a rule
Source: 0 - WAN
1 - Carrier
2 - WIFI
Internal IP: Valid IP address
Internal Port: Valid port number, 1 - 65535
Protocol: 0 - TCP
1 - UDP
2 - TCPUDP
External Port : Valid port number, 1 - 65535
Usage:
AT+MFPORTFWD
AT+MFPORTFWD=<Name>
AT+MFPORTFWD=<Name>,DEL
AT+MFPORTFWD=<Name>,ADD,<Source>,<Internal IP>,<Internal Port>,<Protocol>,<External Port>
AT+MFPORTFWD=<Name>,EDIT,<Source>,<Internal IP>,<Internal Port>,<Protocol>,<External Port>
Description
Example
Input:
AT+MFPORTFWD=rule1,add,0,192.168.168.203,20001,0,20001<enter>
Response:
OK
Input:
AT+MFPORTFWD?
Response:
Name : rule1
Source : WAN
Internal IP : 192.168.168.203
Internat Port : 20001
Prorocol : TCP
External Port : 20001
OK