mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-06-02 23:07:27 +02:00
add snort
This commit is contained in:
parent
3399f128c7
commit
15aeeee0af
51
snort/Dockerfile
Normal file
51
snort/Dockerfile
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
#
|
||||||
|
# Dockerfile for snort
|
||||||
|
#
|
||||||
|
|
||||||
|
FROM debian
|
||||||
|
MAINTAINER kev <noreply@datageek.info>
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y build-essential \
|
||||||
|
bison \
|
||||||
|
curl \
|
||||||
|
flex \
|
||||||
|
libdnet \
|
||||||
|
libdnet-dev \
|
||||||
|
libpcap0.8 \
|
||||||
|
libpcap-dev \
|
||||||
|
libpcre3 \
|
||||||
|
libpcre3-dev \
|
||||||
|
zlib1g \
|
||||||
|
zlib1g-dev \
|
||||||
|
&& mkdir daq \
|
||||||
|
&& curl -sSL https://snort.org/downloads/snort/daq-2.0.6.tar.gz | tar xz --strip 1 -C daq \
|
||||||
|
&& cd daq \
|
||||||
|
&& ./configure \
|
||||||
|
&& make install \
|
||||||
|
&& cd .. \
|
||||||
|
&& rm -rf daq \
|
||||||
|
&& mkdir libdnet \
|
||||||
|
&& curl -sSL https://github.com/dugsong/libdnet/archive/libdnet-1.12.tar.gz | tar xz --strip 1 -C libdnet \
|
||||||
|
&& cd libdnet \
|
||||||
|
&& ./configure \
|
||||||
|
&& make install \
|
||||||
|
&& (cd /usr/local/lib && ln -s libdnet.1 libdnet.so.1) \
|
||||||
|
&& cd .. \
|
||||||
|
&& rm -rf libdnet \
|
||||||
|
&& mkdir snort \
|
||||||
|
&& curl -sSL https://snort.org/downloads/snort/snort-2.9.7.5.tar.gz | tar xz --strip 1 -C snort \
|
||||||
|
&& cd snort \
|
||||||
|
&& ./configure --enable-sourcefire \
|
||||||
|
&& make install \
|
||||||
|
&& cd .. \
|
||||||
|
&& rm -rf snort \
|
||||||
|
&& apt-get purge -y --auto-remove build-essential \
|
||||||
|
bison \
|
||||||
|
flex \
|
||||||
|
libdnet-dev \
|
||||||
|
libpcap-dev \
|
||||||
|
libpcre3-dev \
|
||||||
|
zlib1g-dev \
|
||||||
|
|
||||||
|
CMD ["snort", "--help"]
|
9
snort/README.md
Normal file
9
snort/README.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
snort (WIP)
|
||||||
|
===========
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
[`Snort`][1] is an open source intrusion prevention system capable of real-time
|
||||||
|
traffic analysis and packet logging.
|
||||||
|
|
||||||
|
[1]: https://snort.org/
|
Loading…
x
Reference in New Issue
Block a user