]> git.somenet.org - ctf/pub/adminscripts.git/blob - reset_ntopng.sh
GITOLITE.txt
[ctf/pub/adminscripts.git] / reset_ntopng.sh
1 #!/bin/bash
2 #
3 # Copyright 2015 by Jan Vales <jan@jvales.net> (Someone <someone@somenet.org>)
4 # send me your changes. credit author(s). do not publish. share alike.
5 # to be done: find a suitable licence text.
6 #
7 # Script to reset nTOPng.
8 #
9
10 systemctl kill ntopng.service
11
12 redis-cli flushall
13 echo 'SET ntopng.user.admin.allowed_nets "0.0.0.0/0,::/0"' |redis-cli
14 echo 'SET ntopng.user.admin.full_name "Just someone :)"' |redis-cli
15 echo 'SET ntopng.user.admin.group "administrator"' |redis-cli
16 echo 'SET ntopng.user.admin.password "86aed7432380bcfbf3fcc0a780d800b3"' |redis-cli
17 echo 'SET ntopng.user.user.allowed_nets "0.0.0.0/0,::/0"' |redis-cli
18 echo 'SET ntopng.user.user.full_name "Someone else :)"' |redis-cli
19 echo 'SET ntopng.user.user.group "standard"' |redis-cli
20 echo 'SET ntopng.user.user.password "a9bfaef562396c30abed90577ebc00c1"' |redis-cli
21
22 echo 'SET ntopng.prefs.eth0.name "eth0: inside (client lan)"' |redis-cli
23 echo 'SET ntopng.prefs.eth1.name "eth1: outside (internet)"' |redis-cli
24 echo 'SET ntopng.prefs.eth2.name "eth2: vuln-vm(s) <-> tun"' |redis-cli
25 echo 'SET ntopng.prefs.eth3.name "eth3: vuln-vm(s) <-> inside"' |redis-cli
26
27 rm -rf /var/tmp/ntopng/*
28 systemctl restart ntopng.service
29