update latest snort2 version
This commit is contained in:
parent
0bab9298d0
commit
5271ab4a94
@ -1 +1,3 @@
|
|||||||
Snort 2 in a docker container
|
Snort 2 in a docker container
|
||||||
|
|
||||||
|
Forked from [snort2-docker](https://github.com/Cisco-Talos/snort2-docker)
|
||||||
|
19
docker-compose.yml
Normal file
19
docker-compose.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
snort2:
|
||||||
|
image: snort2
|
||||||
|
build: ./docker
|
||||||
|
hostname: snort2
|
||||||
|
container_name: snort2
|
||||||
|
restart: always
|
||||||
|
command: >
|
||||||
|
/bin/bash -c "sleep 20s
|
||||||
|
&& snort -c /etc/snort/snort.conf"
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
- NET_RAW
|
||||||
|
volumes:
|
||||||
|
- ./docker/etc:/etc/snort
|
||||||
|
- ./log:/var/log/snort
|
||||||
|
network_mode: host
|
@ -1,5 +1,5 @@
|
|||||||
FROM debian:buster-slim
|
FROM debian:bookworm-slim
|
||||||
ENV VERSION 2.9.19
|
ENV VERSION 2.9.20
|
||||||
|
|
||||||
RUN mkdir -p /root/pcaps/
|
RUN mkdir -p /root/pcaps/
|
||||||
COPY labs /root/
|
COPY labs /root/
|
||||||
@ -8,6 +8,7 @@ WORKDIR /root/src/
|
|||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get -y install \
|
apt-get -y install \
|
||||||
|
file \
|
||||||
build-essential \
|
build-essential \
|
||||||
vim \
|
vim \
|
||||||
curl \
|
curl \
|
||||||
@ -29,14 +30,15 @@ RUN apt-get update && \
|
|||||||
liblzma-dev \
|
liblzma-dev \
|
||||||
luajit \
|
luajit \
|
||||||
libluajit-5.1-dev \
|
libluajit-5.1-dev \
|
||||||
libssl1.1 \
|
libssl3 \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
|
libntirpc-dev \
|
||||||
tcpreplay && \
|
tcpreplay && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
curl -L -O https://snort.org/downloads/snort/snort-$VERSION.tar.gz && \
|
curl -L -O https://snort.org/downloads/snort/snort-$VERSION.tar.gz && \
|
||||||
tar xf ./snort-$VERSION.tar.gz && \
|
tar xf ./snort-$VERSION.tar.gz && \
|
||||||
cd ./snort-$VERSION && \
|
cd ./snort-$VERSION && \
|
||||||
./configure --enable-sourcefire --enable-open-appid && \
|
./configure CFLAGS="-I/usr/include/ntirpc/" --enable-sourcefire --enable-open-appid && \
|
||||||
make -j$(nproc) && \
|
make -j$(nproc) && \
|
||||||
make install && \
|
make install && \
|
||||||
ldconfig && \
|
ldconfig && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user