Skip to main content
Skip table of contents

Capture Traffic from Specific IPs

function Packet_CaptureSpecificIP (msg, packet)
  require('IpMatch')
  if (myIpMatch == nil) then
    -- One time only, set up the IpMatch object
    myIpMatch = IpMatch:new()
    myIpMatch:SetIP4Src("8.8.8.8") -- using example IP: google dns server
    myIpMatch:SetIP4Dst("8.8.8.8")
  end
  if (myIpMatch:MatchIP4SrcOrDst(msg)) then
    VoteForPacketCapture(msg)
  end
end
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.