Skip to content

Commit 059d877

Browse files
committed
update maltrail
1 parent b99c8d4 commit 059d877

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

maltrail/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ maltrail
66

77
```bash
88
$ docker compose up -d
9-
$ curl http://127.0.0.1:8338
9+
$ curl http://127.0.0.1:8338 # admin:changeme!
1010

11+
$ less data/etc/maltrail.csv
1112
$ ping -c 1 136.161.101.53
1213
$ nslookup morphed.ru
1314

14-
$ tail -f ./data/log/$(date +"%Y-%m-%d").log
15+
$ tail -f ./data/server/log/$(date +"%Y-%m-%d").log
1516
```
1617

1718
[1]: https://github.com/stamparm/maltrail

maltrail/data/etc/maltrail.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ CHECK_HOST_DOMAINS false
138138
SHOW_DEBUG false
139139

140140
# Directory used for log storage
141-
LOG_DIR ./log/maltrail
141+
LOG_DIR ./log
142142

143143
# HTTP(s) proxy address
144144
#PROXY_ADDRESS http://192.168.5.101:8118
@@ -147,4 +147,4 @@ LOG_DIR ./log/maltrail
147147
DISABLE_CHECK_SUDO true
148148

149149
# Override default location for trail storage (~/.maltrail/trails.csv)
150-
TRAILS_FILE ./var/maltrail.csv
150+
TRAILS_FILE ./etc/maltrail.csv
File renamed without changes.
File renamed without changes.

maltrail/docker-compose.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,19 @@ services:
55
maltrail-server:
66
image: vimagick/maltrail
77
command: ./server.py -c etc/maltrail.conf
8-
container_name: maltrail-server
98
volumes:
109
- ./data/etc:/opt/maltrail/etc
11-
- ./data/log:/opt/maltrail/log
12-
- ./data/var:/opt/maltrail/var
10+
- ./data/server/log:/opt/maltrail/log
1311
network_mode: host
1412
restart: unless-stopped
1513

1614
maltrail-sensor:
1715
image: vimagick/maltrail
1816
command: ./sensor.py -c etc/maltrail.conf
19-
container_name: maltrail-sensor
2017
volumes:
2118
- ./data/etc:/opt/maltrail/etc
22-
- ./data/log:/opt/maltrail/log
23-
- ./data/var:/opt/maltrail/var
19+
- ./data/sensor/log:/opt/maltrail/log
2420
network_mode: host
21+
depends_on:
22+
- maltrail-server
2523
restart: unless-stopped

0 commit comments

Comments
 (0)