Skip to content

Commit

Permalink
update maltrail
Browse files Browse the repository at this point in the history
  • Loading branch information
vimagick committed Mar 4, 2024
1 parent b99c8d4 commit 059d877
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
5 changes: 3 additions & 2 deletions maltrail/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ maltrail

```bash
$ docker compose up -d
$ curl http://127.0.0.1:8338
$ curl http://127.0.0.1:8338 # admin:changeme!

$ less data/etc/maltrail.csv
$ ping -c 1 136.161.101.53
$ nslookup morphed.ru

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

[1]: https://github.com/stamparm/maltrail
4 changes: 2 additions & 2 deletions maltrail/data/etc/maltrail.conf
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ CHECK_HOST_DOMAINS false
SHOW_DEBUG false

# Directory used for log storage
LOG_DIR ./log/maltrail
LOG_DIR ./log

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

# Override default location for trail storage (~/.maltrail/trails.csv)
TRAILS_FILE ./var/maltrail.csv
TRAILS_FILE ./etc/maltrail.csv
File renamed without changes.
File renamed without changes.
10 changes: 4 additions & 6 deletions maltrail/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,19 @@ services:
maltrail-server:
image: vimagick/maltrail
command: ./server.py -c etc/maltrail.conf
container_name: maltrail-server
volumes:
- ./data/etc:/opt/maltrail/etc
- ./data/log:/opt/maltrail/log
- ./data/var:/opt/maltrail/var
- ./data/server/log:/opt/maltrail/log
network_mode: host
restart: unless-stopped

maltrail-sensor:
image: vimagick/maltrail
command: ./sensor.py -c etc/maltrail.conf
container_name: maltrail-sensor
volumes:
- ./data/etc:/opt/maltrail/etc
- ./data/log:/opt/maltrail/log
- ./data/var:/opt/maltrail/var
- ./data/sensor/log:/opt/maltrail/log
network_mode: host
depends_on:
- maltrail-server
restart: unless-stopped

0 comments on commit 059d877

Please sign in to comment.