For more than a year I'm backing up 3CX configs to a Plesk server which started to fail recently
It was since I upgraded from 17.5 to 17.8
I'm using Passive FTP which is working fine when using a normal FTP-client.
Plesk's tutorials even took over my way of changing the config to allow passive FTP by using an extra file in /etc/proftpd.d/passive_ports.conf
I have IPv6 disabled, so I changed the xinetd config accordingly.
When I use tcpdump -A host xxx.xx.xx.xx I noticed that the 3CX FTP client invokes EPSV (enhanced passive mode). I was hoping this was the key to the problem I was having. I needed a lot of research to find out how to turn off that, but that didn't work either...
220 ProFTPD Server (ProFTPD) [xx.xx.xx.xx]
USER blabla
331 Password required for blabla
PASS secret
230 User blabla logged in
FEAT
211-Features:
AUTH TLS
CCC
CLNT
EPRT
EPSV
HOST
LANG en-US*
MDTM
MFF modify;UNIX.group;UNIX.mode;
MFMT
MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.groupname*;UNIX.mode*;UNIX.owner*;UNIX.ownername*;
PBSZ
PROT
REST STREAM
SIZE
SSCN
TVFS
UTF8
211 End
OPTS UTF8 ON
200 UTF8 set to on
TYPE I
200 Type set to I
SIZE /httpdocs/folder/backup.zip
550 /httpdocs/folder/backup.zip: No such file or directory
EPSV
501 EPSV: Operation not permitted
PASV
227 Entering Passive Mode (xx,xx,xxx,xx,194,130).
STOR /httpdocs/folder/backup.zip
150 Opening BINARY mode data connection for /httpdocs/folder/backup.zip
(client sends data)
426 Transfer aborted. Interrupted system call
The ports that are used for sending the data corresponds exactly with the ones I opened up in the firewall
cat /etc/proftpd.d/passive-ftp.conf
# Global section
<Global>
<Limit EPSV EPRT >
DenyAll
</Limit>
PassivePorts 49152 49852
</Global>
iptables-save | grep 49152
-A INPUT -p tcp -m tcp --dport 49152:49852 -j ACCEPT
cat /etc/xinetd.d/ftp_psa
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST AFTER YOU UPGRADE PARALLELS PLESK PANEL.
service ftp
{
flags = IPv4
disable = no
socket_type = stream
protocol = tcp
wait = no
user = root
instances = UNLIMITED
server = /usr/sbin/in.proftpd
server_args = -c /etc/proftpd.conf -S 0.0.0.0
env = LC_ALL=C LANG=C
}
It also didn't work before I turned of enhanced passive mode...
I would like to stress that a Filezilla Passive FTP client has no problems whatsoever uploading and downloading from this server...
I also opened up everything coming from that IP in the firewall...
I ran out of options and don't know how to get it working again.
Maybe I'm going to back-up to somewhere else.
They don't even support secure FTP
It was since I upgraded from 17.5 to 17.8
I'm using Passive FTP which is working fine when using a normal FTP-client.
Plesk's tutorials even took over my way of changing the config to allow passive FTP by using an extra file in /etc/proftpd.d/passive_ports.conf
I have IPv6 disabled, so I changed the xinetd config accordingly.
When I use tcpdump -A host xxx.xx.xx.xx I noticed that the 3CX FTP client invokes EPSV (enhanced passive mode). I was hoping this was the key to the problem I was having. I needed a lot of research to find out how to turn off that, but that didn't work either...
220 ProFTPD Server (ProFTPD) [xx.xx.xx.xx]
USER blabla
331 Password required for blabla
PASS secret
230 User blabla logged in
FEAT
211-Features:
AUTH TLS
CCC
CLNT
EPRT
EPSV
HOST
LANG en-US*
MDTM
MFF modify;UNIX.group;UNIX.mode;
MFMT
MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.groupname*;UNIX.mode*;UNIX.owner*;UNIX.ownername*;
PBSZ
PROT
REST STREAM
SIZE
SSCN
TVFS
UTF8
211 End
OPTS UTF8 ON
200 UTF8 set to on
TYPE I
200 Type set to I
SIZE /httpdocs/folder/backup.zip
550 /httpdocs/folder/backup.zip: No such file or directory
EPSV
501 EPSV: Operation not permitted
PASV
227 Entering Passive Mode (xx,xx,xxx,xx,194,130).
STOR /httpdocs/folder/backup.zip
150 Opening BINARY mode data connection for /httpdocs/folder/backup.zip
(client sends data)
426 Transfer aborted. Interrupted system call
The ports that are used for sending the data corresponds exactly with the ones I opened up in the firewall
cat /etc/proftpd.d/passive-ftp.conf
# Global section
<Global>
<Limit EPSV EPRT >
DenyAll
</Limit>
PassivePorts 49152 49852
</Global>
iptables-save | grep 49152
-A INPUT -p tcp -m tcp --dport 49152:49852 -j ACCEPT
cat /etc/xinetd.d/ftp_psa
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST AFTER YOU UPGRADE PARALLELS PLESK PANEL.
service ftp
{
flags = IPv4
disable = no
socket_type = stream
protocol = tcp
wait = no
user = root
instances = UNLIMITED
server = /usr/sbin/in.proftpd
server_args = -c /etc/proftpd.conf -S 0.0.0.0
env = LC_ALL=C LANG=C
}
It also didn't work before I turned of enhanced passive mode...
I would like to stress that a Filezilla Passive FTP client has no problems whatsoever uploading and downloading from this server...
I also opened up everything coming from that IP in the firewall...
I ran out of options and don't know how to get it working again.
Maybe I'm going to back-up to somewhere else.
They don't even support secure FTP