mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-24 06:28:23 +01:00
add bro
This commit is contained in:
20
bro/Dockerfile
Normal file
20
bro/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
#
|
||||
# Dockerfile for bro
|
||||
#
|
||||
|
||||
FROM debian:jessie
|
||||
MAINTAINER kev <noreply@datageek.info>
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y curl \
|
||||
&& curl http://download.opensuse.org/repositories/network:bro/Debian_8.0/Release.key | apt-key add - \
|
||||
&& echo 'deb http://download.opensuse.org/repositories/network:/bro/Debian_8.0/ /' > /etc/apt/sources.list.d/bro.list \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y bro \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN echo 'export PATH=/opt/bro/bin:$PATH' >> /root/.bashrc
|
||||
|
||||
WORKDIR /opt/bro/logs
|
||||
|
||||
ENTRYPOINT bro -i
|
||||
CMD ${DEVICE:-eth0}
|
||||
29
bro/README.md
Normal file
29
bro/README.md
Normal file
@@ -0,0 +1,29 @@
|
||||
`Bro` is a powerful system that on top of the functionality it provides out of
|
||||
the box, also offers the flexibility to customize analysis pretty much
|
||||
arbitrarily. We provide a range of documentation material ranging from
|
||||
introductory material to get you started, to full references of Bro’s various
|
||||
frameworks.
|
||||
|
||||
## docker-compose.yml
|
||||
|
||||
```
|
||||
bro:
|
||||
image: vimagick/bro
|
||||
volumes:
|
||||
- ./logs:/opt/bro/logs
|
||||
environment:
|
||||
- DEVICE=eth0
|
||||
net: host
|
||||
```
|
||||
|
||||
## up and running
|
||||
|
||||
```
|
||||
$ cd ~/fig/bro/
|
||||
|
||||
$ docker-compose up -d
|
||||
|
||||
$ docker exec -it bro_bro_1 bash
|
||||
>>> tail -n +1 -f http.log | bro-cut -d ts user_agent
|
||||
>>> exit
|
||||
```
|
||||
Reference in New Issue
Block a user