sredird(8)

πŸ“¦
version 2.2.2 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– sredird(8) β€” like, the RFC 2217 serial port server bestie πŸ’–

okay so. pull up a chair, grab a boba, because we're talking about sredird, aka the RFC 2217 serial port server πŸŽ€βœ¨ (and yes, the manual page name is sredird, section 8, iykyk)


🌸 SYNOPSIS 🌸

sredird [-i] log-level serial-device lock-file [poll-interval]

look at her. four (or five!) little slots and she's ready to serve πŸ’…


✨ DESCRIPTION ✨

bestie, real talk: this manual page documents sredird, the program, briefly. That's the whole job. Short and iconic. πŸ‘‘

So here's the vibe. When this program gets run through inetd, it uses the RFC 2217 extensions to TELNET to implement serial commands over the TCP connection, and it interfaces to a serial port you specify. That's it. That's the whole main character arc. 🌈


πŸ’… OPTIONS πŸ’…

okay this is the part you actually came for, no skipping:

  • An optional first parameter is -i β€” this turns on compatability with Cisco IOS. (yes, the manpage really spells it "compatability", we love her for it πŸ’€)
  • The first mandatory parameter is the log level for use in syslog.
  • The next mandatory parameter is the device node for the serial device. It must be a fully qualified path. no shortcuts, no "eh it's probably in /dev somewhere", fully qualified. periodt. ⭐
  • The final mandatory parameter is the file name for the lock file. This one's important β€” it's what prevents multiple instances of sredird from talking to the serial port at the same time, or, alternatively, it lets you allow sharing a port between a modem and sredird. 🫢
also there's a poll-interval hanging out in the synopsis, optional and chillin' at the end, and the manpage doesn't say anything else about it. we simply do not elaborate. πŸ™ˆ

πŸ¦‹ EXAMPLE πŸ¦‹

here's a configuration line for running it from inetd, copy it exactly bestie:

sredir stream  tcp     nowait  root    /usr/sbin/tcpd /usr/sbin/sredird 5 /dev/modem /var/lock/LCK..modem

ate. πŸ”₯


πŸ‘‘ AUTHOR πŸ‘‘

This man page was written by Russell Coker <russell@coker.com.au>. It may be freely used and distributed without restriction under the terms of the GPL. πŸ’œ

The sredird program itself was written by Denis Sbragion <d.sbragion@infotecna.it> and Jeffrey Altman <jaltman@columbia.edu>. legends, honestly. 🌟


and that's the whole page, bestie 🧚✨ this was sredird version 2.2.2, section 8, brought to you by Russell Coker <russell@coker.com.au> β€” mwah, go lock your serial port πŸ’‹πŸŒΈ

πŸ“¦ where this page comes from