sredird(8)
π 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
sredirdfrom talking to the serial port at the same time, or, alternatively, it lets you allow sharing a port between a modem andsredird. π«Ά
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
- debian trixie: sredird 2.2.2-0.2
- ubuntu questing: sredird 2.2.2-0.2
- ubuntu resolute: sredird 2.2.2-2 Β· GPL-2.0-or-later
- ubuntu stonking: sredird 2.2.2-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms