CraigFoote
Occasional Visitor
TL;DR What does '227 Entering Passive Mode (192,168,2,1,224,194).' mean?
I have a new Bell HH4000 (Giga Hub) that I've connected to my Asus RT-AC3100 which is in mesh with another one. I have two USB drives plugged into the AC3100 which I want to serve up via the AC3100's FTP server. I had this working with Rogers so I think the setup is sound. I can connect using the internal IP but I'm not able to connect using my external IP address.
I have these ports open at the HH4000:
So requests are passed through the HH4000 to the AC3100 which handles them, or it tried. The Filezilla log from accessing the server using external IP showed:
'Server sent passive reply with unroutable address. Using server address instead.'
It appears the request was routed through the HH4000 to the AC3100 but the FTP server is misconfigured for external access.
After some reading it appeared I needed to add vsftpd.conf entries so I installed merlin 386.12_2 on the AC3100 and enabled 'JFFS custom scripts and configs'. I also selected 'Format JFFS partition at next boot' and rebooted. I turned on SSH access for the LAN and logged into the HH4000. To override the default file, I copied the vsftpd.conf from /etc/ to /jffs/configs/vsftpd.conf. I then customized my copy producing the following and restarted the HH4000.
That got rid of the "unroutable address" error but I still cannot get a listing of the contents. I got the correct welcome message so I know my .conf file is being used.
The filezilla log:
As I understand it the initial connection is done on one port then switched to another random port for transfers. Adding the 'pasv_min_port' and 'pasv_max_port' options in the vsftpd.conf should confine such secondary connections to this range. This range is 57530-57560 but the suspicious line above:
227 Entering Passive Mode (70,31,148,145,224,196)
...indicates the ports are on IP 70.31.148.145 (my external IP) as 224 & 196. These ports differ with each FTP connection request and so can't be opened.
And that's as far as I've gotten. A successful login but unsuccessful file listing. I can add more vsftpd.conf entries but I don't know of any more.
Sorry for the long post and please, please post any ideas.
I have a new Bell HH4000 (Giga Hub) that I've connected to my Asus RT-AC3100 which is in mesh with another one. I have two USB drives plugged into the AC3100 which I want to serve up via the AC3100's FTP server. I had this working with Rogers so I think the setup is sound. I can connect using the internal IP but I'm not able to connect using my external IP address.
I have these ports open at the HH4000:
Code:
external internal device
20 2020 ac3100
21 2021 ac3100
115 20115 ac3100
990 20990 ac3100
57530:57560 57530:57560 ac3100
And these ports open at the AC3100:
external internal device
2020 20 127.0.0.1
2021 21 127.0.0.1
20115 115 127.0.0.1
20990 990 127.0.0.1
57530:57560 <blank> 127.0.0.1
So requests are passed through the HH4000 to the AC3100 which handles them, or it tried. The Filezilla log from accessing the server using external IP showed:
'Server sent passive reply with unroutable address. Using server address instead.'
It appears the request was routed through the HH4000 to the AC3100 but the FTP server is misconfigured for external access.
After some reading it appeared I needed to add vsftpd.conf entries so I installed merlin 386.12_2 on the AC3100 and enabled 'JFFS custom scripts and configs'. I also selected 'Format JFFS partition at next boot' and rebooted. I turned on SSH access for the LAN and logged into the HH4000. To override the default file, I copied the vsftpd.conf from /etc/ to /jffs/configs/vsftpd.conf. I then customized my copy producing the following and restarted the HH4000.
Code:
anonymous_enable=NO
nopriv_user=root
write_enable=YES
local_enable=YES
chroot_local_user=YES
local_umask=000
dirmessage_enable=NO
xferlog_enable=NO
syslog_enable=NO
connect_from_port_20=YES
use_localtime=YES
listen=YES
pasv_enable=YES
pasv_addr_resolve=YES #added
pasv_address=footeware.ca #added
pasv_min_port=57530
pasv_max_port=57560
tcp_wrappers=NO
max_clients=5
ftp_username=anonymous
ftpd_banner=Welcome to Footeware FTP. #modified
ssl_enable=YES
ssl_ciphers=HIGH
rsa_cert_file=/etc/cert.pem
rsa_private_key_file=/etc/key.pem
That got rid of the "unroutable address" error but I still cannot get a listing of the contents. I got the correct welcome message so I know my .conf file is being used.
The filezilla log:
Code:
18:38:18 Command: PASV
18:38:18 Trace: CFtpControlSocket::OnReceive()
18:38:18 Response: 227 Entering Passive Mode (70,31,148,145,224,196). #suspicious
18:38:18 Trace: CFtpRawTransferOpData::ParseResponse() in state 2
18:38:18 Trace: CControlSocket::SendNextCommand()
18:38:18 Trace: CFtpRawTransferOpData::Send() in state 4
18:38:18 Trace: Binding data connection source IP to control connection source IP 192.168.2.242 #my local internal computer
18:38:18 Trace: tls_layer_impl::client_handshake()
18:38:18 Trace: Trying to resume existing TLS session.
18:38:18 Command: LIST
18:39:18 Trace: CFtpControlSocket::OnReceive()
18:39:18 Response: 425 Failed to establish connection.
As I understand it the initial connection is done on one port then switched to another random port for transfers. Adding the 'pasv_min_port' and 'pasv_max_port' options in the vsftpd.conf should confine such secondary connections to this range. This range is 57530-57560 but the suspicious line above:
227 Entering Passive Mode (70,31,148,145,224,196)
...indicates the ports are on IP 70.31.148.145 (my external IP) as 224 & 196. These ports differ with each FTP connection request and so can't be opened.
And that's as far as I've gotten. A successful login but unsuccessful file listing. I can add more vsftpd.conf entries but I don't know of any more.
Sorry for the long post and please, please post any ideas.