mirror of
https://github.com/Lanakod-Networks/snort-docker.git
synced 2025-07-04 13:26:38 +03:00
Added snort rules
This commit is contained in:
parent
c3e12eb154
commit
b389e32dca
19
Dockerfile
19
Dockerfile
@ -140,7 +140,22 @@ RUN ln -s /usr/local/lib/libtcmalloc.so.4 /lib/ && \
|
||||
#COPY --from=builder ${PREFIX_DIR}/lib64/ ${PREFIX_DIR}/lib64/
|
||||
#COPY --from=builder ${PREFIX_DIR}/bin/ /bin/
|
||||
|
||||
WORKDIR /
|
||||
WORKDIR $HOME
|
||||
RUN mkdir ${PREFIX_DIR}/etc/rules && \
|
||||
mkdir ${PREFIX_DIR}/etc/so_rules/ && \
|
||||
mkdir ${PREFIX_DIR}/etc/lists/ && \
|
||||
touch ${PREFIX_DIR}/etc/rules/local.rules && \
|
||||
touch ${PREFIX_DIR}/etc/lists/default.blocklist && \
|
||||
mkdir /var/log/snort
|
||||
|
||||
COPY snort3-community-rules.tar ${HOME}/snort3-community-rules.tar
|
||||
|
||||
RUN tar -xvzf snort3-community-rules.tar && \
|
||||
cd snort3-community-rules && \
|
||||
cp * ${PREFIX_DIR}/etc/rules/
|
||||
|
||||
RUN snort --version
|
||||
|
||||
ENTRYPOINT ["tail", "-f", "/dev/null"]
|
||||
ENTRYPOINT ["snort", "-c", "/usr/local/etc/snort/snort.lua", "-R", "/usr/local/etc/rules/snort3-community.rules", "-i", "wl01", "-s", "65535", "-k", "none"]
|
||||
|
||||
#ENTRYPOINT ["tail", "-f", "/dev/null"]
|
BIN
snort3-community-rules.tar
Normal file
BIN
snort3-community-rules.tar
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user