An open API service indexing awesome lists of open source software.

https://github.com/0snap/zeek-docker

Zeek IDS and Zeek-Broker Docker images
https://github.com/0snap/zeek-docker

broker broker-docker docker zeek zeek-broker zeek-docker zeek-ids

Last synced: 8 months ago
JSON representation

Zeek IDS and Zeek-Broker Docker images

Awesome Lists containing this project

README

          

Zeek Docker
===========

#### Zeek Image:

- Container base is `debian:buster`
- Uses `python 3`
- Installs the `zkg` [packet manager](https://packages.zeek.org/)

#### Broker Image:

- Container base is `debian:buster`
- Uses `python 3`
- Has python bindings

## Usage

[Zeek can be scripted](https://docs.zeek.org/en/stable/examples/scripting/index.html). Per default, it will load the script at `$ZEEK_HOME/share/zeek/site/local.zeek`. See also the [zeek-ctl#zeek-scripts](https://github.com/zeek/zeekctl#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](https://cloud.docker.com/repository/docker/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](https://github.com/0ortmann/zeek-cluster), on docker hub: [fixel/zeek-cluster](https://cloud.docker.com/u/fixel/repository/docker/fixel/zeek-cluster).