💾 Archived View for gemini.rmf-dev.com › repo › Vaati › RouterMonitor › readme captured on 2023-01-29 at 03:00:51. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-07-16)

➡️ Next capture (2023-03-20)

🚧 View Differences

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

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

Configuration

Change the hostname and password in config.h before compiling the program

A Adler32 hash of your password can be obtained using a online hash calculator

Generating certificate

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

Add user

Run "useradd -s nologin _rtmonitor", to add a user for rtmonitor

Configure relayd and inetd

Inetd

Add this to /etc/inetd.conf :

127.0.0.1:11965 stream tcp nowait root /usr/local/bin/rtmonitor 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