Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.67 KB

README.md

File metadata and controls

39 lines (23 loc) · 1.67 KB

Zeek Docker

Zeek Image:

  • Container base is debian:buster
  • Uses python 3
  • Installs the zkg packet manager

Broker Image:

  • Container base is debian:buster
  • Uses python 3
  • Has python bindings

Usage

Zeek can be scripted. Per default, it will load the script at $ZEEK_HOME/share/zeek/site/local.zeek. See also the zeek-ctl#zeek-scripts documentation.

You can mount a directory to /opt/zeek/share/zeek/site to set custom scripts for Zeek to use.

Build

$ docker build . -t fixel/zeek:latest
$ docker build . -f Dockerfile_broker --build-arg BROKER_VERSION=v1.4.0 -t fixel/zeek:broker-latest

Run

You can find a container image on docker hub: fixel/zeek

The container expects that you pass arguments to it, everything is passed to the zeek command. To listen on the interface enp0s31f6 you would run this:

$ docker run --net=host --name=zeek --rm -ti fixel/zeek -i enp0s31f6

The logs will be stored in /var/log/zeek, which is marked as docker volume. You can extract the logs by the usual means of container management.

Computation Speed Up & Clustering

Zeek IDS can only leverage one processor core. But it can be run in a worker cluster setup to share the computational costs of traffic processing. Find a docker based Zeek IDS worker cluster on github: 0ortmann/zeek-cluster, on docker hub: fixel/zeek-cluster.