Error when configuring remote backup

sten88

Verified User
Joined
Feb 22, 2018
Messages
23
Hello, friends.
After the updates (perhaps, but not the fact), I faced the problem of remote backup.
The error I get after creating copies:

Code:
User xxxx was backed up. <time>
ftp_upload.php exit code: 7
ftp_upload.php output: curl: (7) Failed to connect to xxx.xx port 21: Connection refused
curl return code: 7
Please see this URL and check for curl exit code '(7)': https://help.directadmin.com/item.php?id=2127

The settings in Directadmin are correct, a secure connection is made on 21 ports.

At the same time, the output
Code:
curl --ssl-read ftps://xxx.xx --user xxx
curl: (7) Failed to connect to xxx.xx port 21: Connection refused
After disabling LF_SPI in CSF, everything works. But this is not the solution....

Tell me, how can I still fix it?

Thank you...
 
Last edited:
I found that CSF is blocking connections:

Code:
Aug 17 13:15:26 s2 kernel: Firewall: *TCP_OUT Blocked* IN= OUT=em1 SRC=x.x.x.x DST=x.x.x.x LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=7861 DF PROTO=TCP SPT=56420 DPT=49152 WINDOW=29200 RES=0x00 SYN URGP=0 UID=99 GID=99
Aug 17 13:15:27 s2 kernel: Firewall: *TCP_OUT Blocked* IN= OUT=em1 SRC=x.x.x.x DST=x.x.x.x LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=7862 DF PROTO=TCP SPT=56420 DPT=49152 WINDOW=29200 RES=0x00 SYN URGP=0 UID=99 GID=99
Aug 17 13:15:27 s2 kernel: Firewall: *TCP_OUT Blocked* IN= OUT=em1 SRC=x.x.x.x DST=x.x.x.x LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=65510 DF PROTO=TCP SPT=52520 DPT=53461 WINDOW=29200 RES=0x00 SYN URGP=0 UID=99 GID=99
Aug 17 13:15:28 s2 kernel: Firewall: *TCP_OUT Blocked* IN= OUT=em1 SRC=x.x.x.x DST=x.x.x.x LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=65511 DF PROTO=TCP SPT=52520 DPT=53461 WINDOW=29200 RES=0x00 SYN URGP=0 UID=99 GID=99

Although, TCP_IN 20,21,22,25,53,80,110,143,443,465,587,993,995,2222,35000:35999
TCP_OUT = 20,21,22,25,53,80,110,113,443,587,993,995,3306,2222,43,35000:35999
 
I found that CSF is blocking connections:

Code:
Aug 17 13:15:26 s2 kernel: Firewall: *TCP_OUT Blocked* IN= OUT=em1 SRC=x.x.x.x DST=x.x.x.x LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=7861 DF PROTO=TCP SPT=56420 DPT=49152 WINDOW=29200 RES=0x00 SYN URGP=0 UID=99 GID=99
Aug 17 13:15:27 s2 kernel: Firewall: *TCP_OUT Blocked* IN= OUT=em1 SRC=x.x.x.x DST=x.x.x.x LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=7862 DF PROTO=TCP SPT=56420 DPT=49152 WINDOW=29200 RES=0x00 SYN URGP=0 UID=99 GID=99
Aug 17 13:15:27 s2 kernel: Firewall: *TCP_OUT Blocked* IN= OUT=em1 SRC=x.x.x.x DST=x.x.x.x LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=65510 DF PROTO=TCP SPT=52520 DPT=53461 WINDOW=29200 RES=0x00 SYN URGP=0 UID=99 GID=99
Aug 17 13:15:28 s2 kernel: Firewall: *TCP_OUT Blocked* IN= OUT=em1 SRC=x.x.x.x DST=x.x.x.x LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=65511 DF PROTO=TCP SPT=52520 DPT=53461 WINDOW=29200 RES=0x00 SYN URGP=0 UID=99 GID=99

Although, TCP_IN 20,21,22,25,53,80,110,143,443,465,587,993,995,2222,35000:35999
TCP_OUT = 20,21,22,25,53,80,110,113,443,587,993,995,3306,2222,43,35000:35999
ad this port there?
Failed to connect to xxx.xx port 990:
 
ad this port there?
Thank you for your reply.
Yes, we tried this option with the addition of the specified port, unfortunately, everything is unchanged. Perhaps a colleague made a mistake with port 990. Because now I see that the connection must be made and configured on port 21.
 
Back
Top