1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/snort/Dockerfile

31 lines
987 B
Docker
Raw Normal View History

2015-09-02 19:58:29 +02:00
#
# Dockerfile for snort
#
2018-08-26 08:55:20 +02:00
FROM centos:7
2017-05-08 01:05:07 +02:00
MAINTAINER kev <noreply@easypi.pro>
2015-09-02 19:58:29 +02:00
2016-06-04 08:02:26 +02:00
ENV DAQ_VERSION 2.0.6
2018-08-26 08:55:20 +02:00
ENV SNORT_VERSION 2.9.11.1
ENV BASE_URL https://www.snort.org/downloads
2016-06-04 08:02:26 +02:00
RUN set -xe \
2018-08-26 08:55:20 +02:00
&& yum -y install epel-release libdnet \
&& yum -y install ${BASE_URL}/snort/daq-${DAQ_VERSION}-1.centos7.x86_64.rpm \
${BASE_URL}/snort/snort-${SNORT_VERSION}-1.centos7.x86_64.rpm \
&& curl -sSL ${BASE_URL}/community/community-rules.tar.gz | \
tar xz --strip 1 -C /etc/snort/rules/ community-rules/community.rules \
&& touch /etc/snort/rules/local.rules \
/etc/snort/rules/black_list.rules \
/etc/snort/rules/white_list.rules \
&& mkdir -p /etc/snort/so_rules \
/etc/snort/preproc_rules \
/usr/local/lib/snort_dynamicrules \
&& ln -s /usr/lib64/libdnet.so.1 /usr/local/lib/libdnet.1 \
&& yum clean all
COPY data/snort.conf /etc/snort/snort.conf
2015-09-02 19:58:29 +02:00
2015-09-03 04:08:27 +02:00
ENTRYPOINT ["snort"]
CMD ["--help"]