From cf9d5ca65b7565dd605274907c5203c7397fd352 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 19 Aug 2003 00:00:11 +0000
Subject: [PATCH] Added global "Interface" key to set the default network
 interface for all servers and services. Indented key names to improve
 readability, additional comments added. Default interfaces are left blank
 (any/all IPs) rather than 0 (same effect).

---
 ctrl/sbbs.ini | 160 +++++++++++++++++++++++++++-----------------------
 1 file changed, 87 insertions(+), 73 deletions(-)

diff --git a/ctrl/sbbs.ini b/ctrl/sbbs.ini
index 4c5b8c6c47..da55071271 100644
--- a/ctrl/sbbs.ini
+++ b/ctrl/sbbs.ini
@@ -1,35 +1,48 @@
 ; sbbs.ini
 
-; Synchronet Initialization File
+; Synchronet Startup Configuration (Initialization) File
 
 ; Synchronet Console (sbbs) will use these settings by default.
 ; $SBBSCTRL/$HOSTNAME.ini, if it exists, will be used instead.
-; Command-line options, if specified, will over-ride these settings.
+; Command-line options, if specified, will override these settings.
 
 ; $Id$
 
 [Global]
-Hostname=
-CtrlDirectory=
-TempDirectory=
-SemFileCheckFrequency=5	; seconds
+; Override system address for this instance (optional):
+	Hostname=
+; IP address of default network interface (default's to ANY/ALL interfaces):
+	Interface=
+; Override the SBBSCTRL environment variable (optional):
+	CtrlDirectory=
+; Override the default system "temp" directory (optional):
+	TempDirectory=
+; Increase value to decrease semaphore file checking frequency:
+	SemFileCheckFrequency=5	; seconds
 
 [BBS]
-AutoStart=true
-TelnetInterface=0
-RLoginInterface=0
-TelnetPort=23
-RLoginPort=513
-FirstNode=1
-LastNode=4
-ExternalYield=10
+; Set to 'false' to disable Telnet/Rlogin/Event server:
+	AutoStart=true
+; Set to IP address of network interface (or blank for default):
+	TelnetInterface=
+; Set to IP address of network interface (or blank for default):
+	RLoginInterface=
+; TCP port for Telnet server:
+	TelnetPort=23
+; TCP port for RLogin server:
+	RLoginPort=513
+; This server handles this range of BBS nodes:
+	FirstNode=1
+	LastNode=4
+; Increase this value to decrease the frequency of forced CPU time-slice yields in DOS externals:
+	ExternalYield=10
 ; Must install install/termcap or terminfo to use the following TERM setting:
 ; ExternalTermANSI=ansi-bbs
-ExternalTermDumb=dumb
+	ExternalTermDumb=dumb
 ; To change the default dosemu/doscmd path, uncomment and set:
 ; DOSemuPath=
-AnswerSound=
-HangupSound=
+	AnswerSound=
+	HangupSound=
 ; Supported options (separated with |):
 ; 	XTRN_MINIMIZED
 ; 	AUTO_LOGON
@@ -48,27 +61,27 @@ HangupSound=
 Options = XTRN_MINIMIZED | SYSOP_AVAILABLE
 
 [Mail]
-AutoStart=true
-LogFile=1
-MaxClients=15
-MaxInactivity=120
-Interface=0
-LinesPerYield=10
-MaxDeliveryAttempts=50
-MaxRecipients=100
-RescanFrequency=3600
-SMTPPort=25
-POP3Port=110
-DefaultUser=sysop
-DNSBlacklistHeader=X-DNSBL
-DNSBlacklistSubject=SPAM
-RelayServer=
-RelayPort=25
-DNSServer=
-POP3Sound=
-InboundSound=
-OutboundSound=
-ProcessConfigFile=mailproc.cfg
+	AutoStart=true
+	LogFile=1
+	MaxClients=15
+	MaxInactivity=120
+	Interface=
+	LinesPerYield=10
+	MaxDeliveryAttempts=50
+	MaxRecipients=100
+	RescanFrequency=3600
+	SMTPPort=25
+	POP3Port=110
+	DefaultUser=sysop
+	DNSBlacklistHeader=X-DNSBL
+	DNSBlacklistSubject=SPAM
+	RelayServer=
+	RelayPort=25
+	DNSServer=
+	POP3Sound=
+	InboundSound=
+	OutboundSound=
+	ProcessConfigFile=mailproc.cfg
 ; Supported options (separated with |):
 ;	DEBUG_RX_HEADER
 ;	DEBUG_RX_BODY
@@ -92,19 +105,19 @@ ProcessConfigFile=mailproc.cfg
 Options=ALLOW_POP3
 
 [FTP]
-AutoStart=true
-LogFile=1
-Port=21
-MaxClients=15
-MaxInactivity=300
-QwkTimeout=600
-Interface=0
-AnswerSound=
-HangupSound=
-HackAttemptSound=
-IndexFileName=00index
-HtmlIndexFile=00index.html
-HtmlIndexScript=ftp-html.js
+	AutoStart=true
+	LogFile=1
+	Port=21
+	MaxClients=15
+	MaxInactivity=300
+	QwkTimeout=600
+	Interface=
+	AnswerSound=
+	HangupSound=
+	HackAttemptSound=
+	IndexFileName=00index
+	HtmlIndexFile=00index.html
+	HtmlIndexScript=ftp-html.js
 ; Supported options (separated with |):
 ;	DEBUG_RX
 ;	DEBUG_DATA
@@ -123,17 +136,17 @@ HtmlIndexScript=ftp-html.js
 Options=INDEX_FILE | HTML_INDEX_FILE | ALLOW_QWK
 
 [Web]
-;AutoStart=true
-Interface=0
-Port=80
-RootDirectory=../html
-ErrorDirectory=../html/error
-IndexFileNames=index.html,index.ssjs
-CGIExtensions=.cgi
-;CGITempDirectory=/tmp
-JavaScriptExtension=.ssjs
-MaxInactivity=120
-MaxCgiInactivity=120
+	;AutoStart=true
+	Interface=
+	Port=80
+	RootDirectory=../html
+	ErrorDirectory=../html/error
+	IndexFileNames=index.html,index.ssjs
+	CGIExtensions=.cgi
+	;CGITempDirectory=/tmp
+	JavaScriptExtension=.ssjs
+	MaxInactivity=120
+	MaxCgiInactivity=120
 ; Supported options (separated with |):
 ;	DEBUG_RX
 ;	DEBUG_TX
@@ -147,11 +160,11 @@ MaxCgiInactivity=120
 Options=NO_HOST_LOOKUP
 
 [Services]
-AutoStart=true
-Interface=0
-ConfigFile=services.cfg
-AnswerSound=
-HangupSound=
+	AutoStart=true
+	Interface=
+	ConfigFile=services.cfg
+	AnswerSound=
+	HangupSound=
 ; Supported options (separated with |):
 ; 	NO_HOST_LOOKUP
 ; 	LOCAL_TIMEZONE
@@ -160,10 +173,10 @@ Options=NO_HOST_LOOKUP
 
 [UNIX]
 ; User/group name to run as
-;User=admin
-;Group=wheel
-; Run in background
-Daemonize=False
+	;User=admin
+	;Group=wheel
+; Run in background:
+	Daemonize=False
 ; Daemon Log Facility to use
 ; 1 = LOCAL1
 ; 2 = LOCAL2
@@ -174,6 +187,7 @@ Daemonize=False
 ;     consequences of enabling this!
 ;     man syslog.conf(5) for more information.
 ; Defaults to using the USER facility.
-LogFacility=User
-umask=077
+	LogFacility=User
+; Default file creation mode:
+	umask=077
 
-- 
GitLab