• Re: Small bug

    From g00r00@1:129/215 to Mike Fenton on Wed Jan 4 11:27:16 2023
    1) Check logs to see what it says when it can't load the menu.

    2023.01.04 06:37:07 Setting start menu:
    2023.01.04 06:37:07 Error loading menu:
    2023.01.04 06:37:07 Shutting down

    Can you upgrade to the latest build in prealpha when you have time and check the logs again. I changed it to show where its taking the menu value from which should help me get to the bottom of the issue.

    ... DOS=HIGH? I knew it was on something...

    --- Mystic BBS v1.12 A48 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From g00r00@1:129/215 to Björn Wiberg on Wed Jan 4 11:40:22 2023
    choose to disable the anti-spoofing (IP) check? E.g. for the scenario
    when a user uses fTelnet (an fTelnet proxy somewhere in the world) and then wants to download the file via his/her web browser (another IP)?

    fTelnet should be responding to a SENDLOC request which allows Mystic to get the non-proxied IP address of the user. This is either not working or Mystic is accidentally not using that IP for web downloads which is highly possible.

    If we can't get that working then I think the trusted proxy IP option is probably the way to go. I'll try to take a look at that tonight.

    A configuration option for the download URL (e.g. if you have a web
    server in front of MIS for HTTPS support with a "real" SSL certificate) would also be a great addition. :)

    The web server does support HTTPS but there was a delay when negotiating connections with CryptLib. I couldn't figure out why at the time so if memory serves me, I disabled SSL and never came back to it.

    It is technically possible to import a CA signed cert for the BBS but Cryptlib doesn't have tools to import standard certificate formats (from what I remember) into their proprietary keystore.

    I would like to switch to OpenSSL instead because CryptLib has been annoying to work with for me, and that could simplify much of this stuff. The problem is that I don't believe OpenSSL supports a SSH server which would be something we need to figure out first.

    ... User Error: Replace user and hit any key to continue...

    --- Mystic BBS v1.12 A48 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From Mike Fenton@1:229/310 to g00r00 on Wed Jan 4 13:35:37 2023
    Can you upgrade to the latest build in prealpha when you have time and check the logs again. I changed it to show where its taking the menu value from which should help me get to the bottom of the issue.

    ------------------- Node 1 (Mystic v1.12 A48 2023/01/04)
    2023.01.04 13:33:01 Connect from 10.1.1.124 (Unknown)
    2023.01.04 13:33:01 Country: Unknown
    2023.01.04 13:33:01 Set time left 15
    2023.01.04 13:33:16 todd logged in
    2023.01.04 13:33:16 Set time left 60
    2023.01.04 13:33:16 Setting time left to 60
    2023.01.04 13:33:16 Setting menu to "" (Security start menu)
    2023.01.04 13:33:16 Error loading menu:
    2023.01.04 13:33:16 Shutting down

    You can also just go into the user and do a CTRL+U select the security level and it never changes the start menu for the user.

    ... Shortcut: longest distance between two points

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Clutch BBS * telnet://bbs.clutchbbs.com (1:229/310)
  • From g00r00@1:129/215 to Mike Fenton on Wed Jan 4 15:03:53 2023
    2023.01.04 13:33:16 Setting time left to 60
    2023.01.04 13:33:16 Setting menu to "" (Security start menu)
    2023.01.04 13:33:16 Error loading menu:

    You can also just go into the user and do a CTRL+U select the security level and it never changes the start menu for the user.

    I was able to find the issue with that logging, thank you! I am uploading a new build now which will include the fix.

    As far as it not updating the user field when you upgrade the user security level, thats expected behavior. Older versions would copy the start menu from the security into the user record, but now it just pulls the menu name directly from the security record.

    The reason for the change is because if you wanted to change the start menu for a security level in the past you'd have to then go into each user's record and update their start menu field. Now you can blank out all of the user's start menu fields and let it pull the menu from the system default or their security profile. You'd only set the start menu directly on the user's record if you really wanted them to have their own custom start menu.

    Hope I was able to explain that in a way that made sense lol.

    On login:

    If user record has a start menu defined, Mystic will use it. If not, it will check their security level profile and use the start menu defined there. If that is also blank, it will then use the default start menu defined in System Configuration > General settings.

    ... My reality check just bounced

    --- Mystic BBS v1.12 A48 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From Paul Hayton@3:770/100 to g00r00 on Thu Jan 5 09:52:53 2023
    On 04 Jan 2023 at 03:03p, g00r00 pondered and said...

    As far as it not updating the user field when you upgrade the user security level, thats expected behavior. Older versions would copy the start menu from the security into the user record, but now it just pulls the menu name directly from the security record.

    The reason for the change is because if you wanted to change the start menu for a security level in the past you'd have to then go into each user's record and update their start menu field. Now you can blank out all of the user's start menu fields and let it pull the menu from the system default or their security profile. You'd only set the start menu directly on the user's record if you really wanted them to have their
    own custom start menu.

    Hope I was able to explain that in a way that made sense lol.

    I think I'll put up something in the FAQ about this as it seems to be something that folks may need some further education / awareness on.

    Your explanation makes sense to me but for those of us using Mystic for a while I can see how what was a previously filled field now blank may be concerning.

    What I think this will do is make folks more aware of the setup / settings in the defined security areas.

    Kerr Avon [Blake's 7] 'I'm not expendable, I'm not stupid and I'm not going' avon[at]bbs.nz | bbs.nz | fsxnet.nz

    --- Mystic BBS v1.12 A47 2021/12/24 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (3:770/100)
  • From Paul Hayton@3:770/100 to All on Thu Jan 5 10:00:55 2023
    On 05 Jan 2023 at 09:52a, Paul Hayton pondered and said...

    Hope I was able to explain that in a way that made sense lol.

    I think I'll put up something in the FAQ about this as it seems to be something that folks may need some further education / awareness on.

    Done, there's now a new entry on the Wiki covering this. Hope this helps. :)

    Kerr Avon [Blake's 7] 'I'm not expendable, I'm not stupid and I'm not going' avon[at]bbs.nz | bbs.nz | fsxnet.nz

    --- Mystic BBS v1.12 A47 2021/12/24 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (3:770/100)
  • From Mike Fenton@1:229/310 to g00r00 on Wed Jan 4 16:21:37 2023
    I was able to find the issue with that logging, thank you! I am
    uploading a new build now which will include the fix.

    Sweet! I'll grab it now.

    As far as it not updating the user field when you upgrade the user security level, thats expected behavior. Older versions would copy the start menu from the security into the user record, but now it just pulls the menu name directly from the security record.

    The reason for the change is because if you wanted to change the start menu for a security level in the past you'd have to then go into each user's record and update their start menu field. Now you can blank out all of the user's start menu fields and let it pull the menu from the system default or their security profile. You'd only set the start menu directly on the user's record if you really wanted them to have their
    own custom start menu.

    Hope I was able to explain that in a way that made sense lol.


    Makes perfect sense. There was something else related to this kind of change to. A mass way of updating users security levels? Any way of doing that. I'm getting of topic, but curious.

    ... A Meteor is an example of a rock star.

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Clutch BBS * telnet://bbs.clutchbbs.com (1:229/310)
  • From g00r00@1:129/215 to Paul Hayton on Wed Jan 4 16:23:29 2023
    I think I'll put up something in the FAQ about this as it seems to be something that folks may need some further education / awareness on.

    It couldn't hurt. It should be somewhere in there thats for sure. FAQ might make sense and then when it comes time to document the start menu fields in System Config, Security editor, user editor, etc it can link back to that FAQ?

    I did discuss it in the whatsnew also.

    At least in this case I don't think Mike was confused, it was just that Mystic wasn't working correctly. Should be fixed now and now the logging is better too because of it, which will only help.

    ... Anything is possible if you don't know what you're talking about

    --- Mystic BBS v1.12 A48 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From g00r00@1:129/215 to Mike Fenton on Wed Jan 4 18:13:03 2023
    Makes perfect sense. There was something else related to this kind of change to. A mass way of updating users security levels? Any way of
    doing that. I'm getting of topic, but curious.

    There isn't a global user editor for some reason. I don't really remember why I never made one considering things like Echomail nodes, msg/file bases all have them.

    I don't want to work on it before A48 at this point since I'd like to get this thing released sooner than later, but I think it could be something that I focus on early in A49

    ... Real Programmers balance their checkbooks in hex

    --- Mystic BBS v1.12 A48 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From Paul Hayton@3:770/100 to g00r00 on Thu Jan 5 12:34:47 2023
    On 04 Jan 2023 at 04:23p, g00r00 pondered and said...

    It couldn't hurt. It should be somewhere in there thats for sure. FAQ might make sense and then when it comes time to document the start menu fields in System Config, Security editor, user editor, etc it can link back to that FAQ?

    I did discuss it in the whatsnew also.

    Yep, all good. I did take from that explanation and use it in the FAQ :)

    Kerr Avon [Blake's 7] 'I'm not expendable, I'm not stupid and I'm not going' avon[at]bbs.nz | bbs.nz | fsxnet.nz

    --- Mystic BBS v1.12 A47 2021/12/24 (Linux/64)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (3:770/100)
  • From Mike Fenton@1:229/310 to g00r00 on Wed Jan 4 19:02:20 2023
    On 04 Jan 2023, g00r00 said the following...

    Makes perfect sense. There was something else related to this kind of change to. A mass way of updating users security levels? Any way of doing that. I'm getting of topic, but curious.

    There isn't a global user editor for some reason. I don't really
    remember why I never made one considering things like Echomail nodes, msg/file bases all have them.

    I don't want to work on it before A48 at this point since I'd like to
    get this thing released sooner than later, but I think it could be something that I focus on early in A49


    Alright don't mean to add more to your list.

    I have some other questions, unrelated to this.

    I will create a new message.

    ... Everyone smiles in the same language.

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Clutch BBS * telnet://bbs.clutchbbs.com (1:229/310)
  • From g00r00@1:129/215 to Mike Fenton on Wed Jan 4 19:53:16 2023
    Alright don't mean to add more to your list.

    All good. I'm always open to suggestions!

    I have some other questions, unrelated to this.
    I will create a new message.

    Sounds good!

    ... Message encrypted: Press ALT-F4 to read encoded message

    --- Mystic BBS v1.12 A48 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From Björn Wiberg@2:201/137 to g00r00 on Thu Jan 5 08:27:42 2023
    Hello g00r00!

    Thank you for your reply!

    On 04 Jan 2023, g00r00 said the following...
    fTelnet should be responding to a SENDLOC request which allows Mystic to get the non-proxied IP address of the user. This is either not working
    or Mystic is accidentally not using that IP for web downloads which is highly possible.

    Yes, it seems so. I have enabled the fTelnet SendLocation support (I'm using the https://embed-v2.ftelnet.ca/ fTelnet Embed Wizard), but still see the proxy IP instead of the client IP in the .dlreq data file.

    A tcpdump with -XX -vvv shows that the real IP (188.149.153.205) appears to be sent by the fTelnet proxy (if I interpret things correctly):

    08:19:23.359427 IP (tos 0x0, ttl 64, id 60413, offset 0, flags [DF], proto TCP (6), length 106)
    glimmer.localdomain.61023 > 81-4-100-99.cloud.ramnode.com.32794: Flags [P.], cksum 0x7771 (incorrect -> 0x8d1a), seq 119:173, ack 42, win 510, options [nop,nop,TS val 1317211997 ecr 945308165], length 54
    0x0000: 1831 bf65 a99c 94c6 91a0 202b 0800 4500 .1.e.......+..E.
    0x0010: 006a ebfd 4000 4006 d77b c0a8 0105 5104 .j..@.@..{....Q.
    0x0020: 6463 ee5f 801a ded2 6d09 f420 cc9f 8018 dc._....m.......
    0x0030: 01fe 7771 0000 0101 080a 4e83 0f5d 3858 ..wq......N..]8X
    0x0040: 4205 0d0a 4465 7465 6374 696e 6720 7465 B...Detecting.te
    0x0050: 726d 696e 616c 2065 6d75 6c61 7469 6f6e rminal.emulation
    0x0060: 3a20 1b5b 731b 5b32 3535 421b 5b32 3535 :..[s.[255B.[255
    0x0070: 431b 5b36 6e1b 5b75 C.[6n.[u

    08:19:23.386349 IP (tos 0x0, ttl 58, id 36065, offset 0, flags [DF], proto
    TCP (6), length 70) 81-4-100-99.cloud.ramnode.com.32794 > glimmer.localdomain.61023: Flags [P.], cksum 0x0c2b (correct), seq 42:60, ack 173, win 58, options [nop,nop,TS val 945308236 ecr 1317211997], length 18 0x0000: 94c6 91a0 202b 1831 bf65 a99c 0800 4500 .....+.1.e....E. 0x0010: 0046 8ce1 4000 3a06 3cbc 5104 6463 c0a8 .F..@.:.<.Q.dc.. 0x0020: 0105 801a ee5f f420 cc9f ded2 6d3f 8018 ....._......m?.. 0x0030: 003a 0c2b 0000 0101 080a 3858 424c 4e83 .:.+......8XBLN. 0x0040: 0f5d 3138 382e 3134 392e 3135 332e 3230 .]188.149.153.20 0x0050: 350a fff0 5...

    So maybe Mystic doesn't pick this up, or doesn't use it for web downloads?

    The node log shows:

    ------------------- Node 3 (Mystic v1.12 A48 2023/01/03)
    2023.01.05 08:19:23 Connect from 81.4.100.99 (81-4-100-99.cloud.ramnode.com) 2023.01.05 08:19:23 Country: Netherlands
    2023.01.05 08:19:23 Set time left 20

    (By the way, maybe both the proxy IP and the real IP ought to be logged there for troubleshooting? Just thinking aloud...)

    Thanks again!

    Best regards
    Björn

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)
  • From g00r00@1:129/215 to Björn Wiberg on Thu Jan 5 11:47:27 2023
    Yes, it seems so. I have enabled the fTelnet SendLocation support (I'm using the https://embed-v2.ftelnet.ca/ fTelnet Embed Wizard), but still see the proxy IP instead of the client IP in the .dlreq data file.

    I added some logging into the MIS window for the telnet location and its in the latest Linux/Pi builds that I just put up. It does look like I wasn't passing the location IP into Mystic, but there is code there to get the value.

    Lets first make sure that the location part works and then I can move on to getting dlreq sorted out.

    ... Enter any 12-digit prime number to continue.

    --- Mystic BBS v1.12 A48 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From Björn Wiberg@2:201/137 to g00r00 on Fri Jan 6 19:47:08 2023
    Hello g00r00!

    Thank you for your reply!

    On 05 Jan 2023, g00r00 said the following...
    I added some logging into the MIS window for the telnet location and its in the latest Linux/Pi builds that I just put up. It does look like I wasn't passing the location IP into Mystic, but there is code there to
    get the value.

    Lets first make sure that the location part works and then I can move on to getting dlreq sorted out.

    I just pulled the latest 64-bit Linux A48 prealpha, but I'm afraid it doesn't appear to work as it still logs:

    ------------------- Node 2 (Mystic v1.12 A48 2023/01/05)
    2023.01.06 19:43:43 Connect from 81.4.100.99 (81-4-100-99.cloud.ramnode.com) 2023.01.06 19:43:43 Country: Netherlands

    Best regards
    Björn

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)
  • From g00r00@1:129/215 to Björn Wiberg on Fri Jan 6 14:03:42 2023
    I just pulled the latest 64-bit Linux A48 prealpha, but I'm afraid it doesn't appear to work as it still logs:

    ------------------- Node 2 (Mystic v1.12 A48 2023/01/05)
    2023.01.06 19:43:43 Connect from 81.4.100.99 (81-4-100-99.cloud.ramnode.com) 2023.01.06 19:43:43 Country: Netherlands

    Sorry I didn't explain it well. The log you need to look at is the MIS log. It should log that it received a telnet location when the connection received is logged.

    Or it might I should say lol

    ... Fer sell cheep: BBS spel chekker. Wurks grate.

    --- Mystic BBS v1.12 A48 (Windows/64)
    * Origin: Sector 7 * Mystic WHQ (1:129/215)
  • From Björn Wiberg@2:201/137 to g00r00 on Sat Jan 7 15:33:00 2023
    Hello g00r00!

    Thank you for your reply!

    On 06 Jan 2023, g00r00 said the following...
    Sorry I didn't explain it well. The log you need to look at is the MIS log. It should log that it received a telnet location when the
    connection received is logged.

    Unfortunately, the MIS log appears to log only the proxy IP as well:

    + 2023.01.07 15:31:28 TELNET > Connect on slot 1/10 (81.4.100.99)
    + 2023.01.07 15:31:28 TELNET 1-HostName 81-4-100-99.cloud.ramnode.com
    + 2023.01.07 15:31:28 TELNET 1-Country Netherlands (NL)
    + 2023.01.07 15:31:29 TELNET 1-Creating terminal process

    Best regards
    Björn

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)