EasyManua.ls Logo

Microhard Systems BulletPlus - Page 185

Microhard Systems BulletPlus
225 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
© Microhard Systems Inc. 185
5.0 AT Command Line Interface
AT+MFRULE
Command Syntax
Get/Set firewall rule.
AT+MFRULE[=<Name>[,<Operation>[,<Action>,<Source>,<Src IP Format>,<Src IP From/Subnet >,<Src IP To/Prefix>,
<Destination>,<Dest IP Format>,<Dest IP From/Subnet>,<Dest IP To/Prefix>,<Dest Port>,<Protocol>]]]
Parameters:
Name: Name of firewall rule name, 1 - 64 characters
Operation: ADD - Add a firewall rule
EDIT - Edit a firewall rule
DEL - Delete a firewall rule
Action: 0 - Accept
1 - Drop
2 - Reject
Source: 0 - LAN
1 - Independent LAN
2 - WAN
3 - Carrier
4 - WIFI
5 - None
IP Format: 0 - IP Range
1 - Subnet / Prefix
IP From/Subnet: Valid IP address. 0 - Set to blank
IP To/Prefix: Valid IP address. 0 - Set to blank; or 0 ~ 32 for Prefix
Destination: 0 - LAN
1 - Independent LAN
2 - WAN
3 - Carrier
4 - WIFI
5 - None
IP Format: 0 - IP Range
1 - Subnet / Prefix
IP From/Subnet: Valid IP address. 0 - Set to blank
IP To/Prefix: Valid IP address. 0 - Set to blank; or 0 ~ 32 for Prefix
Port/Range: Port 0 ~ 65535 or Port range specified as 100:200 format
Protocol: 0 - TCP
1 - UDP
2 - TCPUDP
3 - ICMP
4 - GRE
Description
Example
Input:
AT+MFRULE=rule1,ADD,0,3,0,0,0,5,0,0,0,34567,2<enter>
Response:
OK
Input:
AT+MFRULE?
Response:
Name : rule1
Action : ACCEPT
Source :
Src IP From :
Src IP To : 0
Destination :
Dest IP From :
Dest IP To : 0
Dest Port : 34567
Protocol : tcpudp
OK

Table of Contents

Related product manuals