ERR 522 while FTPS upload with EXS82 | Telit Cinterion IoT Developer Community
September 14, 2021 - 11:45pm, 2604 views
Hello,
I am trying to upload a file to an FTPS server with an EXS82 modem.
I am receiving the error: "ERR: 522 Data connections must be encrypted."
The URL contains ftps:// and the server works OK with Filezilla Client.
Attached is the full console log.
14/09/2021 16:35:01.759 [TX] - AT^SCFG?<CR>
14/09/2021 16:35:01.926 [RX] - AT^SCFG?<CR>
<CR><LF>
^SCFG: "GPIO/Mode/Asc1","std"<CR><LF>
^SCFG: "GPIO/Mode/Spi","rsv"<CR><LF>
^SCFG: "GPIO/Mode/Suspend","off"<CR><LF>
^SCFG: "GPRS/AutoAttach","enabled"<CR><LF>
^SCFG: "GPRS/MTU/Mode",0<CR><LF>
^SCFG: "GPRS/MTU/Size",1430<CR><LF>
^SCFG: "Ident/Manufacturer","Cinterion"<CR><LF>
^SCFG: "Ident/Product","EXS82-W"<CR><LF>
^SCFG: "MEopMode/CregRoam","0"<CR><LF>
^SCFG: "MEopMode/PowerMgmt/Suspend","0","1"<CR><LF>
^SCFG: "MEopMode/Prov/AutoSelect","on"<CR><LF>
^SCFG: "MEopMode/Prov/Cfg","fallb3gpp"<CR><LF>
^SCFG: "MEopMode/PwrSave","disabled","52","50"<CR><LF>
^SCFG: "MEopMode/RingOnData","off"<CR><LF>
^SCFG: "MEopMode/RscMgmt/Rrc","1"<CR><LF>
^SCFG: "MEopMode/SRPOM","0"<CR><LF>
^SCFG: "MEShutdown/sVsup/threshold","0","0"<CR><LF>
^SCFG: "Radio/Band/2G","0000000f"<CR><LF>
^SCFG: "Radio/Band/CatM","0800000a"<CR><LF>
^SCFG: "Radio/Band/CatNB","0800000a"<CR><LF>
^SCFG: "Radio/Band/Opt/Ctrl","1"<CR><LF>
^SCFG: "Radio/Band/Opt/MCC","334"<CR><LF>
^SCFG: "Radio/Mtpl","0"<CR><LF>
^SCFG: "Radio/Mtpl/2G","0"<CR><LF>
^SCFG: "Radio/Mtpl/4G","0"<CR><LF>
^SCFG: "Radio/OutputPowerReduction","4"<CR><LF>
^SCFG: "Radio/Suspend","1"<CR><LF>
^SCFG: "RemoteWakeUp/Ports","current","acm0","acm1","ecm"<CR><LF>
^SCFG: "RemoteWakeUp/Ports","powerup","acm0","acm1","ecm"<CR><LF>
^SCFG: "SIM/CS","0"<CR><LF>
^SCFG: "SIM/DualMode","0"<CR><LF>
^SCFG: "SMS/AutoAck","0"<CR><LF>
^SCFG: "Tcp/IRT","3"<CR><LF>
^SCFG: "Tcp/MR","10"<CR><LF>
^SCFG: "Tcp/OT","6000"<CR><LF>
^SCFG: "Tcp/TLS/Version","MIN","***"<CR><LF>
^SCFG: "Tcp/WithURCs","on"<CR><LF>
^SCFG: "URC/Ringline","local"<CR><LF>
^SCFG: "URC/Ringline/ActiveTime","2"<CR><LF>
^SCFG: "Userware/Autostart","0"<CR><LF>
^SCFG: "Userware/Autostart/AppName","A:/oem_app.bin"<CR><LF>
^SCFG: "Userware/Autostart/Delay","5000"<CR><LF>
^SCFG: "Userware/Signing/****","1"<CR><LF>
^SCFG: "Userware/Signing/Signature","0"<CR><LF>
^SCFG: "Userware/Trace/Level","0"<CR><LF>
^SCFG: "Userware/Trace/Interface","4"<CR><LF>
^SCFG: "Userware/Trace/Qxdm","off"<CR><LF>
^SCFG: "Userware/Trace/Urc","off"<CR><LF>
<CR><LF>
OK<CR><LF>
14/09/2021 16:35:06.468 [TX] - AT^SCFG="Radio/Band/CatM","0800000a"<CR>
14/09/2021 16:35:06.483 [RX] - AT^SCFG="Radio/Band/CatM","0800000a"<CR>
<CR><LF>
^SCFG: "Radio/Band/CatM","0800000a"<CR><LF>
<CR><LF>
OK<CR><LF>
14/09/2021 16:35:08.445 [TX] - ATI1<CR>
14/09/2021 16:35:08.450 [RX] - ATI1<CR>
<CR><LF>
Cinterion<CR><LF>
EXS82-W<CR><LF>
REVISION 01.200<CR><LF>
A-REVISION 01.000.01<CR><LF>
<CR><LF>
OK<CR><LF>
14/09/2021 16:35:10.117 [TX] - AT+CIMI<CR>
14/09/2021 16:35:10.121 [RX] - AT+CIMI<CR>
<CR><LF>
*******************<CR><LF>
<CR><LF>
OK<CR><LF>
14/09/2021 16:35:11.569 [TX] - AT+CGMR<CR>
14/09/2021 16:35:11.576 [RX] - AT+CGMR<CR>
<CR><LF>
REVISION 01.200<CR><LF>
<CR><LF>
OK<CR><LF>
14/09/2021 16:35:13.036 [TX] - AT+CFUN=1<CR>
14/09/2021 16:35:13.047 [RX] - AT+CFUN=1<CR>
<CR><LF>
OK<CR><LF>
14/09/2021 16:35:14.694 [TX] - AT+COPS=2<CR>
14/09/2021 16:35:14.710 [RX] - AT+COPS=2<CR>
<CR><LF>
OK<CR><LF>
14/09/2021 16:35:17.767 [TX] - AT+CGDCONT=1,"IP","*******************"<CR>
14/09/2021 16:35:17.781 [RX] - AT+CGDCONT=1,"IP","*******************"<CR>
<CR><LF>
OK<CR><LF>
14/09/2021 16:35:23.534 [TX] - AT+CEREG=0<CR>
14/09/2021 16:35:23.537 [RX] - AT+CEREG=0<CR>
<CR><LF>
OK<CR><LF>
14/09/2021 16:35:25.334 [TX] - AT+COPS=0<CR>
14/09/2021 16:35:25.344 [RX] - AT+COPS=0<CR>
<CR><LF>
OK<CR><LF>
14/09/2021 16:35:28.169 [TX] - AT^SISC=2<CR>
14/09/2021 16:35:28.174 [RX] - AT^SISC=2<CR>
<CR><LF>
+CME ERROR: invalid index<CR><LF>
14/09/2021 16:35:29.801 [TX] - AT^SISS=2,"srvType","ftp"<CR>
14/09/2021 16:35:29.821 [RX] - AT^SISS=2,"srvType","ftp"<CR>
<CR><LF>
OK<CR><LF>
14/09/2021 16:35:31.898 [TX] - AT^SISS=2,"conId",1<CR>
14/09/2021 16:35:31.916 [RX] - AT^SISS=2,"conId",1<CR>
<CR><LF>
OK<CR><LF>
14/09/2021 16:35:35.192 [TX] - AT^SISS=2,"cmd","fput"<CR>
14/09/2021 16:35:35.210 [RX] - AT^SISS=2,"cmd","fput"<CR>
<CR><LF>
OK<CR><LF>
14/09/2021 16:35:36.954 [TX] - AT^SISS=2,"address","ftps://*******************:*******************@*******************"<CR>
14/09/2021 16:35:36.984 [RX] - AT^SISS=2,"address","ftps://*******************:*******************@*******************"<CR>
<CR><LF>
OK<CR><LF>
14/09/2021 16:35:39.009 [TX] - AT^SISS=2,"files","*******************"<CR>
14/09/2021 16:35:39.031 [RX] - AT^SISS=2,"files","*******************"<CR>
<CR><LF>
OK<CR><LF>
14/09/2021 16:35:42.736 [TX] - AT^SISS=2,"secopt",0<CR>
14/09/2021 16:35:42.741 [RX] - AT^SISS=2,"secopt",0<CR>
<CR><LF>
OK<CR><LF>
14/09/2021 16:35:44.409 [TX] - AT^SISS?<CR>
14/09/2021 16:35:44.419 [RX] - AT^SISS?<CR>
<CR><LF>
^SISS: 0,"srvType",""<CR><LF>
^SISS: 1,"srvType",""<CR><LF>
^SISS: 2,"srvType","Ftp"<CR><LF>
^SISS: 2,"conId","1"<CR><LF>
^SISS: 2,"address","ftps://*******************@*******************"<CR><LF>
^SISS: 2,"secopt","0"<CR><LF>
^SISS: 2,"files","*******************"<CR><LF>
^SISS: 2,"cmd","fput"<CR><LF>
^SISS: 3,"srvType",""<CR><LF>
^SISS: 4,"srvType",""<CR><LF>
^SISS: 5,"srvType",""<CR><LF>
^SISS: 6,"srvType",""<CR><LF>
^SISS: 7,"srvType",""<CR><LF>
^SISS: 8,"srvType",""<CR><LF>
^SISS: 9,"srvType",""<CR><LF>
<CR><LF>
OK<CR><LF>
14/09/2021 16:35:47.508 [TX] - AT^SICA=1,1<CR>
14/09/2021 16:35:47.527 [RX] - AT^SICA=1,1<CR>
<CR><LF>
OK<CR><LF>
14/09/2021 16:36:40.356 [TX] - AT^SISO=2<CR>
14/09/2021 16:36:40.362 [RX] - AT^SISO=2<CR>
<CR><LF>
OK<CR><LF>
<CR><LF>
^SIS: 2,0,2100,"Ftp connect *******************:990"<CR><LF>
<CR><LF>
^SIS: 2,0,2100,"220 (vsFTPd 3.0.3)"<CR><LF>
<CR><LF>
^SIS: 2,0,2100,"230 Login successful."<CR><LF>
<CR><LF>
^SIS: 2,0,100,"ERR: 522 Data connections must be encrypted."<CR><LF>
<CR><LF>
^SISW: 2,2<CR><LF>
Hello,
This is an error message from the server.
It looks as if the data channel is not encrypted. It is possible for FTP that the control channel is encrypted while the data channel is not. At the moment I can't see any information in the AT commands specification about how it is implemented.
Please also test ftpes connection.
Best regards,
Bartłomiej
Hello,
Thanks a lot for your help.
Yes, this is an error message from the server. I am using vsftpd server and it is configured as following:
listen=YES
listen_ipv6=NO
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
chroot_local_user=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
force_dot_files=YES
pasv_enable=YES
pasv_min_port=40000
pasv_***_port=41000
user_sub_token=$USER
local_root=/home/$USER/ftp
ssl_enable=YES
rsa_cert_file=/etc/ssl/private/vsftpd.pem
rsa_private_key_file=/etc/ssl/private/vsftpd.pem
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
require_ssl_reuse=NO
ssl_ciphers=HIGH
implicit_ssl=YES
listen_port=990
log_ftp_protocol=YES
Both data and logins SSL are forced to YES, so both channels are encrypted.
I captured the ftp protocol for 2 sessions.
1) Session one using filezilla as FTP client:
Tue Sep 14 19:03:33 2021 [pid 89431] CONNECT: Client "192.168.0.203"
Tue Sep 14 19:03:33 2021 [pid 89431] FTP response: Client "192.168.0.203", "220 (vsFTPd 3.0.3)"
Tue Sep 14 19:03:33 2021 [pid 89431] FTP command: Client "192.168.0.203", "USER ftpuser"
Tue Sep 14 19:03:33 2021 [pid 89431] [ftpuser] FTP response: Client "192.168.0.203", "331 Please specify the password."
Tue Sep 14 19:03:33 2021 [pid 89431] [ftpuser] FTP command: Client "192.168.0.203", "PASS <password>"
Tue Sep 14 19:03:33 2021 [pid 89424] [ftpuser] OK LOGIN: Client "192.168.0.203"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", "230 Login successful."
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP command: Client "192.168.0.203", "SYST"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", "215 UNIX Type: L8"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP command: Client "192.168.0.203", "FEAT"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", "211-Features:"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", " AUTH TLS??"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", " EPRT??"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", " EPSV??"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", " MDTM??"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", " PASV??"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", " PBSZ??"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", " PROT??"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", " REST STREAM??"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", " SIZE??"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", " TVFS??"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", "211 End"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP command: Client "192.168.0.203", "PBSZ 0"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", "200 PBSZ set to 0."
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP command: Client "192.168.0.203", "PROT P"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", "200 PROT now Private."
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP command: Client "192.168.0.203", "PWD"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", "257 "/" is the current directory"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP command: Client "192.168.0.203", "CWD /"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", "250 Directory successfully changed."
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP command: Client "192.168.0.203", "PWD"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", "257 "/" is the current directory"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP command: Client "192.168.0.203", "TYPE A"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", "200 Switching to ASCII mode."
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP command: Client "192.168.0.203", "PASV"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", "227 Entering Passive Mode (192,168,0,100,158,248)."
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP command: Client "192.168.0.203", "LIST -a"
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", "150 Here comes the directory listing."
Tue Sep 14 19:03:33 2021 [pid 89433] [ftpuser] FTP response: Client "192.168.0.203", "226 Directory send OK."
2) Session two using EXS82 as FTPS client.
Tue Sep 14 19:15:21 2021 [pid 89780] CONNECT: Client "***-***.***.***"
Tue Sep 14 19:15:22 2021 [pid 89780] FTP response: Client "***-***.***.***", "220 (vsFTPd 3.0.3)"
Tue Sep 14 19:15:22 2021 [pid 89780] FTP command: Client "***-***.***.***", "USER ftpuser"
Tue Sep 14 19:15:22 2021 [pid 89780] [ftpuser] FTP response: Client "***-***.***.***", "331 Please specify the password."
Tue Sep 14 19:15:23 2021 [pid 89780] [ftpuser] FTP command: Client "***-***.***.***", "PASS <password>"
Tue Sep 14 19:15:23 2021 [pid 89779] [ftpuser] OK LOGIN: Client "***-***.***.***"
Tue Sep 14 19:15:23 2021 [pid 89781] [ftpuser] FTP response: Client "***-***.***.***", "230 Login successful."
Tue Sep 14 19:15:23 2021 [pid 89781] [ftpuser] FTP command: Client "***-***.***.***", "TYPE I"
Tue Sep 14 19:15:23 2021 [pid 89781] [ftpuser] FTP response: Client "***-***.***.***", "200 Switching to Binary mode."
Tue Sep 14 19:15:23 2021 [pid 89781] [ftpuser] FTP command: Client "***-***.***.***", "CWD files"
Tue Sep 14 19:15:23 2021 [pid 89781] [ftpuser] FTP response: Client "***-***.***.***", "250 Directory successfully changed."
Tue Sep 14 19:15:23 2021 [pid 89781] [ftpuser] FTP command: Client "***-***.***.***", "PASV"
Tue Sep 14 19:15:23 2021 [pid 89781] [ftpuser] FTP response: Client "***-***.***.***", "227 Entering Passive Mode (192,168,0,100,160,7)."
Tue Sep 14 19:15:23 2021 [pid 89781] [ftpuser] FTP command: Client "***-***.***.***", "STOR my_serial.bin"
Tue Sep 14 19:15:23 2021 [pid 89781] [ftpuser] FTP response: Client "***-***.***.***", "522 Data connections must be encrypted."
Tue Sep 14 19:15:24 2021 [pid 89780] [ftpuser] DEBUG: Client "***-***.***.***", "Control connection terminated without SSL shutdown."
We can see that EXS82 client is trying to STOR a file without establishing a private session previously by sending the PBSZ 0 and PROT level command as the RFC 2228 specifies.
It looks like EXS82 FTP client is doing a wrong sequence.
I am going to test FTPES and going back with the results.
Hello,
Just tested with explicit option with bad results.
Again, 2 scenarios.
1) Using explicit FTP and Filezilla
Wed Sep 15 10:34:13 2021 [pid 1480] CONNECT: Client "192.168.0.202"
Wed Sep 15 10:34:13 2021 [pid 1480] FTP response: Client "192.168.0.202", "220 (vsFTPd 3.0.3)"
Wed Sep 15 10:34:13 2021 [pid 1480] FTP command: Client "192.168.0.202", "AUTH TLS"
Wed Sep 15 10:34:13 2021 [pid 1480] FTP response: Client "192.168.0.202", "234 Proceed with negotiation."
Wed Sep 15 10:34:15 2021 [pid 1480] FTP command: Client "192.168.0.202", "USER ftpuser"
Wed Sep 15 10:34:15 2021 [pid 1480] [ftpuser] FTP response: Client "192.168.0.202", "331 Please specify the password."
Wed Sep 15 10:34:15 2021 [pid 1480] [ftpuser] FTP command: Client "192.168.0.202", "PASS <password>"
Wed Sep 15 10:34:15 2021 [pid 1479] [ftpuser] OK LOGIN: Client "192.168.0.202"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", "230 Login successful."
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP command: Client "192.168.0.202", "SYST"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", "215 UNIX Type: L8"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP command: Client "192.168.0.202", "FEAT"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", "211-Features:"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", " AUTH TLS??"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", " EPRT??"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", " EPSV??"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", " MDTM??"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", " PASV??"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", " PBSZ??"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", " PROT??"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", " REST STREAM??"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", " SIZE??"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", " TVFS??"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", "211 End"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP command: Client "192.168.0.202", "PBSZ 0"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", "200 PBSZ set to 0."
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP command: Client "192.168.0.202", "PROT P"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", "200 PROT now Private."
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP command: Client "192.168.0.202", "PWD"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", "257 "/" is the current directory"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP command: Client "192.168.0.202", "TYPE I"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", "200 Switching to Binary mode."
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP command: Client "192.168.0.202", "PASV"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", "227 Entering Passive Mode (192,168,0,100,158,134)."
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP command: Client "192.168.0.202", "LIST"
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", "150 Here comes the directory listing."
Wed Sep 15 10:34:15 2021 [pid 1481] [ftpuser] FTP response: Client "192.168.0.202", "226 Directory send OK."
Wed Sep 15 10:34:23 2021 [pid 1480] [ftpuser] DEBUG: Client "192.168.0.202", "Control connection terminated without SSL shutdown."
Connection is fine, as the client request explicit authentication and then send PBSZ and PROT command.
2) Using explicit FTP and EXS82 client.
Wed Sep 15 10:35:32 2021 [pid 1491] CONNECT: Client "***-***.***.***"
Wed Sep 15 10:35:32 2021 [pid 1491] FTP response: Client "***-***.***.***", "220 (vsFTPd 3.0.3)"
Wed Sep 15 10:35:32 2021 [pid 1491] FTP command: Client "***-***.***.***", "????K???G??FQ5??;???D???&?9???T?=N?6??0??????T???????????,?+?0?/?????????.?-?2?1???????'?#?)?%?(?$?*?&?"
Wed Sep 15 10:35:32 2021 [pid 1491] FTP response: Client "***-***.***.***", "530 Please login with USER and PASS."
Wed Sep 15 10:35:32 2021 [pid 1491] FTP command: Client "***-***.***.***", "?????????????????????????????????K?G?9?3???=?<?5?/???????"
Wed Sep 15 10:35:32 2021 [pid 1491] FTP response: Client "***-***.***.***", "530 Please login with USER and PASS."
Wed Sep 15 10:35:32 2021 [pid 1491] FTP command: Client "***-***.***.***", "?????3?G?E???A????|W?F?????C???N5F???\.G???"
Wed Sep 15 10:35:32 2021 [pid 1491] FTP response: Client "***-***.***.***", "530 Please login with USER and PASS."
Wed Sep 15 10:35:32 2021 [pid 1491] FTP command: Client "***-***.***.***", "????/SE?S??T?W?{????I????BN?LB"<?R2?+??????????????????????????????"
Wed Sep 15 10:35:32 2021 [pid 1491] FTP response: Client "***-***.***.***", "530 Please login with USER and PASS."
Wed Sep 15 10:35:32 2021 [pid 1491] FTP command: Client "***-***.***.***", "???????????????????"
Wed Sep 15 10:35:32 2021 [pid 1491] FTP response: Client "***-***.***.***", "530 Please login with USER and PASS."
Output in EXS82 terminal:
^SIS: 2,0,2100,"Ftp connect ***.***.***.***:21"<CR><LF>
<CR><LF>
^SIS: 2,0,2100,"220 (vsFTPd 3.0.3)"<CR><LF>
<CR><LF>
^SIS: 2,0,100,"ERR: 504 Command not implemented for that parameter"<CR><LF>
<CR><LF>
^SISW: 2,2<CR><LF>
<CR><LF>
^SIS: 2,0,62,"Unknown internal TLS error"<CR><LF>
It looks like EXS82 is sending some encrypted request without request explicit authentication before.
It doesn't look good - could you send the firmware version (ATI1 reply)?
I'll try to verify what the implementation is.
Thanks,
Bartłomiej
Hello, this is the firmware version:
Cinterion
EXS82-W
REVISION 01.200
A-REVISION 01.000.01
Thanks
Hello,
According to the information I got the data connection should be encrypted for both FTPS and FTPES.
I tried FTPES to one public server with the same firmware. It did work and according to the output the data channel is encrypted:
AT^SISS?
^SISS: 0,"srvType","Ftp"
^SISS: 0,"conId","1"
^SISS: 0,"address","ftpes://test.rebex.net"
^SISS: 0,"secopt","0"
^SISS: 0,"user","demo"
^SISS: 0,"passwd","*****"
^SISS: 0,"files","/pub/example/readme.txt"
^SISS: 0,"cmd","get"
^SISS: 1,"srvType",""
^SISS: 2,"srvType",""
^SISS: 3,"srvType",""
^SISS: 4,"srvType",""
^SISS: 5,"srvType",""
^SISS: 6,"srvType",""
^SISS: 7,"srvType",""
^SISS: 8,"srvType",""
^SISS: 9,"srvType",""
OK
AT^SISO=0
OK
^SIS: 0,0,2100,"Ftp connect 195.144.107.198:21"
^SIS: 0,0,2100,"220 Microsoft FTP Service"
^SIS: 0,0,2100,"230 User logged in."
^SIS: 0,0,200," openFtpData with TLS DATA "
^SIS: 0,0,2100,"150 Opening BINARY mode data connection."
^SISR: 0,1
^SIS: 0,0,2100,"226 Transfer complete."
at^sisr=0,1500
^SISR: 0,407
Welcome,
you are connected using an FTP account used for testing purposes by Rebex FTP for .NET and Rebex FTP/SSL for .NET sample code.
Only read access is allowed and download speed is limited to 16KBps.
For information about Rebex FTP, Rebex FTP/SSL and other Rebex .NET components, please visit our website at http://www.rebex.net/
For feedback and support, contact support@rebex.cz
Thanks!
OK
^SISR: 0,2
aAT^SISC=0
OK
Hello,
Same config as you but still receiving an error:
20/09/2021 10:07:45.985 [TX] - AT^SISS?<CR>
20/09/2021 10:07:45.999 [RX] - AT^SISS?<CR>
<CR><LF>
^SISS: 0,"srvType","Ftp"<CR><LF>
^SISS: 0,"conId","1"<CR><LF>
^SISS: 0,"address","ftpes://test.rebex.net"<CR><LF>
^SISS: 0,"secopt","0"<CR><LF>
^SISS: 0,"user","demo"<CR><LF>
^SISS: 0,"passwd","*****"<CR><LF>
^SISS: 0,"files","/pub/example/readme.txt"<CR><LF>
^SISS: 0,"cmd","get"<CR><LF>
^SISS: 1,"srvType",""<CR><LF>
^SISS: 2,"srvType",""<CR><LF>
^SISS: 3,"srvType",""<CR><LF>
^SISS: 4,"srvType",""<CR><LF>
^SISS: 5,"srvType",""<CR><LF>
^SISS: 6,"srvType",""<CR><LF>
^SISS: 7,"srvType",""<CR><LF>
^SISS: 8,"srvType",""<CR><LF>
^SISS: 9,"srvType",""<CR><LF>
<CR><LF>
OK<CR><LF>
20/09/2021 10:08:37.371 [TX] - AT^SISO=0<CR>
20/09/2021 10:08:37.374 [RX] - AT^SISO=0<CR>
<CR><LF>
OK<CR><LF>
<CR><LF>
^SIS: 0,0,2100,"Ftp connect 195.144.107.198:21"<CR><LF>
<CR><LF>
^SIS: 0,0,2100,"220 Microsoft FTP Service"<CR><LF>
<CR><LF>
^SIS: 0,0,100,"ERR: 504 Command not implemented for that parameter"<CR><LF>
<CR><LF>
^SISR: 0,2<CR><LF>
<CR><LF>
^SIS: 0,0,62,"Unknown internal TLS error"<CR><LF>
This error is the same I got with my FTPES example.
Hello,
Looks like exactly the same configuration. Checking of received certificate is disabled. This is strange. Did you try to reboot the module and try again? Do you have another module to try? Did you do firmware update or you got with this version?
BR,
Bartłomiej