This commit is contained in:
Marco Ochse
2018-04-16 22:05:16 +00:00
parent edfd5eaa5b
commit 446880de55
9 changed files with 32 additions and 25 deletions

View File

@ -45,4 +45,4 @@ RUN apk -U --no-cache add bash \
# Run supervisor upon container start
WORKDIR /opt/glutton
CMD exec bin/server -i $(/sbin/ip address | grep '^2: ' | awk '{ print $2 }' | tr -d [:punct:]) -l /var/log/glutton/glutton.log -d true
CMD exec bin/server -i $(/sbin/ip address | grep '^2: ' | awk '{ print $2 }' | tr -d [:punct:]) -l /var/log/glutton/glutton.log

View File

@ -1,11 +1,4 @@
rules:
- match: tcp dst port 5001
type: passthrough
name: ssh
- match: tcp dst port 22 or port 2222
type: conn_handler
name: proxy_ssh
target: tcp://172.17.0.2:22
- match: tcp dst port 23 or port 2323 or port 23231
type: conn_handler
target: telnet
@ -24,15 +17,6 @@ rules:
- match: tcp dst port 5060
type: conn_handler
target: sip
- match: tcp dst port 1080
type: passthrough
name: http
- match: tcp dst port 6000 or port 7000
type: conn_handler
name: proxy_tcp
target: tcp://172.17.0.2:22
- match: tcp
type: conn_handler
target: default
- match: udp
type: drop

View File

@ -5,14 +5,10 @@ services:
# glutton service
glutton:
build: .
container_name: glutton
restart: always
network_mode: "host"
#networks:
# - glutton_local
#ports:
# - "5000:5000"
# - "22:5000"
cap_add:
- NET_ADMIN
image: "dtagdevsec/glutton:1804"