tweaking glutton, signals

This commit is contained in:
Marco Ochse
2018-04-17 13:54:57 +00:00
parent d1756fa934
commit 004af6dec7
13 changed files with 29 additions and 14 deletions

View File

@ -12,7 +12,8 @@ RUN apk -U --no-cache add bash \
iptables-dev \
libnetfilter_queue-dev \
libpcap-dev \
procps && \
procps \
upx && \
# Setup go, glutton
export GOPATH=/opt/go/ && \
@ -27,6 +28,7 @@ RUN apk -U --no-cache add bash \
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/ && \
upx /opt/glutton/bin/server && \
# Setup user, groups and configs
addgroup -g 2000 glutton && \
@ -38,7 +40,8 @@ RUN apk -U --no-cache add bash \
apk del --purge build-base \
git \
go \
g++ && \
g++ \
upx && \
rm -rf /var/cache/apk/* \
/opt/go \
/root/dist

View File

@ -1,22 +1,27 @@
# Put passthrough rules on top, drop rules on bottom, rules are applied in order (top down)
rules:
- match: udp dst port 53
type: passthrough
- match: tcp dst port 21
type: conn_handler
target: ftp
- match: tcp dst port 23 or port 2323 or port 23231
type: conn_handler
target: telnet
- match: tcp dst port 25
type: conn_handler
target: smtp
- match: tcp dst port 3389
type: conn_handler
target: rdp
- match: tcp dst port 445
type: conn_handler
target: smb
- match: tcp dst port 21
- match: tcp dst port 3389
type: conn_handler
target: ftp
target: rdp
- match: tcp dst port 5060
type: conn_handler
target: sip
- match: tcp
type: conn_handler
target: default
- match:
type: drop

2
docker/glutton/notes Normal file
View File

@ -0,0 +1,2 @@
dtagdevsec/glutton 1804 44eed3090ae5 12 hours ago 35.3 MB