• FTP not fully working

    From Nightfox@1:103/705 to All on Tuesday, July 25, 2023 08:08:12
    It seems that FTP on my BBS isn't fully working. I can connect, but am unable to get a directory listing.

    This is output from Linux ftp client - When I try to do a dir, it just hangs and times out:

    ftp digitaldistortionbbs.com
    Connected to digdist.synchro.net.
    220-Digital Distortion (digitaldistortionbbs.com)
    Synchronet FTP Server 3.20a-Linux Ready
    220 Please enter your user name.
    Name (digitaldistortionbbs.com:erico): nightfox
    331 User name okay, need password.
    Password:
    230-Nightfox logged in.
    230 You are allowed 240 minutes of use for this session.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    passive
    Passive mode: off; fallback to active mode: off.
    passive
    Passive mode: on; fallback to active mode: on.
    dir
    229 Entering Extended Passive Mode (|||1024|)
    ftp: Can't connect to `50.39.138.73:1024': Connection timed out
    200 PORT Command successful.
    150 Opening ASCII mode data connection for /bin/ls.


    My FTP configuration settings in my sbbs.ini:
    [FTP] FTP Server
    AutoStart = true
    Port = 21
    MaxClients = 10
    MaxInactivity = 300
    QwkTimeout = 600
    MinFileSize = 0
    MaxFileSize = 0
    Interface =

    ; Passive transfer settings to work-around broken/stupid firewall/NAT devices
    ; see docs/tcpip_faq.html for details
    ; the LOOKUP_PASV_IP option can be useful for dynamic IPs
    PasvIpAddress = 0.0.0.0
    PasvPortLow = 1024
    PasvPortHigh = 1099

    ; Sound/wave files to play on specific events (Windows only):
    AnswerSound =
    HangupSound =
    HackAttemptSound =

    ; Dynamically generated index files
    IndexFileName = 00index
    Options = ALLOW_QWK


    For PasvPortLow and PasvPortHigh, I do have those ports configured in my router for port range forwarding to my BBS machine.

    I'm not sure what might be wrong, as it was working not too long ago.

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Nightfox on Tuesday, July 25, 2023 11:57:41
    Re: FTP not fully working
    By: Nightfox to All on Tue Jul 25 2023 08:08 am

    It seems that FTP on my BBS isn't fully working. I can connect, but am unable to get a directory listing.

    This is output from Linux ftp client - When I try to do a dir, it just hangs and times out:

    ftp digitaldistortionbbs.com
    Connected to digdist.synchro.net.
    220-Digital Distortion (digitaldistortionbbs.com)
    Synchronet FTP Server 3.20a-Linux Ready
    220 Please enter your user name.
    Name (digitaldistortionbbs.com:erico): nightfox
    331 User name okay, need password.
    Password:
    230-Nightfox logged in.
    230 You are allowed 240 minutes of use for this session.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    passive
    Passive mode: off; fallback to active mode: off.

    Did you try a "dir" again with passive mode off?

    passive
    Passive mode: on; fallback to active mode: on.
    dir
    229 Entering Extended Passive Mode (|||1024|)
    ftp: Can't connect to `50.39.138.73:1024': Connection timed out
    200 PORT Command successful.
    150 Opening ASCII mode data connection for /bin/ls.


    My FTP configuration settings in my sbbs.ini:
    [FTP] FTP Server
    AutoStart = true
    Port = 21
    MaxClients = 10
    MaxInactivity = 300
    QwkTimeout = 600
    MinFileSize = 0
    MaxFileSize = 0
    Interface =

    ; Passive transfer settings to work-around broken/stupid firewall/NAT devices
    ; see docs/tcpip_faq.html for details
    ; the LOOKUP_PASV_IP option can be useful for dynamic IPs
    PasvIpAddress = 0.0.0.0
    PasvPortLow = 1024
    PasvPortHigh = 1099

    ; Sound/wave files to play on specific events (Windows only):
    AnswerSound =
    HangupSound =
    HackAttemptSound =

    ; Dynamically generated index files
    IndexFileName = 00index
    Options = ALLOW_QWK


    For PasvPortLow and PasvPortHigh, I do have those ports configured in my router for port range forwarding to my BBS machine.

    I'm not sure what might be wrong, as it was working not too long ago.

    There haven't been any changes in the FTP server lately, at least not in this regard. If anything changed, its on your end.

    Is the client and the server in the same private network? I noticed the address being sent back to the client a public IP address. That will only work if your gateway/router supports hair-pinning.
    https://wiki.synchro.net/faq:tcpip#ftp_nat
    --
    digital man (rob)

    Breaking Bad quote #19:
    Yeah, I know these two knob jobs. - Hank Schrader
    Norco, CA WX: 93.9øF, 41.0% humidity, 4 mph ESE wind, 0.00 inches rain/24hrs --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to Digital Man on Tuesday, July 25, 2023 12:40:21
    Re: FTP not fully working
    By: Digital Man to Nightfox on Tue Jul 25 2023 11:57 am

    Did you try a "dir" again with passive mode off?

    Yes - It timed out when I did that:

    passive
    Passive mode: off; fallback to active mode: off.
    dir
    200 PORT Command successful.
    150 Opening ASCII mode data connection for /bin/ls.
    ftp: Poll timeout waiting before accept
    421 Service not available, remote server has closed connection.
    421 Service not available, remote server has closed connection.

    I'm not sure what might be wrong, as it was working not too long ago.

    There haven't been any changes in the FTP server lately, at least not in this regard. If anything changed, its on your end. 1

    Is the client and the server in the same private network? I noticed the address being sent back to the client a public IP address. That will only work if your gateway/router supports hair-pinning. https://wiki.synchro.net/faq:tcpip#ftp_nat --

    Ah, I was trying it from the same PC earlier when I posted it. If I'm outside my home network, it seems to work without a problem. I do recall hearing about hair-pinning.. Thanks.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Ewing@1:103/705 to Nightfox on Wednesday, July 26, 2023 08:10:05
    Re: FTP not fully working
    By: Nightfox to Digital Man on Tue Jul 25 2023 12:40 pm

    Ah, I was trying it from the same PC earlier when I posted it. If I'm outside my home network, it seems to work without a problem. I do recall hearing about hair-pinning.. Thanks.

    I can confirm that it doesn't work remotely for me (home or from the BBS IP) using Active or Passive. I tried to setup a feed from your system a few weeks back and while it authenticated it never shows a directory listing - and qnet-ftp times out.

    ---
    þ Synchronet þ Mortal BBS - Blue Mountains, Australia - bbs.mortalbbs.com:23
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to Ewing on Tuesday, July 25, 2023 16:05:22
    Re: FTP not fully working
    By: Ewing to Nightfox on Wed Jul 26 2023 08:10 am

    Ah, I was trying it from the same PC earlier when I posted it. If I'm
    outside my home network, it seems to work without a problem. I do recall
    hearing about hair-pinning.. Thanks.

    I can confirm that it doesn't work remotely for me (home or from the BBS IP) using Active or Passive. I tried to setup a feed from your system a few weeks back and while it authenticated it never shows a directory listing - and qnet-ftp times out.

    Strange.. I was able to FTP to my BBS today from outside and it appeared to be working. I was able to log in and get a directory listing.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Ewing@1:103/705 to Nightfox on Friday, July 28, 2023 19:05:13
    Re: FTP not fully working
    By: Nightfox to Ewing on Tue Jul 25 2023 04:05 pm

    Strange.. I was able to FTP to my BBS today from outside and it appeared to be working. I was able to log in and get a directory listing.

    Working from here now too - not sure if anything has changed on your end but it seems good :)

    ---
    þ Synchronet þ Mortal BBS - Blue Mountains, Australia - bbs.mortalbbs.com:23
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to Ewing on Friday, July 28, 2023 08:31:45
    Re: FTP not fully working
    By: Ewing to Nightfox on Fri Jul 28 2023 07:05 pm

    Strange.. I was able to FTP to my BBS today from outside and it appeared
    to be working. I was able to log in and get a directory listing.

    Working from here now too - not sure if anything has changed on your end but it seems good :)

    Yeah, I relized the passive FTP ports weren't being allowed through the software firewall on my BBS PC, so I enabled those. Strange, as my FTP was working (as far as I know) up until just recently.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)