Specifications
ENHANCEDIPSTACKEXTENSIONAT
COMMA
NDS
HSPA+ATCommandsReferenceGuide 260
2
Removeallchains(DROPeverything);<ip_addr>and<net_mask>hasnomeaning
inthiscase.
<ip_addr>
Stringtype,remoteaddresstobeaddedintotheACCEPTchain.Canbeanyvalid
IPaddressintheformat:xxx.xxx.xxx.xxx.
<net_mask>
Stringtype,masktobeappliedonthe<ip_addr>.CanbeanyvalidIPaddress
maskinth
eformat:xxx.xxx.xxx.xxx.
CommandreturnsOKresultcodeifsuccessful.
Note:Thefirewallappliesforincoming(listening)connectionsonly.
FirewallgeneralpolicyisDROP,thereforeallpacketsthatarenotincludedintoan
ACCEPTchainruleissilentlydiscarded.
WhenapacketcomesfromtheIPa
ddressincoming_IP,thefirewallchainrules
arescannedformatchingwiththefollowingcriteria:
incoming_IP&<net_mask>=<ip_addr>&<net_mask>
Ifcriteriaismatched,thenthepacketisacceptedandtherulescanisfinished.If
criteriaisnotmatchedforanychainthepacketissilentlydropped.
Notes
Foroutgoingconnectionsmadewith#SKTDtheremotehostisdynamicallyinsertedintotheACCEPTchainfor
theentireconnectionduration.Thereforethe#FRWLcommandisusedonlyfordefiningthe#SKTLbehavior,
decidingwhichhostsareallowedtoconnecttothelocaldevice.
Rulesarenotsavedinnon‐volatilememory.Atstartuptheruleslistisempty.
YoumustissuethiscommandbeforeestablishingadataconnectionusingtheAT#SGACTcommand.
Examples
ToacceptconnectionsonlyfromdevicesthatareontheIPaddressesrangingfrom197.158.1.1to
197.158.255.255,addthefollowingchaintothefirewall:
AT#FRWL=1,"197.158.1.1","255.255.0.0"
OK
GPRSDataVolume#GDATAVOL
Executecommandreports,foreveryactivePDPcontext,theamountofdatathelastGPRSsession(andthelast
GSMsession,ifGSMcontextisactive)receivedandtransmitted,oritreportsthetotalamountofdatareceived
andtransmittedduringallpastGPRS(andGSM)sessions,sincelastreset.
Testcomman
dreturnstherangeofsupportedvaluesforparameter<mode>.
Syntax
Command Commandtype
AT#GDATAVOL=[<mode>] Execute
AT#GDATAVOL=? Test
ParametersandValues
<mode>
0
ResetstheGPRSdatacounterforthealltheavailablePDPcontexts(1‐5)andGSM
datacounterforGSMcontext0.
1
ReportsthelastGPRSsessiondatacounterfortheallthesetPDPcontexts—that
is,allthePDPcontextswithAPNparametersetusing+CGDCONT.
AlsoreportsthelastGSMsessiondataco
unterfortheGSMcontext,ifset