💾 Archived View for gemini.rmf-dev.com › repo › Vaati › RouterMonitor › readme captured on 2023-04-19 at 23:24:59. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-03-20)

-=-=-=-=-=-=-

Go back

RouterMonitor by Vaati

View account

Router monitoring for OpenBSD
git clone https://gmi.rmf-dev.com/Vaati/RouterMonitor

Log

Files

Refs

License

Readme

Readme

RouterMonitor

Minimal router monitor for OpenBSD using the gemini protocol

Crontab configuration

By default, the program will output system informations and exit when running

it as root, it can be run periodically with crontab.

Example :

Server configuration

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>

Generating certificate

Run "./gencert <your.hostname>" as root to generate a self-signed certificate

for your hostname.

Configure relayd and inetd

Inetd

Add this to /etc/inetd.conf :

127.0.0.1:11965 stream tcp nowait root /usr/local/bin/rtmonitor

Relayd

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

}

Enable and start the service

rcctl enable relayd inetd

rcctl start relayd inetd