function Flow_ClassifyCustomNetworkTraffic (dpiMsg, ruleEngine) require 'LOG' require 'IPv4LanDefine' if (ipRange == nil) then ipRange = IPv4LanDefine:new('10.0.0.0', '10.0.0.10') end if IsFinalLongFlow(dpiMsg) or IsFinalShortFlow(dpiMsg) then local destip = GetDstIP4Int(dpiMsg) local srcip = GetSrcIP4Int(dpiMsg) if (ipRange:IsInLan(destip) or ipRange:IsInLan(srcip)) then EZINFO("Local network traffic found, srcip: " .. GetSrcIP4String(dpiMsg) .. ", dstip: " .. GetDstIP4String(dpiMsg)) end end end |