Skip to content

Commit 95d8b95

Browse files
author
esther
committed
Debian packaging
1 parent 55604ff commit 95d8b95

13 files changed

Lines changed: 883 additions & 158 deletions

admin/index.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
files:
2+
- src: suricata.yaml
3+
dst: /etc/suricata/suricata.yaml
4+
variables:
5+
- name: ISOLATED_NETWORK
6+
type: cidr_network
7+
- name: ISOLATED_INTERFACE
8+
actions:
9+
# FIXME: Check what happens when it's conditionally-skipped.
10+
# Also, try-restart exists.
11+
# https://github.com/PiRogueToolSuite/pirogue-admin/issues/17
12+
- systemctl restart suricata
13+
- src: mongoose.yaml
14+
dst: /etc/mongoose/mongoose.yaml
15+
variables:
16+
- name: ISOLATED_INTERFACE
17+
actions:
18+
- systemctl restart mongoose
19+

admin/mongoose.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
configuration:
2+
database_path: "/var/lib/mongoose/mongoose.db"
3+
extra_configuration_dir: "/var/lib/mongoose/"
4+
5+
history:
6+
max_duration_days: 14 # keep records during 14 days
7+
8+
collector:
9+
suricata:
10+
socket_path: "/run/suricata.socket"
11+
collect_alerts: true
12+
collect_netflow: false
13+
enable: true
14+
15+
nf_stream:
16+
interface: "@ISOLATED_INTERFACE@"
17+
active_timeout: 30 # 30 seconds
18+
enable: true
19+
20+
enrichment:
21+
geoip:
22+
enable: true
23+
24+
forwarder:
25+
discord:
26+
- url: https://discord.com/api/webhooks/...
27+
username: mongoose-bot
28+
avatar_url: https://example.org/avatar.png
29+
allowed_mentions:
30+
parse: [ ]
31+
enable: false
32+
33+
webhooks:
34+
- url: https://example.org/hook
35+
headers:
36+
X-API-Key: secret
37+
auth_type: header
38+
auth_token: s3cr3t
39+
auth_header_name: X-API-Key
40+
verify_ssl: true
41+
retry_count: 3
42+
retry_delay: 5.0
43+
timeout: 10.0
44+
topics: ["enriched-network-dpi", "enriched-network-alert"]
45+
enable: false

0 commit comments

Comments
 (0)