💾 Archived View for gemini.rmf-dev.com › repo › Vaati › RouterMonitor › readme captured on 2023-09-08 at 16:11:50. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-03-20)
-=-=-=-=-=-=-
Router monitoring for OpenBSD
git clone https://gmi.rmf-dev.com/Vaati/RouterMonitor
Minimal router monitor for OpenBSD using the gemini protocol
By default, the program will output system informations and exit when running
it as root, it can be run periodically with crontab.
Example :
The program can be configured to run only when requested, a password can also
be used to restrict access to the informations.
Change the hostname and password in config.h before compiling the program.
A FNV hash of your password can be obtained by running : ./rtmonitor <password>
Run "./gencert <your.hostname>" as root to generate a self-signed certificate
for your hostname.
Add this to /etc/inetd.conf :
127.0.0.1:11965 stream tcp nowait root /usr/local/bin/rtmonitor
Add this to /etc/relayd.conf :
log connection
tcp protocol "gemini" {
tls keypair your.hostname
}
relay "gemini" {
listen on your.hostname port 1965 tls
protocol "gemini"
forward to 127.0.0.1 port 11965
}
rcctl enable relayd inetd
rcctl start relayd inetd