Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Feeling amorous, she looked under the sheets and cried, "Oh, no, it's Microsoft!"


computers / alt.bbs.synchronet / Telnet Server

SubjectAuthor
* Telnet ServerApam
`* Telnet ServerDigital Man
 +* Telnet Serverdeon
 |`* Telnet ServerDigital Man
 | `* Telnet Serverdeon
 |  `* Telnet ServerDigital Man
 |   `* Telnet Serverdeon
 |    +- Telnet ServerDigital Man
 |    `* Telnet Serverphigan
 |     +* Telnet ServerApam
 |     |`- Telnet Serverdeon
 |     `- Telnet Serverdeon
 +- Telnet ServerApam
 `- Telnet Serverapam

1
Telnet Server

<661285E6.51537.sync@vert.synchro.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=19983&group=alt.bbs.synchronet#19983

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!newsfeed.hasname.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx16.iad.POSTED!not-for-mail
From: apa...@vert.synchro.net.remove-7n6-this (Apam)
Subject: Telnet Server
Message-ID: <661285E6.51537.sync@vert.synchro.net>
X-Comment-To: All
Organization: Vertrauen
Newsgroups: alt.bbs.synchronet
X-FTN-PID: Synchronet 3.20a-Win32 master/bf7728020 Apr 05 202 MSC 1916
X-FTN-MSGID: 51537.sync@1:103/705 2a788537
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 15
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sun, 07 Apr 2024 11:39:24 UTC
Date: Sun, 7 Apr 2024 04:39:18 -0700
X-Received-Bytes: 1482
 by: Apam - Sun, 7 Apr 2024 11:39 UTC

Hi,

I've got synchronet running on Debian 12 (x86_64) I am running fa91e9074 which i pulled a few days ago.

Everything works fine, except each evening the telnet server stops listening on ipv4. I can log in via ipv6 (localhost - i don't actually have ipv6 setup) but trying to log in via ipv4 results in connection refused.

Restarting sbbs brings the telnet server back up.

I'm not sure where to even begin troubleshooting this. My telnet is listening on port 23, it's odd that it happens about the same time each evening.

I've only been running for a few days now, perhaps it's something intermittent? I'll keep an eye on it the next few days and see if it does it again.

Andrew
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Telnet Server

<66130329.51538.sync@vert.synchro.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=19984&group=alt.bbs.synchronet#19984

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx40.iad.POSTED!not-for-mail
From: digital....@vert.synchro.net.remove-n29-this (Digital Man)
Subject: Telnet Server
Message-ID: <66130329.51538.sync@vert.synchro.net>
X-Comment-To: Apam
Organization: Vertrauen
Newsgroups: alt.bbs.synchronet
In-Reply-To: <661285E6.51537.sync@vert.synchro.net>
References: <661285E6.51537.sync@vert.synchro.net>
X-FTN-PID: Synchronet 3.20a-Linux master/aec57bee6 Mar 23 202 GCC 12.2.0
X-FTN-MSGID: 51538.sync@1:103/705 2a79027b
X-FTN-REPLY: 51537.sync@1:103/705 2a788537
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 25
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sun, 07 Apr 2024 20:33:46 UTC
Date: Sun, 7 Apr 2024 13:33:45 -0700
X-Received-Bytes: 2060
 by: Digital Man - Sun, 7 Apr 2024 20:33 UTC

To: Apam
Re: Telnet Server
By: Apam to All on Sun Apr 07 2024 04:39 am

> Everything works fine, except each evening the telnet server stops listening
> on ipv4. I can log in via ipv6 (localhost - i don't actually have ipv6
> setup) but trying to log in via ipv4 results in connection refused.
>
> Restarting sbbs brings the telnet server back up.
>
> I'm not sure where to even begin troubleshooting this. My telnet is
> listening on port 23, it's odd that it happens about the same time each
> evening.

Run 'netstat -lp' or 'ss -lp' to determine what is listening in port 23 when this happens (and is it sbbs?).

By default, the Synchronet ctrl/sockopts.ini file does not enable the REUSEADDR option. Is this option now enabled? If it is, then a second process (e.g. a second invocation of sbbs) could "take over" the port.
--
digital man (rob)

Breaking Bad quote #10:
Get a big old raging hard-on at the idea of catching this piece of shit! - Hank
Norco, CA WX: 63.8°F, 37.0% humidity, 3 mph W wind, 0.00 inches rain/24hrs
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Telnet Server

<66131584.48495.dove-syncdisc@bbs.dege.au>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=19985&group=alt.bbs.synchronet#19985

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!newsfeed.bofh.team!2.eu.feeder.erje.net!feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.iad.POSTED!not-for-mail
From: deo...@ALTERANT.remove-790-this (deon)
Subject: Telnet Server
Message-ID: <66131584.48495.dove-syncdisc@bbs.dege.au>
X-Comment-To: Digital Man
Organization: Alterant
Newsgroups: alt.bbs.synchronet
In-Reply-To: <66130329.51538.sync@vert.synchro.net>
References: <66130329.51538.sync@vert.synchro.net>
X-FTN-PID: Synchronet 3.20a-Linux master/7b932f63e Dec 9 2023 GCC 10.2.1
X-FTN-MSGID: 48495.dove-syncdisc@12:1/2 2a7908f3
X-FTN-REPLY: 51538.sync@1:103/705 2a79027b
X-FTN-CHRS: CP437 2
WhenImported: 20240408075204+1000 1258
WhenExported: 20240408081554+1000 1258
ExportedFrom: ALTERANT dove-syncdisc 48495
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 19
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sun, 07 Apr 2024 22:26:39 UTC
Date: Mon, 8 Apr 2024 07:52:04 +1000
X-Received-Bytes: 1710
 by: deon - Sun, 7 Apr 2024 21:52 UTC

To: Digital Man
Re: Telnet Server
By: Digital Man to Apam on Sun Apr 07 2024 01:33 pm

Howdy,

> By default, the Synchronet ctrl/sockopts.ini file does not enable the
> REUSEADDR option. Is this option now enabled? If it is, then a second
> process (e.g. a second invocation of sbbs) could "take over" the port.

Cant remember if I've asked before or not - but why isnt this enabled by default. Seems to bite a lot of people...

....δεσ∩

---
■ Synchronet ■ AnsiTEX bringing back videotex but with ANSI
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Telnet Server

<66131D9E.51540.sync@vert.synchro.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=19986&group=alt.bbs.synchronet#19986

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!newsfeed.bofh.team!2.eu.feeder.erje.net!feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.iad.POSTED!not-for-mail
From: digital....@vert.synchro.net.remove-790-this (Digital Man)
Subject: Telnet Server
Message-ID: <66131D9E.51540.sync@vert.synchro.net>
X-Comment-To: deon
Organization: Vertrauen
Newsgroups: alt.bbs.synchronet
In-Reply-To: <66131584.48495.dove-syncdisc@bbs.dege.au>
References: <66131584.48495.dove-syncdisc@bbs.dege.au>
X-FTN-PID: Synchronet 3.20a-Linux master/aec57bee6 Mar 23 202 GCC 12.2.0
X-FTN-MSGID: 51540.sync@1:103/705 2a791cf2
X-FTN-REPLY: 48495.dove-syncdisc@12:1/2 2a7908f3
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 20
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sun, 07 Apr 2024 22:26:40 UTC
Date: Sun, 7 Apr 2024 15:26:38 -0700
X-Received-Bytes: 1924
 by: Digital Man - Sun, 7 Apr 2024 22:26 UTC

To: deon
Re: Telnet Server
By: deon to Digital Man on Mon Apr 08 2024 07:52 am

> > By default, the Synchronet ctrl/sockopts.ini file does not enable the
> > REUSEADDR option. Is this option now enabled? If it is, then a second
> > process (e.g. a second invocation of sbbs) could "take over" the port.
>
> Cant remember if I've asked before or not - but why isnt this enabled by
> default. Seems to bite a lot of people...

Because re-capturing a port that's already bound (e.g. to another server) can also bite people. It's generally something that's not enabled by default in TCP servers.
--
digital man (rob)

Steven Wright quote #23:
My mechanic told me, I couldn't repair your brakes, so I made your horn louder
Norco, CA WX: 64.5°F, 41.0% humidity, 6 mph WNW wind, 0.00 inches rain/24hrs
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Telnet Server

<66132A62.48497.dove-syncdisc@bbs.dege.au>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=19987&group=alt.bbs.synchronet#19987

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx16.iad.POSTED!not-for-mail
From: deo...@ALTERANT.remove-no1-this (deon)
Subject: Telnet Server
Message-ID: <66132A62.48497.dove-syncdisc@bbs.dege.au>
X-Comment-To: Digital Man
Organization: Alterant
Newsgroups: alt.bbs.synchronet
In-Reply-To: <66131D9E.51540.sync@vert.synchro.net>
References: <66131D9E.51540.sync@vert.synchro.net>
X-FTN-PID: Synchronet 3.20a-Linux master/7b932f63e Dec 9 2023 GCC 10.2.1
X-FTN-MSGID: 48497.dove-syncdisc@12:1/2 2a791dd3
X-FTN-REPLY: 51540.sync@1:103/705 2a791cf2
X-FTN-CHRS: CP437 2
WhenImported: 20240408092106+1000 1258
WhenExported: 20240408101546+1000 1258
ExportedFrom: ALTERANT dove-syncdisc 48497
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 21
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Mon, 08 Apr 2024 00:16:57 UTC
Date: Mon, 8 Apr 2024 09:21:06 +1000
X-Received-Bytes: 1636
 by: deon - Sun, 7 Apr 2024 23:21 UTC

To: Digital Man
Re: Telnet Server
By: Digital Man to deon on Sun Apr 07 2024 03:26 pm

Hi,

> Because re-capturing a port that's already bound (e.g. to another server)
> can also bite people. It's generally something that's not enabled by default
> in TCP servers.

Oh really? What scenario?

IE: If I install SBBS (or a TCP server) and want it to use TCP port "x", why wouldnt I want it to re-capture that port if the server was recycled?

....δεσ∩

---
■ Synchronet ■ AnsiTEX bringing back videotex but with ANSI
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Telnet Server

<6613379C.51542.sync@vert.synchro.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=19988&group=alt.bbs.synchronet#19988

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx37.iad.POSTED!not-for-mail
From: apa...@vert.synchro.net.remove-4dt-this (Apam)
Subject: Telnet Server
Message-ID: <6613379C.51542.sync@vert.synchro.net>
X-Comment-To: Digital Man
Organization: Vertrauen
Newsgroups: alt.bbs.synchronet
In-Reply-To: <66130329.51538.sync@vert.synchro.net>
References: <66130329.51538.sync@vert.synchro.net>
X-FTN-PID: Synchronet 3.20a-Win32 master/bf7728020 Apr 05 202 MSC 1916
X-FTN-MSGID: 51542.sync@1:103/705 2a7936f2
X-FTN-REPLY: 51538.sync@1:103/705 2a79027b
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 16
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Mon, 08 Apr 2024 00:17:36 UTC
Date: Sun, 7 Apr 2024 17:17:32 -0700
X-Received-Bytes: 1408
 by: Apam - Mon, 8 Apr 2024 00:17 UTC

To: Digital Man
Re: Telnet Server
By: Digital Man to Apam on Sun Apr 07 2024 01:33 pm

> Run 'netstat -lp' or 'ss -lp' to determine what is listening in port 23 when
> this happens (and is it sbbs?).
>
> By default, the Synchronet ctrl/sockopts.ini file does not enable the
> REUSEADDR option. Is this option now enabled? If it is, then a second
> process (e.g. a second invocation of sbbs) could "take over" the port.

Ok, Thankyou!

Andrew
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Telnet Server

<66134246.51543.sync@vert.synchro.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=19989&group=alt.bbs.synchronet#19989

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!newsfeed.bofh.team!2.eu.feeder.erje.net!feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!npeer-ng0.as286.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx40.iad.POSTED!not-for-mail
From: digital....@vert.synchro.net.remove-6vk-this (Digital Man)
Subject: Telnet Server
Message-ID: <66134246.51543.sync@vert.synchro.net>
X-Comment-To: deon
Organization: Vertrauen
Newsgroups: alt.bbs.synchronet
In-Reply-To: <66132A62.48497.dove-syncdisc@bbs.dege.au>
References: <66132A62.48497.dove-syncdisc@bbs.dege.au>
X-FTN-PID: Synchronet 3.20a-Win32 master/bf7728020 Apr 05 202 MSC 1916
X-FTN-MSGID: 51543.sync@1:103/705 2a79419d
X-FTN-REPLY: 48497.dove-syncdisc@12:1/2 2a791dd3
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 27
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Mon, 08 Apr 2024 01:03:06 UTC
Date: Sun, 7 Apr 2024 18:03:02 -0700
X-Received-Bytes: 2104
 by: Digital Man - Mon, 8 Apr 2024 01:03 UTC

To: deon
Re: Telnet Server
By: deon to Digital Man on Mon Apr 08 2024 09:21 am

> Re: Telnet Server
> By: Digital Man to deon on Sun Apr 07 2024 03:26 pm
>
> Hi,
>
> > Because re-capturing a port that's already bound (e.g. to another server)
> > can also bite people. It's generally something that's not enabled by
> > default in TCP servers.
>
> Oh really? What scenario?
>
> IE: If I install SBBS (or a TCP server) and want it to use TCP port "x", why
> wouldnt I want it to re-capture that port if the server was recycled?

For example, if you accidentally ran a second instead of that same TCP server (or another TCP server configured for the same TCP port number), even briefly, the first server would no longer have the port bound/listening. It would just sit there silenty waiting for a connection that will never happen. Kind of like what Apam is describing.
--
digital man (rob)

Synchronet/BBS Terminology Definition #49:
KD = King Drafus (Allen Christiansen)
Norco, CA WX: 59.4°F, 51.0% humidity, 10 mph NW wind, 0.00 inches rain/24hrs
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Telnet Server

<66137186.48500.dove-syncdisc@bbs.dege.au>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=19990&group=alt.bbs.synchronet#19990

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.iad.POSTED!not-for-mail
From: deo...@ALTERANT.remove-s75-this (deon)
Subject: Telnet Server
Message-ID: <66137186.48500.dove-syncdisc@bbs.dege.au>
X-Comment-To: Digital Man
Organization: Alterant
Newsgroups: alt.bbs.synchronet
In-Reply-To: <66134246.51543.sync@vert.synchro.net>
References: <66134246.51543.sync@vert.synchro.net>
X-FTN-PID: Synchronet 3.20a-Linux master/7b932f63e Dec 9 2023 GCC 10.2.1
X-FTN-MSGID: 48500.dove-syncdisc@12:1/2 2a7964fa
X-FTN-REPLY: 51543.sync@1:103/705 2a79419d
X-FTN-CHRS: CP437 2
WhenImported: 20240408142438+1000 1258
WhenExported: 20240408151626+1000 1258
ExportedFrom: ALTERANT dove-syncdisc 48500
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 27
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Mon, 08 Apr 2024 05:17:38 UTC
Date: Mon, 8 Apr 2024 14:24:38 +1000
X-Received-Bytes: 2678
 by: deon - Mon, 8 Apr 2024 04:24 UTC

To: Digital Man
Re: Telnet Server
By: Digital Man to deon on Sun Apr 07 2024 06:03 pm

Howdy,

> For example, if you accidentally ran a second instead of that same TCP
> server (or another TCP server configured for the same TCP port number), even
> briefly, the first server would no longer have the port bound/listening. It
> would just sit there silenty waiting for a connection that will never
> happen. Kind of like what Apam is describing.

I guess I've never seen this scenario (on Linux anyway). I have started TCP server apps on a host, and have clashed on TCP ports often (happens more frequently that you would realise with docker), and I've never seen a server "silently waiting" because it opened the port first, and another application came along and took it.

I did some (albeit quick) reading today on TCP and SO_RESUSEADDR, and what you are describing seemed to be a known windows issue (that perhaps has been resolved?). Somebody made a reference to it anyway...

I'll keep an eye out on stuff I use, and see which apps dont use SO_RESUSEADDR by default (given I stop and restart stuff often and quickly it should be easy to identify). I understand why it helps to get around a TCP protocol issue (the old port going into TIME_WAIT when it is shut down) - and it is a pain for synchronet when it is recycled and not set.

Perhaps you could implement a startup delay/wait? - since it is quite easy to trip you up if you dont have it and its not the default.

....δεσ∩

---
■ Synchronet ■ AnsiTEX bringing back videotex but with ANSI
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Telnet Server

<6613B763.51545.sync@vert.synchro.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=19991&group=alt.bbs.synchronet#19991

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!news.neodome.net!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx06.iad.POSTED!not-for-mail
From: digital....@vert.synchro.net.remove-c0a-this (Digital Man)
Subject: Telnet Server
Message-ID: <6613B763.51545.sync@vert.synchro.net>
X-Comment-To: deon
Organization: Vertrauen
Newsgroups: alt.bbs.synchronet
In-Reply-To: <66137186.48500.dove-syncdisc@bbs.dege.au>
References: <66137186.48500.dove-syncdisc@bbs.dege.au>
X-FTN-PID: Synchronet 3.20a-Win32 master/bf7728020 Apr 05 202 MSC 1916
X-FTN-MSGID: 51545.sync@1:103/705 2a79b6bc
X-FTN-REPLY: 48500.dove-syncdisc@12:1/2 2a7964fa
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 16
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Mon, 08 Apr 2024 09:22:48 UTC
Date: Mon, 8 Apr 2024 02:22:43 -0700
X-Received-Bytes: 1642
 by: Digital Man - Mon, 8 Apr 2024 09:22 UTC

To: deon
Re: Telnet Server
By: deon to Digital Man on Mon Apr 08 2024 02:24 pm

> Perhaps you could implement a startup delay/wait? - since it is quite easy
> to trip you up if you dont have it and its not the default.

There already is a port bind retry/delay (upon failure), and it's configurable. See the settings in sbbs.ini.
--
digital man (rob)

Synchronet "Real Fact" #55:
Synchronet Terminal Server introduced RLogin support w/v3.00c (2000)
Norco, CA WX: 46.3°F, 80.0% humidity, 0 mph ESE wind, 0.00 inches rain/24hrs
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Telnet Server

<66149905.3686.dove-syncdisc@tacopronto.bbs.io>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=19992&group=alt.bbs.synchronet#19992

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!news.neodome.net!npeer.as286.net!npeer-ng0.as286.net!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.iad.POSTED!not-for-mail
From: phi...@TACOPRON.remove-nhu-this (phigan)
Subject: Telnet Server
Message-ID: <66149905.3686.dove-syncdisc@tacopronto.bbs.io>
X-Comment-To: deon
Organization: Taco Pronto
Newsgroups: alt.bbs.synchronet
In-Reply-To: <66137186.48500.dove-syncdisc@bbs.dege.au>
References: <66137186.48500.dove-syncdisc@bbs.dege.au>
X-FTN-PID: Synchronet 3.19c-Linux / Jun 26 2022 GCC 9.4.0
X-FTN-MSGID: 51546.sync@1:103/705 2a7a99a6
X-FTN-REPLY: 48500.dove-syncdisc@12:1/2 2a7964fa
X-FTN-CHRS: CP437 2
WhenImported: 20240408182525-0700 41a4
WhenExported: 20240408183055-0700 41a4
ExportedFrom: TACOPRON dove-syncdisc 3686
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 19
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Tue, 09 Apr 2024 01:30:53 UTC
Date: Mon, 8 Apr 2024 18:25:25 -0700
X-Received-Bytes: 1682
 by: phigan - Tue, 9 Apr 2024 01:25 UTC

To: deon
Re: Telnet Server
By: deon to Digital Man on Mon Apr 08 2024 02:24 pm

> I guess I've never seen this scenari
> (on Linux anyway). I have started TC

I was going to say: On Linux, wouldn't
the second instance or whatever else
trying to take port 23 fail, and give
an error that the port is already in
use? That's what happens to me any time
I try to run two things on the same
port, anyway.

---
■ Synchronet ■ TIRED of waiting 2 hours for a taco? GO TO TACOPRONTO.bbs.io
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Telnet Server

<6614AC66.51547.sync@vert.synchro.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=19993&group=alt.bbs.synchronet#19993

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!news.neodome.net!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.iad.POSTED!not-for-mail
From: apa...@vert.synchro.net.remove-x6h-this (Apam)
Subject: Telnet Server
Message-ID: <6614AC66.51547.sync@vert.synchro.net>
X-Comment-To: phigan
Organization: Vertrauen
Newsgroups: alt.bbs.synchronet
In-Reply-To: <66149905.3686.dove-syncdisc@tacopronto.bbs.io>
References: <66149905.3686.dove-syncdisc@tacopronto.bbs.io>
X-FTN-PID: Synchronet 3.20a-Win32 master/8108e0cd9 Apr 08 202 MSC 1916
X-FTN-MSGID: 51547.sync@1:103/705 2a7aabc1
X-FTN-REPLY: 51546.sync@1:103/705 2a7a99a6
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 21
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Tue, 09 Apr 2024 02:48:13 UTC
Date: Mon, 8 Apr 2024 19:48:06 -0700
X-Received-Bytes: 2022
 by: Apam - Tue, 9 Apr 2024 02:48 UTC

To: phigan
Re: Telnet Server
By: phigan to deon on Mon Apr 08 2024 06:25 pm

ph> I was going to say: On Linux, wouldn't
ph> the second instance or whatever else
ph> trying to take port 23 fail, and give
ph> an error that the port is already in
ph> use? That's what happens to me any time
ph> I try to run two things on the same
ph> port, anyway.

Yeah, unless you set the REUSEADDR socket option i think, then it can reuse the socket.

I wasn't aware that it could take over a socket that was actually in use, I had thought it just reused ones that were in the process of closing, but it sounds like my thinking is wrong.

So I think, using that socket option could be a bad thing most likely with SSH as synchronet could clobber sshd if it's running. It's unlikely that your setup is running a telnetd server, so in that instance it's unlikely to be a problem - but from what i understand in this thread, it's better to be safe than sorry.

Andrew
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Telnet Server

<661482B1.122.dove-syncdisc@happylnd.synchro.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=19994&group=alt.bbs.synchronet#19994

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx11.iad.POSTED!not-for-mail
From: apa...@HAPPYLND.remove-9pe-this (apam)
Subject: Telnet Server
Message-ID: <661482B1.122.dove-syncdisc@happylnd.synchro.net>
X-Comment-To: Digital Man
Organization: Happyland
Newsgroups: alt.bbs.synchronet
In-Reply-To: <66130329.51538.sync@vert.synchro.net>
References: <66130329.51538.sync@vert.synchro.net>
X-FTN-PID: Synchronet 3.20a-Linux master/fa91e9074 Apr 05 202 GCC 12.2.0
X-FTN-MSGID: 51548.sync@1:103/705 2a7aac4b
X-FTN-REPLY: 51538.sync@1:103/705 2a79027b
X-FTN-CHRS: CP437 2
WhenImported: 20240409095009+1000 1258
WhenExported: 20240409125021+1000 1258
ExportedFrom: HAPPYLND dove-syncdisc 122
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 16
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Tue, 09 Apr 2024 02:50:24 UTC
Date: Tue, 9 Apr 2024 09:50:09 +1000
X-Received-Bytes: 1758
 by: apam - Mon, 8 Apr 2024 23:50 UTC

To: Digital Man
Re: Telnet Server
By: Digital Man to Apam on Sun Apr 07 2024 01:33 pm

DM> By default, the Synchronet ctrl/sockopts.ini file does not enable the
DM> REUSEADDR option. Is this option now enabled? If it is, then a second
DM> process (e.g. a second invocation of sbbs) could "take over" the port.

Setting this worked. I was a bit confused because IPv6 was still running, but now that I think about it, I've noticed in the past using the sockets makes them get released a bit later, so I guess because I use IPv4 and not IPv6 the old process was hanging on just a bit longer.

Andrew

---
■ Synchronet ■ HappyLand - happylnd.synchro.net
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Telnet Server

<6614AB1B.48503.dove-syncdisc@bbs.dege.au>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=19999&group=alt.bbs.synchronet#19999

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!198.186.191.151.MISMATCH!news-out.netnews.com!s1-2.netnews.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx12.iad.POSTED!not-for-mail
From: deo...@ALTERANT.remove-vtz-this (deon)
Subject: Telnet Server
Message-ID: <6614AB1B.48503.dove-syncdisc@bbs.dege.au>
X-Comment-To: phigan
Organization: Alterant
Newsgroups: alt.bbs.synchronet
In-Reply-To: <66149905.3686.dove-syncdisc@tacopronto.bbs.io>
References: <66149905.3686.dove-syncdisc@tacopronto.bbs.io>
X-FTN-PID: Synchronet 3.20a-Linux master/7b932f63e Dec 9 2023 GCC 10.2.1
X-FTN-MSGID: 48503.dove-syncdisc@12:1/2 2a7a9e92
X-FTN-REPLY: 51546.sync@1:103/705 2a7a99a6
X-FTN-CHRS: CP437 2
WhenImported: 20240409124235+1000 1258
WhenExported: 20240409131759+1000 1258
ExportedFrom: ALTERANT dove-syncdisc 48503
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 20
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Tue, 09 Apr 2024 03:19:00 UTC
Date: Tue, 9 Apr 2024 12:42:35 +1000
X-Received-Bytes: 1646
 by: deon - Tue, 9 Apr 2024 02:42 UTC

To: phigan
Re: Telnet Server
By: phigan to deon on Mon Apr 08 2024 06:25 pm

> > I guess I've never seen this scenari (on Linux anyway). I have started TC
>
> I was going to say: On Linux, wouldn't the second instance or whatever else
> trying to take port 23 fail, and give an error that the port is already in
> use? That's what happens to me any time I try to run two things on the same
> port, anyway.

Yup, that's my experience.

....δεσ∩

---
■ Synchronet ■ AnsiTEX bringing back videotex but with ANSI
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Telnet Server

<6614B502.48510.dove-syncdisc@bbs.dege.au>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20006&group=alt.bbs.synchronet#20006

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx18.iad.POSTED!not-for-mail
From: deo...@ALTERANT.remove-5v7-this (deon)
Subject: Telnet Server
Message-ID: <6614B502.48510.dove-syncdisc@bbs.dege.au>
X-Comment-To: Apam
Organization: Alterant
Newsgroups: alt.bbs.synchronet
In-Reply-To: <6614AC66.51547.sync@vert.synchro.net>
References: <6614AC66.51547.sync@vert.synchro.net>
X-FTN-PID: Synchronet 3.20a-Linux master/7b932f63e Dec 9 2023 GCC 10.2.1
X-FTN-MSGID: 48510.dove-syncdisc@12:1/2 2a7aa880
X-FTN-REPLY: 51547.sync@1:103/705 2a7aabc1
X-FTN-CHRS: CP437 2
WhenImported: 20240409132450+1000 1258
WhenExported: 20240409141757+1000 1258
ExportedFrom: ALTERANT dove-syncdisc 48510
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 25
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Tue, 09 Apr 2024 04:19:07 UTC
Date: Tue, 9 Apr 2024 13:24:50 +1000
X-Received-Bytes: 2186
 by: deon - Tue, 9 Apr 2024 03:24 UTC

To: Apam
Re: Telnet Server
By: Apam to phigan on Mon Apr 08 2024 07:48 pm

Howdy,

> So I think, using that socket option could be a bad thing most likely with
> SSH as synchronet could clobber sshd if it's running. It's unlikely that
> your setup is running a telnetd server, so in that instance it's unlikely to
> be a problem - but from what i understand in this thread, it's better to be
> safe than sorry.

My understanding and experience, is that this is doesnt happen on Linux, probably was an issue on Windows (I read references to it) - and possibly other OSes as well?

If my reading is correct, when a socket is closed (it goes into TIME_WAIT for upto a minute or two - depending on the OS) and *without* REUSEADDR, the OS will not let another process bind to the port.

With REUSEADDR, it ignores sockets in TIME_WAIT (on Linux anyway) and lets you bind to the port. (You still cant bind to a port that is already LISTENING by another process, but I guess you could on Windows?)

....δεσ∩

---
■ Synchronet ■ AnsiTEX bringing back videotex but with ANSI
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor