Local FTP connection from Debian to the ASUS-NAS FTP server failed

Moderator: Lillian.W@AST

Post Reply
klaus99
Posts: 20
youtube meble na wymiar Warszawa
Joined: Thu Nov 24, 2022 10:03 pm

Local FTP connection from Debian to the ASUS-NAS FTP server failed

Post by klaus99 »

The connection failed with the error message:
"421 Service not available, remote server has closed connection"

- no connection problem from a Windows FTP CLI to the ASUS-NAS FTP server
- no connection problem from the Debian FTP CLI to a FTP server hosted by Windows

Thanks, Klaus
User avatar
Nazar78
Posts: 1984
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore
Contact:

Re: Local FTP connection from Debian to the ASUS-NAS FTP server failed

Post by Nazar78 »

No issue here using Debian 11 (bullseye) FTP CLI to the Asustor NAS.

Try enabling the logs by adding below to: /usr/builtin/etc/proftpd/proftpd.conf.

SystemLog /var/log/proftpd-system.log
ExtendedLog /var/log/proftpd-extended.log

Then issue the command: /usr/builtin/etc/init.d/S50proftpd reload. Don't use the ADM portal service to toggle else the config will revert.

Try recreate the issue and check the logs for any hints.
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
klaus99
Posts: 20
Joined: Thu Nov 24, 2022 10:03 pm

Re: Local FTP connection from Debian to the ASUS-NAS FTP server failed

Post by klaus99 »

Hi, thank you for the hints, but now it's getting weird:

Nothing was written in the log files. I tested the FTP connection from a MX Linux and it works and the messages was written to the log files, but noting from the Debian 11.
I think, the connection is already blocked in Debian. This Debian is the official image without changes. FTP to the Windows hosted FTP sever works with this Debian.

Klaus
AS6704T
User avatar
Nazar78
Posts: 1984
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore
Contact:

Re: Local FTP connection from Debian to the ASUS-NAS FTP server failed

Post by Nazar78 »

Yeah probably it's blocked from the Debian 11 itself, check the route or firewall if any. Can you ping? Or test another simple port using netcat listen and telnet connect.

Below, from the official Debian 11 image:

Code: Select all

Using username "root".
Authenticating with public key "imported-openssh-key"
Last login: Tue Jun  6 17:15:45 2023 from 2400:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:8142
root@Nimbustor4:~# docker exec -it Debian ftp 192.168.1.6
Connected to 192.168.1.6.
220 ProFTPD Server (ProFTPD) [::ffff:192.168.1.6]
Name (192.168.1.6:root): 
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
klaus99
Posts: 20
Joined: Thu Nov 24, 2022 10:03 pm

Re: Local FTP connection from Debian to the ASUS-NAS FTP server failed

Post by klaus99 »

Hello, ping works, telnet failed with error:

Code: Select all

telnet 192.168.3.x 21
Trying 192.168.3.x...
Connected to 192.168.3.x.
Escape character is '^]'.
Connection closed by foreign host.
Telnet to Windows hosted FTP server works:

Code: Select all

telnet 192.168.3.xx 21
Trying 192.168.3.xx...
Connected to 192.168.3.xx.
Escape character is '^]'.
220-FileZilla Server 0.9.60 beta
220-written by Tim Kosse (tim.kosse@filezilla-project.org)
Telnet also works from the MX Linux to the NAS:

Code: Select all

telnet 192.168.3.x 21
Trying 192.168.3.x...
Connected to 192.168.3.x.
Escape character is '^]'.
220 ProFTPD Server (ProFTPD) [::ffff:192.168.3.x]
I'm still going crazy.

Klaus
AS6704T
User avatar
Nazar78
Posts: 1984
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore
Contact:

Re: Local FTP connection from Debian to the ASUS-NAS FTP server failed

Post by Nazar78 »

Not sure if this would help, try adding below to the config file then reload/restart:

UseReverseDNS off

If that works, unfortunately there's no way to put the Debian DNS in the NAS hosts file and make it persistent at boot. You could probably use custom script to add it at boot but think ADM will reset them at network re-init. Next best thing is to add the Debian host to your local DNS server usually in the router like dnsmasq. Or another better approach is to submit a request to Asustor to have this option because if you manually edit the conf, it should survive at reboot but not when you toggle the FTP options in the portal.
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
klaus99
Posts: 20
Joined: Thu Nov 24, 2022 10:03 pm

Re: Local FTP connection from Debian to the ASUS-NAS FTP server failed

Post by klaus99 »

Hi, i found the solution for this problem: The Debian 11 IP was added to the automatic blacklist (for whatever reason) from ADM-Defender.

Thanks for help, Klaus
AS6704T
Post Reply

Return to “[Official] For AS67xx Series”