Bro IDS worker cluster. https://www.bro.org/sphinx/cluster/index.html
748
Bro IDS can be used in a worker cluster setup. Mutliple slave nodes share the workload of traffic analysis and report to a logger node. The cluster is managed in a centralized fashion by a dedicated manager node.
Official Bro IDS cluster documentation
Bro uses ssh to manage the nodes. The manager node needs to ssh into all slave nodes it wants to manage. Therefore:
sshdI intend to use this setup on an offline demo environment. I do not have to be concerned about access violations whatsoever. Thus it is ok for me to have fixed ssh keys and that is why I put them on github.
If you want to reuse parts of this project make sure to change the keys and how they are stored + distributed.
Images ship with supervisord (nodaemon). It wraps the sshd and bro processes. Images build against latest bro master.
Pre-built images can be found on dockerhub: https://hub.docker.com/r/fixel/bro-cluster/tags/ (I had to abuse tags to get in the same repo)
See the docker-compose.yml and manager/config/node.cfg file. All nodes in the bro cluster must be resolvable for the manager (IP or hostname).
Run a minimalistic local cluster of 2 workers, 1 proxy and 1 master (without dedicated logger) with docker-compose
$ docker-compose up # start the whole thing. daemonize with -d
$ docker-compose down # (in same directory) tear down cluster, throw away containers
Toy around with it, for example docker inspect bro-cluster_worker1_1, find the IP and request some port there (locally!). When you now exec into the manager container you should see your request to the worker in the manager logs (current/conn.log)
Bro can be scripted. Per default, it will load the script at $BRO_HOME/share/bro/site/local.bro. See also the broctl#bro-scripts documentation.
To add custom scripts just mount a volume into the manager container. See the docker-compose.yml for an example. The manager will populate the scripts to all workers.
Content type
Image
Digest
Size
239 MB
Last updated
almost 8 years ago
docker pull fixel/bro-cluster:arm64v8-manager