Skip to content

Modifying TDS ports for Zeek in 2.4 #14045

Answered by cm-ops
oneCrazyAdmin asked this question in 2.4
Discussion options

You must be logged in to vote

Use a policy script to do this. Place the script in /opt/so/saltstack/local/salt/zeek/policy/custom/filters. For example, mysql_ports.zeek

The script to place, if you are editing the MYSQL analyzer (change the ports to whatever you want to add):

const ports = { 12345/tcp, 12346/tcp };

event zeek_init() &priority=5
	{
	Analyzer::register_for_ports(Analyzer::ANALYZER_MYSQL, ports);
	}

Also, add you __load__.zeek file with @load ./mysql_ports.zeek

In SOC --> Administration --> Configuration --> zeek --> config --> local --> load add custom/filters/mysql_ports Then synchronize your grid.

https://docs.zeek.org/en/v6.0.9/scripts/base/frameworks/analyzer/main.zeek.html#id-Analyzer::register_fo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@oneCrazyAdmin
Comment options

Answer selected by cm-ops
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
2.4
Labels
None yet
2 participants