Solved curl: (8) Failed to connect to <redacted>.your-storagebox.de port 21 after 1047 ms: Connection refused

AeroBytes

Verified User
Joined
Feb 25, 2025
Messages
7
Hi!
So i wanna add an FTP server to DirectAdmin's admin backup.
Now with CSF enabled, i keep getting the above error.
When i do csf -x, then it does work.
Of course i looked online an saw that i need to add 35000:35999 to TCP out.
So i did that:

TCP_IN = "35000:35999,20,21,22,25,53,853,80,110,143,443,465,587,993,995,2222,3306"
TCP_OUT = "465,143,20,21,22,25,53,853,80,110,113,443,587,993,995,2222,35000:35999"

TCP6_IN = "35000:35999,20,21,22,25,53,853,80,110,143,443,465,587,993,995,2222"
TCP6_OUT = "465,143,20,21,22,25,53,853,80,110,113,443,587,993,995,2222,35000:35999"

And i did after that: csf -r
But still no success if csf is enabled.
When i just run ftp <redacted>.your-storagebox.de on the server from CLI i can connect.
I know the credentials are correct.

Who can help me?
 
Hello,

Passive ports for Hetzner's storage might have a different range. You might better use DYNDNS in CSF/LFD:

- update /etc/csf/csf.conf:

Code:
DYNDNS = "600"
DYNDNS_IGNORE = "1"

- update /etc/csf/csf.dyndns

Code:
tcp|out|d=0,65535|d=userID.your-storagebox.de
udp|out|d=0,65535|d=userID.your-storagebox.de
tcp|in|s=20,23|s=userID.your-storagebox.de
udp|in|s=20,23|s=userID.your-storagebox.de

and restart csf with lfd
 
Back
Top