-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
46 lines (37 loc) · 971 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM ubuntu:latest
MAINTAINER [email protected]
# Install latest scapy (with all its dependencies)
RUN apt-get update && \
apt-get install -y \
zip \
unzip \
python \
python-pyx \
python-matplotlib \
tcpdump \
python-crypto \
graphviz \
imagemagick \
gnuplot \
python-gnuplot \
libpcap-dev && apt-get clean
ADD https://github.com/secdev/scapy/archive/master.zip /tmp/master.zip
RUN unzip /tmp/master.zip -d /usr/local/ && rm /tmp/master.zip
RUN apt-get update && \
apt-get -qq -y install \
bridge-utils \
net-tools \
iptables \
python \
tcpdump \
build-essential \
python-dev \
libnetfilter-queue-dev \
python-pip
RUN pip install scapy==2.3.2
RUN pip install NetfilterQueue
# Force matplotlib to generate the font cache
RUN python -c 'import matplotlib.pyplot'
ADD ./nfqueue_listener.py /nfqueue_listener.py
ENV QUEUE_NUM=1
ENTRYPOINT python nfqueue_listener.py