OniMon Script
OniMon - A simple Tor Relay Admin Dashboard. Python script to interface with the web dashboard.
Summary
| Latest Version | Unknown |
|---|---|
| License | Unknown |
| CI Status | Failing |
| Stars | 2 |
| Forks | 0 |
| Open Issues | 0 |
| Last Commit | 2017-06-04 |
| Downloads | 0 |
| Last Indexed | 2026-09-06 06:05 |
Tags
Installation
nimble install OniMon Script
choosenim install OniMon Script
git clone https://gitlab.com/onimon/script
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| OniMon Script | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://gitlab.com/onimon/script |
|---|---|
| Homepage | https://gitlab.com/onimon/script |
| Registry Source | gitlab |
README
OniMon - A simple Tor Relay Admin Dashboard.
Overview
OniMon is a web interface to display status information about a running Tor Relay. It is inspired from the Tor Arm project and based on the Pi-Hole Admin Dashboard.
The Dashboard executes the onimon script on the server to gather information from Tor.
The script opens a control port connection for each request and is used to fetch Tor
status, traffic data and network details. It is written in Python and requires the
Stem module.
Note that this script can also be used independently of the Dashboard to provide an easily scriptable method to retrieve Tor information.
Example output:
onimon version
> 0.2.9.9 (git-1d8323c042800718)
onimon address
> 1.2.3.4
onimon config ORPort
> 443
Installation
Requirements
- Tor instance: tor
- Python with STEM: python, python-stem
Installation procedure
-
Copy the script and the python module into
/usr/local/bin/and set their permissions to0755and0644, respectively, so that the script can be executed by all users:wget -O /usr/local/bin/onimon https://gitlab.com/onimon/script/raw/master/onimon chmod 0755 /usr/local/bin/onimon wget -O /usr/local/bin/_onimon.py https://gitlab.com/onimon/script/raw/master/_onimon.py chmod 0644 /usr/local/bin/_onimon.py -
You can speed up the script's execution delay by running the
onimonscript once in a writable directory (or with admin rights). This will create a precompiled file_onimon.pycfile that you can place into/usr/local/bin. Note that you must repeat this process after updating the python module. -
Create a configuration file named
/etc/onimon.confand set its permissions to0640. Change its group to make it accessible by the user running the webserver. On most systems, the correct username iswww-data:touch /etc/onimon.conf chmod 0640 /etc/onimon.conf chown root:www-data /etc/onimon.conf -
The config file allows you to specify options to reach to Tor's ControlPort, e.g. the port number and the authentification password. The script uses Tor's password authentication, which means you must define a
HashedControlPasswordin yourtorrcfile (runtor --hash-password <text>to create a password hash, see the Tor manual for details). Note that in theonimon.conffile you need to enter the plain (un-hashed) password. -
Test if the webserver user can run the script and that it can reach Tor's control port:
sudo -u www-data onimon version > 0.2.9.9 (git-1d8323c042800718)