1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 13:58:42 +00:00
dockerfiles/snort/Dockerfile

32 lines
1020 B
Docker
Raw Normal View History

2015-09-02 17:58:29 +00:00
#
# Dockerfile for snort
#
2018-08-26 06:55:20 +00:00
FROM centos:7
2017-05-07 23:05:07 +00:00
MAINTAINER kev <noreply@easypi.pro>
2015-09-02 17:58:29 +00:00
2016-06-04 06:02:26 +00:00
ENV DAQ_VERSION 2.0.6
2019-06-14 15:03:05 +00:00
ENV SNORT_VERSION 2.9.13
2018-08-26 06:55:20 +00:00
ENV BASE_URL https://www.snort.org/downloads
2016-06-04 06:02:26 +00:00
RUN set -xe \
2018-08-26 06:55:20 +00: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 \
2018-10-25 23:23:14 +00:00
&& mkdir -p /etc/snort/rules \
2018-08-26 06:55:20 +00:00
&& 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 17:58:29 +00:00
2015-09-03 02:08:27 +00:00
ENTRYPOINT ["snort"]
CMD ["--help"]