Admin backup - FTP - stopped working

DC-soft

Verified User
Joined
Nov 2, 2022
Messages
6
Hi,

I'm creating admin backups over FTP.
Some days ago, I get error that the backup failed.

/usr/bin/curl returned error code 7
curl: (7) Failed to connect to xxx.xxx.xxx.xxx port 21: Connection refused
FTP information invalid.


The ftp-connection works fine with a ftp-software.

I then tried with another ftp-server and I get the same error. (Also works fine with a ftp-software)

Any ideas?
 

realcryptonight

Verified User
Joined
Nov 16, 2019
Messages
406
Hi,

I'm creating admin backups over FTP.
Some days ago, I get error that the backup failed.

/usr/bin/curl returned error code 7
curl: (7) Failed to connect to xxx.xxx.xxx.xxx port 21: Connection refused
FTP information invalid.


The ftp-connection works fine with a ftp-software.

I then tried with another ftp-server and I get the same error. (Also works fine with a ftp-software)

Any ideas?
Check your firewall. By default CSF is configured to allow incoming port 21 and 35000-35999 and block outgoing traffic. And you need outgoing traffic.
 

realcryptonight

Verified User
Joined
Nov 16, 2019
Messages
406
No, but by default this is not allowed. So if you made no changes to the firewall then it should never have worked to begin with.
 

DC-soft

Verified User
Joined
Nov 2, 2022
Messages
6
I added "35000:35999" in outgoing ports and it works now!

Thanks for the help.
 
Top