Files
bbs/bbs.service.sample
T
Claude 41c3eb0758 Doors in dosemu2 under Docker, tested with a real FOSSIL door
doors/dosemu2 builds dosemu2, fdpp and comcom64 from source on Ubuntu (no
PPA) and runs a door with the caller's line on COM1 behind dosemu2's
FOSSIL: rundoor bridges the container's stdio to the port with socat,
the door's directory on F: and the node's drop files on G:.  It runs as
the BBS's user (not root, which dosemu2 refuses), with no network, and
goes when the door ends or the caller hangs up.  {uid}/{gid} fill in the
BBS's own ids for docker run --user; make doors-image builds it.

testdoor/FOSDOOR.COM, a FOSSIL door in assembly, reads DOOR.SYS, writes
CP437 and ANSI and echoes keys; TestDosemuDoor plays it through the BBS
when the image is built, hangs up in it and checks the container is gone.
README, sample config and service notes (the docker group's risk).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-10 21:31:51 +00:00

38 lines
967 B
Plaintext

[Unit]
Description=BBS for telnet, TN3270 and modem callers
After=network.target
[Service]
ExecStart=/usr/local/bin/bbs -config /etc/bbs/bbs.conf serve
User=bbs
Group=bbs
# for [listen menu]'s socket_group = asterisk
SupplementaryGroups=asterisk
# for DOS doors in Docker (README, "Doors"): the docker group is as good as
# root, so think twice; rootless Docker or Podman is the safer way
#SupplementaryGroups=asterisk docker
RuntimeDirectory=bbs
RuntimeDirectoryMode=0750
StateDirectory=bbs
StateDirectoryMode=0700
UMask=0077
Restart=on-failure
# port 23 without root
#AmbientCapabilities=CAP_NET_BIND_SERVICE
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
PrivateDevices=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectControlGroups=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
RestrictNamespaces=yes
LockPersonality=yes
MemoryDenyWriteExecute=yes
SystemCallArchitectures=native
[Install]
WantedBy=multi-user.target