• cryptlib and other issues

    From Dumas Walker@VERT/CAPCITY2 to DIGITAL MAN on Sunday, May 20, 2018 19:19:00
    Good afternoon,
    Did some experimenting on a 64-bit machine today. SBBS compiled and does
    not seg fault immediately even though SSH/TLS is allowed in the INI file.
    So I think that maybe the cryptlib is not compatible with 32-bit linux machines?

    I was never able to get the program to fire all the way, though. Using
    sudo to start it, it complains that it does not have access to create
    various directories and will not bind all of the ports. That later issue
    is random... once it would not bind port 80 but bound 23 and 513... next
    try, it bound 80 and 513 but not 23 or the ftp port. There were some other random ports unbound, but those were the ones I noticed. I did not change anything between attempts.

    I have similar issues if I restart sbbs too soon after stopping it, or
    having it seg fault, on the other machine. My assumption is that sbbs (or
    the system) does not release the ports immediately. I waited quite a while before the second attempt mentioned above. I actually logged off, logged in
    as myself, did some stuff, and logged back on as the bbs user.

    All this was with a copy I pulled around Noon or so, EDT.

    ---
    þ SLMR 2.1a þ "Mmmmmmmm.....chocolate."
    þ Synchronet þ CAPCITY2 * CCO BBS * capcity2.synchro.net:26
  • From Digital Man@VERT to Dumas Walker on Monday, May 21, 2018 16:08:54
    Re: cryptlib and other issues
    By: Dumas Walker to DIGITAL MAN on Sun May 20 2018 07:19 pm

    Good afternoon,
    Did some experimenting on a 64-bit machine today. SBBS compiled and does not seg fault immediately even though SSH/TLS is allowed in the INI file.
    So I think that maybe the cryptlib is not compatible with 32-bit linux machines?

    Okay, good info. Anyone else running 32-bit Linux with a recent SBBS build with SSH and/or TLS working okay?

    I was never able to get the program to fire all the way, though. Using
    sudo to start it, it complains that it does not have access to create various directories and will not bind all of the ports. That later issue
    is random... once it would not bind port 80 but bound 23 and 513... next try, it bound 80 and 513 but not 23 or the ftp port. There were some other random ports unbound, but those were the ones I noticed. I did not change anything between attempts.

    See http://wiki.synchro.net/faq:tcpip#bind for details.

    digital man

    Synchronet/BBS Terminology Definition #47:
    SMB = Synchronet Message Base (e.g. smblib)
    Norco, CA WX: 62.6øF, 74.0% humidity, 13 mph ENE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Dumas Walker@VERT/CAPCITY2 to DIGITAL MAN on Tuesday, May 22, 2018 18:18:00
    Okay, good info. Anyone else running 32-bit Linux with a recent SBBS build with
    SSH and/or TLS working okay?

    Good. :)

    See http://wiki.synchro.net/faq:tcpip#bind for details.

    I did. I could not find anything with netstat, or that a reboot would fix.
    FYI, the error is not a 13 (no access), it is 98, if that helps??

    ---
    þ SLMR 2.1a þ "Buck McCoy?!? He was bigger than opium!"
    þ Synchronet þ CAPCITY2 * CCO BBS * capcity2.synchro.net:26
  • From Digital Man@VERT to Dumas Walker on Tuesday, May 22, 2018 21:10:22
    Re: cryptlib and other issues
    By: Dumas Walker to DIGITAL MAN on Tue May 22 2018 06:18 pm

    Okay, good info. Anyone else running 32-bit Linux with a recent SBBS build with
    SSH and/or TLS working okay?

    Good. :)

    See http://wiki.synchro.net/faq:tcpip#bind for details.

    I did. I could not find anything with netstat, or that a reboot would fix.
    FYI, the error is not a 13 (no access), it is 98, if that helps??

    # grep 98 /usr/include/*/errno.h
    /usr/include/asm-generic/errno.h:#define EADDRINUSE 98 /* Address already in use */

    That means the port (on the specified network interface) is already in use.

    Did you try adding REUSEADDR=1 to your ctrl/sockopts.ini file, like the FAQ said?

    digital man

    This Is Spinal Tap quote #16:
    David St. Hubbins: I believe virtually everything I read...
    Norco, CA WX: 58.6øF, 82.0% humidity, 5 mph E wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Dumas Walker@VERT/CAPCITY2 to DIGITAL MAN on Wednesday, May 23, 2018 18:40:00
    # grep 98 /usr/include/*/errno.h
    /usr/include/asm-generic/errno.h:#define EADDRINUSE 98 /* Address already in use */

    Neat! I need to try to remember this trick.

    That means the port (on the specified network interface) is already in use.

    Did you try adding REUSEADDR=1 to your ctrl/sockopts.ini file, like the FAQ said?

    No because it was still in use after a reboot, so I don't think sbbs has
    them in use. I *did* try the telnet trick that the FAQ mentions, though. The telnet and ftp ports refused connection, but port 80 did answer (I had
    received the '98' on all three of them).

    I was not able to see any of them active with a 'netstat' command but I
    have to admit I am not 100% on what I am looking at in the output of that command. I suspect, but don't know, that apache may have been loaded
    somehow by default. I can check that the next time I fire the system up.
    Do you have any other tips on figuring out what might have 21 and 23 in use?

    ---
    þ SLMR 2.1a þ A nudist wedding makes the best man easy to identify.
    þ Synchronet þ CAPCITY2 * CCO BBS * capcity2.synchro.net:26
  • From Digital Man@VERT to Dumas Walker on Wednesday, May 23, 2018 19:33:13
    Re: cryptlib and other issues
    By: Dumas Walker to DIGITAL MAN on Wed May 23 2018 06:40 pm

    # grep 98 /usr/include/*/errno.h
    /usr/include/asm-generic/errno.h:#define EADDRINUSE 98 /* Address already in use */

    Neat! I need to try to remember this trick.

    That means the port (on the specified network interface) is already in use.

    Did you try adding REUSEADDR=1 to your ctrl/sockopts.ini file, like the FAQ said?

    No because it was still in use after a reboot, so I don't think sbbs has them in use. I *did* try the telnet trick that the FAQ mentions, though. The telnet and ftp ports refused connection, but port 80 did answer (I had received the '98' on all three of them).

    I was not able to see any of them active with a 'netstat' command but I
    have to admit I am not 100% on what I am looking at in the output of that command. I suspect, but don't know, that apache may have been loaded somehow by default. I can check that the next time I fire the system up.
    Do you have any other tips on figuring out what might have 21 and 23 in use?

    Did you just just run 'netstat' with no arguments? You must include the -l or -a options to display listening ports:

    -l, --listening
    Show only listening sockets. (These are omitted by default.)

    -a, --all
    Show both listening and non-listening sockets.

    Also, on Linux, you can include the -p option to display the PID/program name that owns the ports listed.

    http://wiki.synchro.net/monitor:syslog recommends using the command 'netstat -nap' to monitor socket usage.

    digital man

    Synchronet/BBS Terminology Definition #34:
    LF = Line Feed (ASCII 10, Ctrl-J)
    Norco, CA WX: 65.0øF, 71.0% humidity, 6 mph NE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Dumas Walker@VERT/CAPCITY2 to DIGITAL MAN on Thursday, May 24, 2018 19:21:00
    Did you just just run 'netstat' with no arguments? You must include the -l or -a options to display listening ports:

    I am trying -lp. I may be very dense but I don't see any of the port
    numbers I am trying to use (21, 23, 80) anywhere in either list it produces.

    One problem, since fixed, was that I was not running as su. :)

    On the 32-bit machine sbbs is currently running on, I do get the service
    name, like 'http', 'telnet', 'ftp', and they are all being used by sbbs.

    On the machine in question, the only one that shows up is http, and it is indeed in use by apache2. telnet and ftp do not show up. Since the port number does not show up (in any human-readable form), I am not sure if some other service has tied 21 and 23 up or not.

    I lied... ssh also shows up, in use by sshd. :)

    On the 32-bit machine, some numbers show up on the list instead of service names... 5500, 5501, 10088, 843... and all are in use by sbbs. On the
    machine in question, there are also other numbers in place of the service names, and they are being used by things like rpcbind, avahi-daemon, and minissdpd.

    I know how to disable apache to get the http port back. I guess my problem
    is being able to decipher which bit of the output means "Port 23" when the service "telnet" and the port number are not listed. :)

    ---
    þ SLMR 2.1a þ Here is a loud announcement... Silence in the studio!!
    þ Synchronet þ CAPCITY2 * CCO BBS * capcity2.synchro.net:26
  • From Dumas Walker@VERT/CAPCITY2 to DIGITAL MAN on Thursday, May 24, 2018 19:29:39
    Re: netstat
    By: Dumas Walker to DIGITAL MAN on Thu May 24 2018 19:21:00

    Here is a bit more... I just fired up sbbs in one window, and then did a 'netstat -lp' in another. Now, while sbbs is throwing the 98 errors in the first window, netstat now shows the services in question... telnet, ftp, etc... and shows them as being owned by sbbs.

    Quitting sbbs in the first window causes those services to no longer appear on the netstat-lp list when it is executed a second time.

    It almost seems like sbbs grabs the ports and then forgets it is the one that has them. :)

    ---
    þ Synchronet þ CAPCITY2 * CCO BBS * capcity2.synchro.net:26
  • From Digital Man@VERT to Dumas Walker on Thursday, May 24, 2018 22:27:01
    Re: netstat
    By: Dumas Walker to DIGITAL MAN on Thu May 24 2018 07:21 pm

    Did you just just run 'netstat' with no arguments? You must include the -l or -a options to display listening ports:

    I am trying -lp. I may be very dense but I don't see any of the port numbers I am trying to use (21, 23, 80) anywhere in either list it produces.

    You have to use the -n option for it port numbers instead of service/protocol names (e.g. "21", instead of "ftp").

    Type "man netstat" or run "netstat --help" to get help on how to use it.

    digital man

    Synchronet/BBS Terminology Definition #31:
    ISDN = Integrated Services Digital Network
    Norco, CA WX: 57.5øF, 86.0% humidity, 5 mph E wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Dumas Walker on Thursday, May 24, 2018 22:28:51
    Re: netstat cont'd
    By: Dumas Walker to DIGITAL MAN on Thu May 24 2018 07:29 pm

    Re: netstat
    By: Dumas Walker to DIGITAL MAN on Thu May 24 2018 19:21:00

    Here is a bit more... I just fired up sbbs in one window, and then did a 'netstat -lp' in another. Now, while sbbs is throwing the 98 errors in the first window, netstat now shows the services in question... telnet, ftp, etc... and shows them as being owned by sbbs.

    Quitting sbbs in the first window causes those services to no longer appear on the netstat-lp list when it is executed a second time.

    It almost seems like sbbs grabs the ports and then forgets it is the one that has them. :)

    Is it possible you have duplicate network interfaces in your sbbs.ini file? What is your "Interface" value set to in your sbbs.in file?

    digital man

    This Is Spinal Tap quote #40:
    Morty the Mime: Come on, don't talk back, mime is money, come on, move it. Norco, CA WX: 57.5øF, 86.0% humidity, 5 mph E wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Dumas Walker@VERT/CAPCITY2 to DIGITAL MAN on Friday, May 25, 2018 08:43:00
    You have to use the -n option for it port numbers instead of service/protocol names (e.g. "21", instead of "ftp").

    Ahhh... now I see them! When SBBS is not running, only ports 22, 25, and
    80 are engaged by other processes. 21 and 23 don't show up unless SBBS is running.

    Is it possible you have duplicate network interfaces in your sbbs.ini file? What is your "Interface" value set to in your sbbs.in file?

    The value in [Global] is set to "Interface=(blank)", which is the same as
    the setting on this board. It also shows up in other sections (ftp,
    services, etc.) and is also always blank.

    One thing I do need to do is to perform a more comprehensive comparison
    between the sbbs.ini on this system and the one on that one. There are probably some differences that should not be. I did not make many changes
    to it after installation, so it is close to stock.

    ---
    þ SLMR 2.1a þ A momentary lapse of reason that binds a life to a life..
    þ Synchronet þ CAPCITY2 * CCO BBS * capcity2.synchro.net:26
  • From Digital Man@VERT to Dumas Walker on Friday, May 25, 2018 10:32:19
    Re: netstat cont'd
    By: Dumas Walker to DIGITAL MAN on Fri May 25 2018 08:43 am

    You have to use the -n option for it port numbers instead of service/protocol names (e.g. "21", instead of "ftp").

    Ahhh... now I see them! When SBBS is not running, only ports 22, 25, and
    80 are engaged by other processes. 21 and 23 don't show up unless SBBS is running.

    Is it possible you have duplicate network interfaces in your sbbs.ini file? What is your "Interface" value set to in your sbbs.in file?

    The value in [Global] is set to "Interface=(blank)", which is the same as the setting on this board. It also shows up in other sections (ftp, services, etc.) and is also always blank.

    Can you paste a log of the startup, including errors, somewhere?

    digital man

    Synchronet/BBS Terminology Definition #41:
    REP = QWK Reply
    Norco, CA WX: 63.2øF, 64.0% humidity, 6 mph ENE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Tony Langdon@VERT to Dumas Walker on Saturday, May 26, 2018 08:12:00
    Dumas Walker wrote to DIGITAL MAN <=-

    Did you just just run 'netstat' with no arguments? You must include the -l
    r
    -a options to display listening ports:

    I am trying -lp. I may be very dense but I don't see any of the port numbers I am trying to use (21, 23, 80) anywhere in either list it produces.

    If you want to see port numbers, you will also need to include the n option, otherwise it will look up the service name in /etc/services and display that instead.

    One problem, since fixed, was that I was not running as su. :)

    On the 32-bit machine sbbs is currently running on, I do get the
    service name, like 'http', 'telnet', 'ftp', and they are all being used
    by sbbs.

    On the machine in question, the only one that shows up is http, and it
    is indeed in use by apache2. telnet and ftp do not show up. Since the port number does not show up (in any human-readable form), I am not
    sure if some other service has tied 21 and 23 up or not.

    The service name comes from /etc/services, which maps port numbers to service names, so if you don't see "ftp" in the list of listening ports, then there's nothing listening on port 21. Same for "telnet" and port 23. Using the -n argument in your netstat command line will give you port numbers instead of service names.


    ... An experiment in Artificial Stupidity.
    === MultiMail/Win32 v0.49
    --- SBBSecho 3.03-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (3:633/410)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net