• ftelnet into bbs from synchronet-web-v4?

    From Hemo@VERT to echicken / all on Mon Sep 12 21:56:46 2016
    echicken,

    I've got most of the synchronet-web-v4 stuff setup on my board, but can't quite figure out allowing ftelnet to connect to my system.

    I checked your system, and it appears I can't connect to your system using ftelnet from your web page either.

    In both cases, I am _not_ logged in to the BBS, but visit the WWW site for the system and click on the 'Connect via Telnet' button under the ftelnet window. The screen appears to be trying to do 'something' and then eventually goes dark gray after about 8-10 seconds.

    I have tried this with the firewall disabled, and still get the same results on my system. I am running on a vhost, and there are no external firewall, just the software within the CentOS I am using. (iptables)

    I am able to take the stand alone ftelnet app and connect to my system, so I am curious if there more settings not mentioned on the github page I need to do?

    thanks for any info,
    Hemo

    ... In comparison, there's no comparison.

    ---
    þ Synchronet þ -
  • From echicken@VERT to Hemo on Tue Sep 13 00:24:08 2016
    Re: ftelnet into bbs from synchronet-web-v4?
    By: Hemo to echicken / all on Mon Sep 12 2016 21:56:46

    I've got most of the synchronet-web-v4 stuff setup on my board, but can't quite figure out allowing ftelnet to connect to my system.

    I checked your system, and it appears I can't connect to your system using ftelnet from your web page either.

    Coincidentally, I tried using it earlier this evening and it wouldn't let me connect the first couple of times. Then, as I was trying to figure out why, it just started working again. So I'm not sure what the problem is but I'll look into it further.

    In both cases, I am _not_ logged in to the BBS, but visit the WWW site for

    For fTelnet on the Home page, it doesn't matter if you are or aren't logged into the website. On the Games page, however, it does matter (and IIRC by default this page is not available to the guest user).

    window. The screen appears to be trying to do 'something' and then eventually goes dark gray after about 8-10 seconds.

    Similar to what I was seeing earlier. In my case fTelnet did connect to my system, but then ran into an error (I don't recall what).

    I have tried this with the firewall disabled, and still get the same

    Per the instructions you should have two services enabled in 'ctrl/services.ini': 'WebSocket' and 'WebSocketRLogin', listening on ports 1123 and 1513 respectively (or whichever ports you like, those are just the ones I pulled out of my ass while writing the readme). As long as those ports are open between your BBS and whatever machine you're using the web browser on, then there shouldn't be any firewall concerns.

    If you monitor your BBS logs and see WebSocket and WebSocketRLogin messages from the services thread coinciding with your attempts to connect via fTelnet, then that means the connection is being made but something else is going wrong past that point. (That's what was happening here earlier.) This too would confirm that it's not a firewall thing.

    I am able to take the stand alone ftelnet app and connect to my system, so

    Okay, that lines up with where I expect the problem to be found. I'll see what I can do, but for me the problem is intermittent so it may take a while to track down.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Hemo@VERT to echicken on Wed Sep 14 11:44:43 2016
    Re: ftelnet into bbs from synchronet-web-v4?
    By: Hemo to echicken / all on Mon Sep 12 2016 21:56:46

    Coincidentally, I tried using it earlier this evening and it wouldn't let me connect the first couple of times. Then, as I was trying to figure out why, it just started working again. So I'm not sure what the problem is but I'll look into it further.

    For fTelnet on the Home page, it doesn't matter if you are or aren't logged into the website. On the Games page, however, it does matter (and IIRC by default this page is not available to the guest user).

    Similar to what I was seeing earlier. In my case fTelnet did connect to my system, but then ran into an error (I don't recall what).

    Per the instructions you should have two services enabled in 'ctrl/services.ini': 'WebSocket' and 'WebSocketRLogin', listening on ports 1123 and 1513 respectively (or whichever ports you like, those are just the ones I pulled out of my ass while writing the readme). As long as those ports are open between your BBS and whatever machine you're using the web browser on, then there shouldn't be any firewall concerns.

    If you monitor your BBS logs and see WebSocket and WebSocketRLogin messages from the services thread coinciding with your attempts to connect via fTelnet, then that means the connection is being made but something else is going wrong past that point. (That's what was happening here earlier.) This too would confirm that it's not a firewall thing.

    Okay, that lines up with where I expect the problem to be found. I'll see what I can do, but for me the problem is intermittent so it may take a while to track down.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    â–  Synchronet â–  electronic chicken bbs - bbs.electronicchicken.com


    I monitored my sbbs.log and this is what I get when I click on the ftelnet 'connect' button:

    Sep 14 11:29:06 bbs synchronet: srvc 0027 WebSocket connection accepted from: 99.199.99.299 port 7042
    Sep 14 11:29:17 bbs synchronet: srvc 0027 WebSocket service thread terminated (0 clients remain, 1 total, 3 served)
    Sep 14 11:29:17 bbs synchronet: srvc 0027 !ERROR 9 closing socket
    Sep 14 11:29:20 bbs synchronet: web 0042 Request: GET /api/system.ssjs?call=node-list HTTP/1.1
    Sep 14 11:29:20 bbs synchronet: web 0042 Sending file: /sbbs/tmp/SBBS_SSJS.99.99.html (0 bytes)


    I masked the IP, but was wondering about the port 7042 it shows.. this is from my services.ini:

    [WebSocket]
    Port=1123
    Options=NO_HOST_LOOKUP
    Command=websocket-telnet-service.js

    [WebSocketRLogin]
    Port=1513
    Options=NO_HOST_LOOKUP
    Command=websocket-rlogin-service.js


    Here is the snip from modopts.ini:
    [logon]
    ; Set rlogin_xtrn_menu to true if you want your RLogin server to act as a door game server only
    rlogin_xtrn_menu = true
    ; Set rlogin_auto_xtrn to true if you want your RLogin server to support direct-to-door request
    ; (e.g. Web Externals)
    rlogin_auto_xtrn = true

    I should also note that attempting to run a door (any) after logging in to the html web doesn't work, but get a slightly different error:

    Sep 14 11:41:05 bbs synchronet: srvc 0027 WebSocketRLogin connection accepted from: 99.199.99.299 port 7116
    Sep 14 11:41:06 bbs synchronet: web 0027 Session thread terminated (2 clients, 7 threads remain, 651 served)
    Sep 14 11:41:06 bbs synchronet: web 0044 Session thread terminated (1 clients, 5 threads remain, 651 served)
    Sep 14 11:41:15 bbs synchronet: srvc 0027 WebSocketRLogin RLogin: Unable to connect to server.
    Sep 14 11:41:15 bbs synchronet: srvc 0027 WebSocketRLogin service thread terminated (0 clients remain, 1 total, 3 served)
    Sep 14 11:41:15 bbs synchronet: srvc 0027 !ERROR 9 closing socket


    So.. this one clearly says unable to connect to server. Any idea what !ERROR 9 points to?

    thanks,

    Hemo

    ---
    þ Synchronet þ - Running madly into the wind and screaming - bbs.ujoint.org
  • From Digital Man@VERT to Hemo on Wed Sep 14 10:14:55 2016
    Re: ftelnet into bbs from synchronet-web-v4?
    By: Hemo to echicken on Wed Sep 14 2016 11:44 am

    Re: ftelnet into bbs from synchronet-web-v4?
    By: Hemo to echicken / all on Mon Sep 12 2016 21:56:46

    Coincidentally, I tried using it earlier this evening and it wouldn't let me connect the first couple of times. Then, as I was trying to figure out why, it just started working again. So I'm not sure what the problem is but I'll look into it further.

    For fTelnet on the Home page, it doesn't matter if you are or aren't logged into the website. On the Games page, however, it does matter (and IIRC by default this page is not available to the guest user).

    Similar to what I was seeing earlier. In my case fTelnet did connect to my system, but then ran into an error (I don't recall what).

    Per the instructions you should have two services enabled in 'ctrl/services.ini': 'WebSocket' and 'WebSocketRLogin', listening on ports 1123 and 1513 respectively (or whichever ports you like, those are just the ones I pulled out of my ass while writing the readme). As long as those ports are open between your BBS and whatever machine you're using the web browser on, then there shouldn't be any firewall concerns.

    If you monitor your BBS logs and see WebSocket and WebSocketRLogin messages from the services thread coinciding with your attempts to connect via fTelnet, then that means the connection is being made but something else is going wrong past that point. (That's what was happening here earlier.) This too would confirm that it's not a firewall thing.

    Okay, that lines up with where I expect the problem to be found. I'll see what I can do, but for me the problem is intermittent so it may take a while to track down.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    â–  Synchronet â–  electronic chicken bbs - bbs.electronicchicken.com


    I monitored my sbbs.log and this is what I get when I click on the ftelnet 'connect' button:

    Sep 14 11:29:06 bbs synchronet: srvc 0027 WebSocket connection accepted from: 99.199.99.299 port 7042
    Sep 14 11:29:17 bbs synchronet: srvc 0027 WebSocket service thread terminated (0 clients remain, 1 total, 3 served)
    Sep 14 11:29:17 bbs synchronet: srvc 0027 !ERROR 9 closing socket
    Sep 14 11:29:20 bbs synchronet: web 0042 Request: GET /api/system.ssjs?call=node-list HTTP/1.1
    Sep 14 11:29:20 bbs synchronet: web 0042 Sending file: /sbbs/tmp/SBBS_SSJS.99.99.html (0 bytes)


    I masked the IP, but was wondering about the port 7042 it shows.. this is from my services.ini:

    [WebSocket]
    Port=1123
    Options=NO_HOST_LOOKUP
    Command=websocket-telnet-service.js

    [WebSocketRLogin]
    Port=1513
    Options=NO_HOST_LOOKUP
    Command=websocket-rlogin-service.js

    That (7042 in this case) is the TCP port of the *client* which has no relation to the destination ports on the *server*. See https://en.wikipedia.org/wiki/Ephemeral_port for more details.

    Sep 14 11:41:15 bbs synchronet: srvc 0027 !ERROR 9 closing socket


    So.. this one clearly says unable to connect to server. Any idea what !ERROR 9 points to?

    From errno.h:
    #define EBADF 9

    That means the socket being closed is no longer a valid socket descriptor (handle). It was likely already closed.

    digital man

    Synchronet "Real Fact" #4:
    Synchronet version 3 is written mostly in C, with some C++, x86 ASM, and Pascal.
    Norco, CA WX: 63.9øF, 72.0% humidity, 1 mph SE wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Ver
  • From Steven Sheeley@VERT to Hemo on Wed Sep 14 13:38:59 2016
    Hello Hemo!

    14 Sep 16 11:44, you wrote to echicken:

    I monitored my sbbs.log and this is what I get when I click on the
    ftelnet 'connect' button:

    Sep 14 11:29:06 bbs synchronet: srvc 0027 WebSocket connection
    accepted from: 99.199.99.299 port 7042 Sep 14 11:29:17 bbs synchronet: srvc 0027 WebSocket service thread terminated (0 clients remain, 1
    total, 3 served) Sep 14 11:29:17 bbs synchronet: srvc 0027 !ERROR 9 closing socket Sep 14 11:29:20 bbs synchronet: web 0042 Request: GET /api/system.ssjs?call=node-list HTTP/1.1 Sep 14 11:29:20 bbs
    synchronet: web 0042 Sending file: /sbbs/tmp/SBBS_SSJS.99.99.html (0 bytes)


    I had the exact same issue. Mine turned out to ne an entry n the host.can file of <no name> (No sure if the proper capped or not). Once I removed that entry and recycled the terminal server it worked like a charm.




    Steven


    ... Hardware hackers DO IT with maximum ratings.

    ---
    þ Synchronet þ Split Infinity BB
  • From echicken@VERT to Hemo on Wed Sep 14 20:07:39 2016
    Not sure about the problem with fTelnet on the home page, but I'll take a look at it soon.

    I should also note that attempting to run a door (any) after logging in to the html web doesn't work, but get a slightly different error:

    Sep 14 11:41:15 bbs synchronet: srvc 0027 WebSocketRLogin RLogin: Unable to connect to server.

    Is your BBS listening for rlogin connections? Check the [BBS] section of ctrl/sbbs.ini, ensure that ALLOW_RLOGIN is included in the 'Options', and ensure that 'RLoginPort' is set to something (usually 513).

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Hemo@VERT to Steven Sheeley on Wed Sep 14 19:47:14 2016
    Re: ftelnet into bbs from synchronet-web-v4?
    By: Steven Sheeley to Hemo on Wed Sep 14 2016 01:38 pm

    Hello Hemo!

    14 Sep 16 11:44, you wrote to echicken:

    I monitored my sbbs.log and this is what I get when I click on the
    ftelnet 'connect' button:

    Sep 14 11:29:06 bbs synchronet: srvc 0027 WebSocket connection
    accepted from: 99.199.99.299 port 7042 Sep 14 11:29:17 bbs
    synchronet: srvc 0027 WebSocket service thread terminated (0 clients
    remain, 1 total, 3 served) Sep 14 11:29:17 bbs synchronet: srvc 0027
    !ERROR 9 closing socket Sep 14 11:29:20 bbs synchronet: web 0042
    Request: GET /api/system.ssjs?call=node-list HTTP/1.1 Sep 14
    11:29:20 bbs synchronet: web 0042 Sending file:
    /sbbs/tmp/SBBS_SSJS.99.99.html (0 bytes)


    I had the exact same issue. Mine turned out to ne an entry n the host.can file of <no name> (No sure if the proper capped or not). Once I removed that entry and recycled the terminal server it worked like a charm.


    well... drat. my host.can file is completey empty other than the original 3 commented lines.

    I'll keep looking. It may have been missed, but in my original post, I did mention that I can take ftelnet stand-alone and it will connect to the bbs over port 23. and... as I typed that I realized duh.. it's a different port that websockets..

    been a long day already.
    --
    Hemo

    ... I'd rather have a bottle in front of me than a frontal lobotomy.

    ---
    þ Synchr
  • From Hemo@VERT to echicken on Wed Sep 14 23:17:29 2016
    Re: ftelnet into bbs from synchronet-web-v4?
    By: echicken to Hemo on Wed Sep 14 2016 08:07 pm

    Not sure about the problem with fTelnet on the home page, but I'll take a look at it soon.

    I should also note that attempting to run a door (any) after logging
    in to the html web doesn't work, but get a slightly different error:

    Sep 14 11:41:15 bbs synchronet: srvc 0027 WebSocketRLogin RLogin:
    Unable to connect to server.

    Is your BBS listening for rlogin connections? Check the [BBS] section of ctrl/sbbs.ini, ensure that ALLOW_RLOGIN is included in the 'Options', and ensure that 'RLoginPort' is set to something (usually 513).


    yes, and yes. I could post up the entire file, but under the [BBS] section I can find the following lines:

    Options = XTRN_MINIMIZED | ALLOW_SSH | ALLOW_RLOGIN| GET_IDENT | MUTE RLoginPort=513


    Knowing me, this is going to be one of those 'how the heck did you have xyz working with abc? That's the issue and I'm surprised anything was working at all...'

    --
    Hemo

    ... I knew I was an unwanted baby. One of my bath toys were a toaster.

    ---
    þ Synchronet þ - Running madly into the wind and screaming - bbs.ujoint.org