Chapter3debug
Parameter
Description
dip2
Thissetstheendaddressofpacketdestination
IP.
<ipaddress4>Thisisonestring,indicatingIPaddress,in
formatofA.B.C.D.
ipproto
Thissetsprotocoltype.Threeoptionsare
available:tcp,udpandicmp.
tcp|udp|icmpHeretcpindicatesTCPprotocol,udpindicates
UDPprotocolandicmpindicatesICMP
protocol.Whenselectingtcporudp,useralso
needstosetsourceportanddestinationport
ofpacket;whenselectingICMP,userneeds
tosetICMPtypecode.
sport1
Thissetsthestartportofpacketsource
port(thisparameterneedsbeingsetwhen
selectingtcporudpasprotocoltype).
<port1>
Thisisonenumber,indicatingportid.
sport2
Thissetstheendportofpacketsource
port(thisparameterneedsbeingsetwhen
selectingtcporudpasprotocoltype).
<port2>
Thisisonenumber,indicatingportid.
dport1
Thissetsthestartportofpacketdestination
port(thisparameterneedsbeingsetwhen
selectingtcporudpasprotocoltype).
<port3>
Thisisonenumber,indicatingportid.
dport2
Thissetstheendportofpacketdestination
port(thisparameterneedsbeingsetwhen
selectingtcporudpasprotocoltype).
<port4>
Thisisonenumber,indicatingportid.
type1
ThissetsthestartportofICMPport(this
parameterneedsbeingsetwhenselecting
ICMPasprotocoltype).
<port5>
Thisisonenumber,indicatingICMPportid.
type2
ThissetstheendportofICMPport(this
parameterneedsbeingsetwhenselecting
ICMPasprotocoltype).
<port6>
Thisisonenumber,indicatingICMPportid.
ExampleT oaddonepacketcaptureruleoneth0port,executethe
followingcommand.Inthisrule,themaxlengthofpacket
is500K,tcppacketssentfrom192.168.83.2-192.168.83.200
(MAC00:08:2E:1A:06:80)to192.168.1.163-192.168.1.225
(MAC00:08:2D:1A:19:80)needtobecapturedwithsourceport
tobe4000-5000anddestinationporttobe8000-9000.
#dbfiltaddmaxlen500deveth0smac00:08:2E:1A:06:80
dmac00:08:2D:1A:19:80l2protoipsip1192.168.83.2sip2
192.168.83.200dip1192.168.1.163dip1192.168.1.225
ipprototcpsport14000sport25000dport18000dport2
9000
ConfidentialandProprietaryInformationofZTECORPORATION25