I recently did the 3.17b update and since have had FTP problems: I nmap'd myself:
PORT STATE SERVICE VERSION
21/tcp open ftp?
| ftp-anon: Anonymous FTP login allowed (FTP code 230)
|_Can't get directory listing: TIMEOUT
|_ftp-bounce: server forbids bouncing to low ports <1025
I set PasvIpAddress in sbbs.ini, checked ports are open, etc but still no bueno unless I connect using 192.x.x.x internal ip ... any ideas
Re: FTP Problem11:49 am
By: Mortifis to All on Sun Jan 06 2019
since have had FTP problems: I nmap'dI recently did the 3.17b update and
(FTP code 230)myself:
PORT STATE SERVICE VERSION
21/tcp open ftp?
| ftp-anon: Anonymous FTP login allowed
to low ports <1025|_Can't get directory listing: TIMEOUT
|_ftp-bounce: server forbids bouncing
checked ports are open, etc but stillI set PasvIpAddress in sbbs.ini,
192.x.x.x internal ip ... any ideasno bueno unless I connect using
Was it working fine before the update? Ifso, what version did you update
from?I updated from 3.17a last built from source
There's a big difference between activeand passive FTP connections - both
have their issues, but generally passiveis more NAT/firewall friendly. The
client controls which mode to use, so tohave a real working FTP server, you
have to test and make sure both modes areworking. I don't know what FTP
mode 'nmap' is trying to use. But if youuse a command-line 'ftp' client,
they generally allow you (the client) toswitch between passive and active
modes. Web browsers mostly just usepassive FTP mode.
The "PasvIpAddress" setting only affectspassive FTP mode. If you're having
a problem with active FTP mode, then thatsetting will make no difference.
Read this FAQ carefully:
http://wiki.synchro.net/faq:tcpip#ftp_nat
Re: FTP Problem
By: Mortifis to All on Sun Jan 06 2019 11:49 am
I recently did the 3.17b update and since have had FTP problems: I nmap'd myself:
PORT STATE SERVICE VERSION
21/tcp open ftp?
| ftp-anon: Anonymous FTP login allowed (FTP code 230)
|_Can't get directory listing: TIMEOUT
|_ftp-bounce: server forbids bouncing to low ports <1025
I set PasvIpAddress in sbbs.ini, checked ports are open, etc but still no bueno unless I connect using 192.x.x.x internal ip ... any ideas
Was it working fine before the update? If so, what version did you update from?
There's a big difference between active and passive FTP connections - both have their issues, but generally passive is more NAT/firewall friendly. The client controls which mode to use, so to have a real working FTP server, you have to test and make sure both modes are working. I don't know what FTP mode 'nmap' is trying to use. But if you use a command-line 'ftp' client, they generally allow you (the client) to switch between passive and active modes. Web browsers mostly just use passive FTP mode.
The "PasvIpAddress" setting only affects passive FTP mode. If you're having a problem with active FTP mode, then that setting will make no difference.
I updated from 3.17a last built from source
on Decemver 18th or so ... yes it wss working
before the update.
There's a big difference between activeand passive FTP connections - both
have their issues, but generally passiveis more NAT/firewall friendly. The
client controls which mode to use, so tohave a real working FTP server, you
have to test and make sure both modes areworking. I don't know what FTP
mode 'nmap' is trying to use. But if youuse a command-line 'ftp' client,
they generally allow you (the client) toswitch between passive and active
modes. Web browsers mostly just usepassive FTP mode.
The "PasvIpAddress" setting only affectspassive FTP mode. If you're having
a problem with active FTP mode, then thatsetting will make no difference.
Read this FAQ carefully:
http://wiki.synchro.net/faq:tcpip#ftp_nat
Thank you, read the wiki before I posted. I
almost have it working. I opened port 1024 on
my router, seems to have helped a bit but
still is prone to time outs
...using
sbbs/web->File Libraries or web browser
ftp://blah blah blah returns 425 Error 2 type
error.
Hoping it is a config error in /sbbs/web
The "PasvIpAddress" setting only affects passive FTP mode. If you're having a problem with active FTP mode, then that setting will make no difference.
I have never had an issue with SBBS FTP, just started with the lastest cvs update following the cvs update instructions. seems the main issue, even using a console or gui client in either mode or especially the web interface is 425 Error 2 selecting socket for connection ... ocassionally it grabs a socket but mostly times out with that error
interface is 425 Error 2 selecting socket for connection ... ocassionally it grabs a socket but mostly times out with that error
That error can only happen in passive FTP mode. It means that the server basically times-out waiting for the client to connect on the FTP data port. That means that you have something misconfigured between your FTP server and your firewall.
But you haven't really provided much in the way of details, so I can't really help you unless you provide things like log snippets, configuration settings, etc.
interface is 425 Error 2 selecting socket for connection ... ocassionally it grabs a socket but mostly times out with that error
That error can only happen in passive FTP mode. It means that the server basically times-out waiting for the client to connect on the FTP data port. That means that you have something misconfigured between your FTP server and your firewall.
I haven't made any changes to my firewall or router virtual servers
But you haven't really provided much in the way of details, so I can't really help you unless you provide things like log snippets, configuration settings, etc.
config:
[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=24.138.28.115
PasvPortLow=1024
PasvPortHigh=65535
; Dynamically generated index files
IndexFileName=00index
HtmlIndexFile=00index.html
HtmlIndexScript=ftp-html.js
Options=INDEX_FILE | HTML_INDEX_FILE | ALLOW_QWK | DEBUG_DATA | LOOKUP_PASV_IP
There is nothing in the logs to indicate an error, just times out.
If I use
a web browser it give the 425 (no way to put any browsers I have in to active mode (PORT) just uses the default PASV). If I use a gui-ftp client in PORT mode it works, or console ftp 'passive off' it works as expected.
I
have never had to mess with PASV for FTP to work out of the box, since like 2001, just port forward 21 to my ftp server system. If nothing has changed in the update and I haven't changed any router settings or config settings then I am at a loss. I will try to do a fresh install instead of cvs update and see if that instance works :-/
For those settings to work, you would have to configure your firewall/gateway to forward all 64,000+ ports between 1024 and 65535 to your BBS's private IP address. Did you do that? A more reasonable number of passive ports would be something like 10 ports (e.g. PasvPortLow=1024, PasvPortHigh=1033).
Re: Re: FTP Problem
By: Mortifis to Digital Man on Mon Jan 07 2019 11:16 am
have never had to mess with PASV for FTP to work out of the box, since like 2001, just port forward 21 to my ftp server system. If nothing has changed in the update and I haven't changed any router settings or config settings then I am at a loss. I will try to do a fresh install instead of cvs update and see if that instance works :-/
No, that's unnecessary. The changes you need to make are in ctrl/sbbs.ini and your firewall/gateway setup. That's it.
Re: Re: FTP Problem
By: Mortifis to Digital Man on Mon Jan 07 2019 11:16 am
have never had to mess with PASV for FTP to work out of the box, since like 2001, just port forward 21 to my ftp server system. If nothing has changed in the update and I haven't changed any router settings or config settings then I am at a loss. I will try to do a fresh install instead of cvs update and see if that instance works :-/
No, that's unnecessary. The changes you need to make are in ctrl/sbbs.ini and your firewall/gateway setup. That's it.
All good now, I need a new router, had to add each port forward manually. I am not sure why I had to all of a sudden as it has always just worked without having to do that :-/
All good now, I need a new router, had to add each port forward
manually. I am not sure why I had to all of a sudden as it has always
just worked without having to do that :-/
On 2019 Jan 07 17:56:16, you wrote to Digital Man:
All good now, I need a new router, had to add each port forward manually. I am not sure why I had to all of a sudden as it has always just worked without having to do that :-/
are you running FTP on the standard ports 20&21? if not, that could explain it... i tried to explain some of it in irc the other day but i guess i failed or maybe didn't get that train on the track before it wandered off...
network modules... eg: nf_nat_ftp, nf_conntrack_ftp and similar... they know that ftp takes place on port 20 and 21 as well as possibly a range for passive... when a session starts, they mark that first packet... other packets related to that stream can be detected and automatically passed through the system... if you try to run your ftp server on non-standard ports, these tools cannot do their job and ftp breaks between the WAN and the LAN... it /might/ be
possible to add special command options to these modules in their load call but
that depends on the firewall as this is deep in the innards of the system and its startup... moving ftp is not as easy as it is moving telnet, web or similar...
| Sysop: | Winzlo |
|---|---|
| Location: | Minnesota, USA |
| Users: | 11 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 495950:18:11 |
| Calls: | 82 |
| Files: | 1,070 |
| Messages: | 287,259 |