diff --git a/opsec/anonymous_server_monitoring/index.html b/opsec/anonymous_server_monitoring/index.html index d5ed52e..5051de6 100644 --- a/opsec/anonymous_server_monitoring/index.html +++ b/opsec/anonymous_server_monitoring/index.html @@ -204,12 +204,43 @@

Setting up the Server

First you want to set up your central monitoring server. For ease of use and better performance we are going to colocate the prometheus collector along with grafana. +
+ +

Required installation

+ + To get started we need the following software on the machine: +
+ + +

Tor Configuration

The prometheus collector will only be accessed locally by grafana so it doesn't need to be accessible over tor. Grafana, on the other hand, does.
- Let's start with our torrc:
+ Let's start with tor's configuration, use the following commands as root: + +
+

+sudo systemctl stop tor #stop the tor service
+
+mkdir -p /var/lib/tor/auth_keys #create the client auth keys folder to store our second layer of authentication
+chmod 400 -R /var/lib/tor/auth_keys #set restrictive file permissions
+chown tor:tor -R /var/lib/tor/auth_keys # make tor owner of this folder
+
+vi /etc/tor/torrc #edit the torrc file to add content
+
+systemctl start tor #restart tor
+systemctl status tor #check that everything works
+
+ +and add the content below: +

 AutomapHostsSuffixes .onion,.exit
 DataDirectory /var/lib/tor
diff --git a/opsec/anonymous_server_monitoring/install.png b/opsec/anonymous_server_monitoring/install.png
new file mode 100644
index 0000000..f53caaa
Binary files /dev/null and b/opsec/anonymous_server_monitoring/install.png differ