| Post Reply | RetroFed Forum Forum Index » Gleam |
| Author | Message | ||
|---|---|---|---|
|
absolutely_vivid
programming.dev
absolutely_vivid@programming.dev Joined: 2024-08-11 |
Partying like it's 1977! I recently stumbled on the finger protocol through happynetbox and thought it was pretty cool, so I wrote a finger server that reads user data from text files. It's a pretty simple protocol, but I think it's a fun way to enable a simple smolnet-style status page :) |
||
| 7 Original | |||
ThotDragon
lemmy.blahaj.zone
thoughtfuldragon@lemmy.blahaj.zoneJoined: 2024-04-24 |
Perhaps look at running it with a systemd |
||
| 3 | |||
|
MonkderVierte
lemmy.zip
MonkderVierte@lemmy.zip Joined: 2025-05-30 |
Perhaps look at running it with a systemd .socket file so you don't need to redirect a port using iptables. That iptables rule would let any userspace application take over port 79 if your program crashes. Having the socket opened and managed by systemd means your app doesn't need to run as root but only your app can answer connections to port 79. You also get a measure of resiliency from syste...
Will it stop working with dinit then? |
||
| 1 | |||
|
absolutely_vivid
programming.dev
absolutely_vivid@programming.dev Joined: 2024-08-11 |
Perhaps look at running it with a systemd .socket file so you don't need to redirect a port using iptables. That iptables rule would let any userspace application take over port 79 if your program crashes. Having the socket opened and managed by systemd means your app doesn't need to run as root but only your app can answer connections to port 79. You also get a measure of resiliency from syste...
That's really cool! Unfortunately I have ethical issues with systemd, so I'd rather not support it as a first-class option in documentation or out of the box configs. Thankfully something taking over port 79 isn't a concern on any of my threat models for the software. I still require root for low ports on all my systems (to stop takeovers of 80, 443, 22, etc) but something listening on the finger port is going to be pretty harmless. Just don't try to |
||
| 1 | |||
| Post Reply |
Back to top |