💾 Archived View for gemini.rmf-dev.com › repo › Vaati › RouterMonitor › files › 4469ac7a48ccd41939c7… captured on 2023-12-28 at 15:40:52. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-09-08)
-=-=-=-=-=-=-
0 # RouterMonitor
1
2 Minimal router monitor for OpenBSD using the gemini protocol
3
4 ## Crontab configuration
5
6 By default, the program will output system informations and exit when running
7 it as root, it can be run periodically with crontab.
8 Example :
9 * * * * * /usr/local/sbin/rtmonitor > /var/gemini/index.gmi
10
11 ## Server configuration
12
13 The program can be configured to run only when requested, a password can also
14 be used to restrict access to the informations.
15 Change the hostname and password in config.h before compiling the program.
16 A FNV hash of your password can be obtained by running : ./rtmonitor <password>
17
18 ## Generating certificate
19 Run "./gencert <your.hostname>" as root to generate a self-signed certificate
20 for your hostname.
21
22 ## Configure relayd and inetd
23
24 ### Inetd
25 Add this to /etc/inetd.conf :
26
27 127.0.0.1:11965 stream tcp nowait root /usr/local/bin/rtmonitor
28
29 ### Relayd
30 Add this to /etc/relayd.conf :
31
32 log connection
33 tcp protocol "gemini" {
34 tls keypair your.hostname
35 }
36
37 relay "gemini" {
38 listen on your.hostname port 1965 tls
39 protocol "gemini"
40 forward to 127.0.0.1 port 11965
41 }
42
43 ## Enable and start the service
44 rcctl enable relayd inetd
45 rcctl start relayd inetd
46