This is an old revision of the document!


Terminal Server

The Synchronet Terminal Server is responsible for providing that “old school” BBS user interface over dial-up modems and classic Internet console protocols (e.g. Telnet).

Features

  • Supports ANSI X3.64 (color and monochrome), RIP, and dumb terminals
  • Supports US-ASCII and CP437 (a.k.a. IBM Extended ASCII) character sets
  • Supported Protocols: Telnet, RLogin, and SSH

Configuration

  • Configured via the ctrl/sbbs.ini file
  • Optionally configured (on Windows) via SBBSCTRL:Telnet->Configure dialog
  • Configured behavior may be over-ridden via sbbs command-line arguments

Telnet

Telnet clients (a.k.a. terminal programs) are supported, by default, on the standard Telnet TCP port: 23.

The Synchronet Terminal Server will negotiate Telnet options with the client (enforcing echo and non-line-at-a-time modes), perform IAC (character 255) escaping, and CR/LF->CR and CR/NUL->CR translation (when not in binary mode).

RLogin

RLogin clients are supported, by default, on the standard RLogin TCP port: 513.

History of Synchronet's support for BSD RLogin

SBBS v3.00c 2000

  • digital man added initial support for accepting connections from BSD RLogin:

The Synchronet Telnet Server (later referred to as the “Terminal Server”) was enhanced to recognize the BSD RLogin connect sequence on a secondary port (TCP port 513 by default) and bypass the “Login:” prompt if the username specified in either first (client-user-name) or second (server-user-name) strings sent from the RLogin client were recognized as a valid user/login ID (alias). The default behavior was to compare the first (client-user-name) string as the attempted login ID but this could be changed by checking the SBBSCTRL:Telnet->Configure->RLogin->Use 2nd Login Name checkbox. Comparing *both* RLogin-client provided strings was not supported (only one or the other would be compared against the user database).

  • The password prompt was still displayed and a valid password required in order to login as the identified user ID. If the user ID was not recognized as a valid user, then the new user application process was started (with the user's alias automatically filled in with the specified client-user-name or server-user-name value).

SBBS v3.10g 2002

  • digital man added the r2 option to sbbs (console) to use the second RLogin string as the username.
  • digital man added support for the Telnet gateway module to be optionally used as a gateway to an RLogin server (e.g. TradeWars Game Server, aka TWGS) - by specifying the TG_RLOGIN mode flag to the telnet_gate function (via Baja or JavaScript). The current user's login ID (alias) was sent as the client-user-name string and the user's real name was sent as the server-user-name string as part of the outbound RLogin connection establishment.

SBBS v3.12a 2004

  • Deuce changed the default RLogin configuration (by this time stored in the Options field of the [bbs] section of the sbbs.ini file to use the second string sent by the RLogin client as the login ID (USE_2ND_RLOGIN).
  • Deuce changed the default configuration to enable/accept RLogin connections.
  • Deuce added support for automatic-login if a valid user password was supplied in either the client-user-name or server-user-name strings sent from the RLogin client (which string was assumed to be the user ID and which was assumed to be the password was determined by the “Use 2nd Login Name” option) or the client's IP address was listed in the (newly introduced) text/rlogin.can file, then the user would be automatically logged in without needing to provide/send a password.

SBBS v3.13a 2005

  • Deuce changed the RLogin connection behavior as follows:
if (specified user does not exist) {
    if (rlogin password recieved) {
        create new user with specified password
    }
    else {
        create new user with random password
        show password to user
        allow user to change password
        validate new password
   }
}
else {
    if(password is correct) {
        logon user
    }
    else {
        prompt for current password
    }
}

SBBS v3.16a 2012

  • echicken added a new mode flag (TG_SENDPASS) to the telnet_gate function which if combined with TG_RLOGIN mode flag would send the current user's password as the second RLogin string (server-user-name) during an outbound RLogin connection (instead of the default behavior of sending the current user's real name).

SBBS v3.16a 2013

  • mcmlxxix removed echicken's TG_SENDPASS mode flag support and created a new function (bbs.rlogin_gate) which accepted arguments to be sent to the remote RLogin server (presumably, the user's name and password, in that order).

SBBS v3.16b 2014

  • digital man removed and deprecated the USE_2ND_RLOGIN option (and related sbbs command-line option and sbbsctrl checkbox) as this is now the only behavior supported by the Synchronet Terminal Server: the first string received from the RLogin client (client-user-name) may be a password, the second string received (server-user-name) must be a valid user ID (alias).
  • digital man changed the bbs.rlogin_gate function to accept 3 optional arguments: client-user-name, server-user-name, and terminal, in the order specified by the RFC 1282.

SSH

Secure Shell version 2 clients are supported, by default, on the standard SSH TCP port: 22.

SSHv2 support provided by cryptlib.

JavaScript

Additional JavaScript objects are available to Terminal Server modules only:

Source Code

The Synchronet Terminal Server source code makes up the majority of the C (and all of the C++) files found in cvs/src/sbbs3 with the main module being main.cpp.

See Also

server/terminal.1519935661.txt · Last modified: 2018/03/01 12:21 by digital man
Back to top
CC Attribution 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0