mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-20 06:02:24 +00:00
hardening
This commit is contained in:
parent
114997308b
commit
77cd9df8f7
2 changed files with 5 additions and 2 deletions
|
@ -11,6 +11,7 @@ RUN apk -U --no-cache add \
|
|||
g++ \
|
||||
iptables-dev \
|
||||
libnetfilter_queue-dev \
|
||||
libcap \
|
||||
libpcap-dev && \
|
||||
|
||||
# Setup go, glutton
|
||||
|
@ -26,6 +27,8 @@ RUN apk -U --no-cache add \
|
|||
mv /opt/go/src/github.com/mushorg/glutton/bin /opt/glutton/ && \
|
||||
mv /opt/go/src/github.com/mushorg/glutton/config /opt/glutton/ && \
|
||||
mv /opt/go/src/github.com/mushorg/glutton/rules /opt/glutton/ && \
|
||||
setcap cap_net_admin,cap_net_raw=+ep /opt/glutton/bin/server && \
|
||||
setcap cap_net_admin,cap_net_raw=+ep /sbin/xtables-multi && \
|
||||
|
||||
# Setup user, groups and configs
|
||||
addgroup -g 2000 glutton && \
|
||||
|
@ -44,4 +47,5 @@ RUN apk -U --no-cache add \
|
|||
|
||||
# Start glutton
|
||||
WORKDIR /opt/glutton
|
||||
USER glutton:glutton
|
||||
CMD exec bin/server -i $(/sbin/ip address | grep '^2: ' | awk '{ print $2 }' | tr -d [:punct:]) -l /var/log/glutton/glutton.log
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
# For docker-compose ...
|
||||
version: '2.2'
|
||||
version: '2.3'
|
||||
|
||||
services:
|
||||
|
||||
|
|
Loading…
Reference in a new issue