mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 09:08:20 +00:00
problem: gridftp threshold is being applied to all connections
The bytes_threshold_crossed event in the gridftp analyzer is not first checking to see if the connection passed the initial criteria. This causes the script to add the gridftp-data service to any connection that crosses a threshold that is the same as or greater than the gridftp size_threshold.
This commit is contained in:
parent
8403fd9f94
commit
6b864d5dd2
1 changed files with 2 additions and 0 deletions
|
@ -74,6 +74,8 @@ event ConnThreshold::bytes_threshold_crossed(c: connection, threshold: count, is
|
||||||
{
|
{
|
||||||
if ( threshold < size_threshold || "gridftp-data" in c$service || c$duration > max_time )
|
if ( threshold < size_threshold || "gridftp-data" in c$service || c$duration > max_time )
|
||||||
return;
|
return;
|
||||||
|
if ( ! data_channel_initial_criteria(c) )
|
||||||
|
return;
|
||||||
|
|
||||||
add c$service["gridftp-data"];
|
add c$service["gridftp-data"];
|
||||||
event GridFTP::data_channel_detected(c);
|
event GridFTP::data_channel_detected(c);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue