mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00

By default, each certificate is now output only once per hour. This also should work in cluster mode, where we use the net broker-table-syncing feature to distribute the information about already seen certificates across the entire cluster. Log caching is also pretty configureable and can be changed using a range of confiuration options and hooks. Note that this is currently completely separate from X509 events caching, which prevents duplicate parsing of X509 certificates.
24 lines
585 B
Text
24 lines
585 B
Text
# @TEST-EXEC: zeek -r $TRACES/globus-url-copy.trace %INPUT
|
|
# @TEST-EXEC: btest-diff notice.log
|
|
# @TEST-EXEC: btest-diff conn.log
|
|
# @TEST-EXEC: btest-diff ssl.log
|
|
# @TEST-EXEC: btest-diff x509.log
|
|
|
|
@load base/protocols/ftp/gridftp
|
|
|
|
module GridFTP;
|
|
|
|
redef size_threshold = 2;
|
|
|
|
redef X509::relog_known_certificates_after = 0secs;
|
|
|
|
redef enum Notice::Type += {
|
|
Data_Channel
|
|
};
|
|
|
|
event GridFTP::data_channel_detected(c: connection)
|
|
{
|
|
local msg = fmt("GridFTP data channel over threshold %d bytes",
|
|
size_threshold);
|
|
NOTICE([$note=Data_Channel, $msg=msg, $conn=c]);
|
|
}
|