0 # RouterMonitor
1
2 Minimal router monitor for OpenBSD using the gemini protocol
3
4 ## Configuration
5
6 Change the hostname and password in config.h before compiling the program
7 A Adler32 hash of your password can be obtained using a online hash calculator
8
9 ## Generating certificate
10 Run "./gencert <your.hostname>" as root to generate a self-signed certificate for your hostname
11
12 ## Add user
13 Run "useradd -s nologin _rtmonitor", to add a user for rtmonitor
14
15 ## Configure relayd and inetd
16
17 ### Inetd
18 Add this to /etc/inetd.conf :
19
20 127.0.0.1:11965 stream tcp nowait root /usr/local/bin/rtmonitor rtmonitor
21
22 ### Relayd
23 Add this to /etc/relayd.conf :
24
25 log connection
26 tcp protocol "gemini" {
27 tls keypair your.hostname
28 }
29
30 relay "gemini" {
31 listen on your.hostname port 1965 tls
32 protocol "gemini"
33 forward to 127.0.0.1 port 11965
34 }
35
36 ## Enable and start the service
37 rcctl enable relayd inetd
38 rcctl start relayd inetd
39