Hello Dear
The conclusion of my investigations is that when adding filter to my app, error is occuring when listing files, but without a filter it lists them normally.
I wanted to try if in FileZilla also an error occurs when adding a filter, but I did not find a way to add server side filters, only found client side filters that do not affect the command sent to the server.
As I mentioned before, I used to list files from different servers normally using filters and never had an issue knowing that the app is used across too many servers. Only on one server this issue is faced.
I dont think it is a security issue since I am being able to list files normally without using a filter.
Please note that TransferType in FileZilla is Type I, and my app is Type A, although I tried to change it in the code to type I(Binary), it is still appearing in logs as Type A,
maybe it is forced to be Type A somewhere in the code...
So can the filter issue be solved in any way?
I attached below the full logs of files listing of:
- FileZilla (Passive mode and with no filter)
- My C# app using Rebex (Passive mode with no filter)
- My C# app using Rebex (Passive mode with .txt filter)
I wanted to add the logs of FileZilla with .txt filter, but wasnt able to add server side filters using FileZilla, but only client side ones.. so I didnt add the logs.
**FileZilla logs:**
2024-08-19 10:08:31 38492 2 Status: Selected port usually in use by a different protocol.
2024-08-19 10:08:31 38492 2 Status: Requesting
https://update.filezilla-project.org/update.php?cpuid=sse%2Csse2%2Csse3%2Cssse3%2Csse4.1%2Csse4.2%2Cavx%2Caes%2Cpclmulqdq%2Crdrnd
%2C1m&initial=0&osarch=64&osversion=10.0&package=1&platform-x86_64-w64-mingw32&updated=0&version=3.44.2
2024-08-19 10:08:31 38492 2 Status: Resolving address of update.filezilla-project.org
2024-08-19 10:08:31 38492 2 Status: Connecting to 49.12.121.47:443...
2024-08-19 10:08:52 38492 2 Error: Connection timed out after 20 seconds of inactivity
2024-08-19 10:08:52 38492 2 Error: File transfer failed
2024-08-19 10:09:03 38492 1 Status: Connecting to 10.20.246.20:21...
2024-08-19 10:09:03 38492 1 Status: Connection established, waiting for welcome message...
2024-08-19 10:09:03 38492 1 Response: 220-FileZilla Server 1.8.2
2024-08-19 10:09:03 38492 1 Response: 220 Please visit
https://filezilla-project.org/
2024-08-19 10:09:03 38492 1 Status: Plain FTP is insecure. Please switch to FTP over TLS.
2024-08-19 10:09:06 38492 1 Command: USER web_acces
2024-08-19 10:09:06 38492 1 Response: 331 Please, specify the password.
2024-08-19 10:09:06 38492 1 Command: PASS ********
2024-08-19 10:09:06 38492 1 Response: 230 Login successful.
2024-08-19 10:09:06 38492 1 Command: SYST
2024-08-19 10:09:06 38492 1 Response: 215 UNIX emulated by FileZilla.
2024-08-19 10:09:06 38492 1 Command: FEAT
2024-08-19 10:09:06 38492 1 Response: 211-Features:
2024-08-19 10:09:06 38492 1 Response: MDTM
2024-08-19 10:09:06 38492 1 Response: REST STREAM
2024-08-19 10:09:06 38492 1 Response: SIZE
2024-08-19 10:09:06 38492 1 Response: MLST type*; size*; modify*; perm*;
2024-08-19 10:09:06 38492 1 Response:MLSD
2024-08-19 10:09:06 38492 1 Response: AUTH SSL
2024-08-19 10:09:06 38492 1 Response: AUTH TLS
2024-08-19 10:09:06 38492 1 Response: PROT
2024-08-19 10:09:06 38492 1 Response: PBSZ
2024-08-19 10:09:06 38492 1 Response: UTF8
2024-08-19 10:09:06 38492 1 Response: TVFS
2024-08-19 10:09:06 38492 1 Response: EPSV
2024-08-19 10:09:06 38492 1 Response: EPRT
2024-08-19 10:09:06 38492 1 Response: MFMT
2024-08-19 10:09:06 38492 1 Response: 211 End
2024-08-19 10:09:06 38492 1 Status: Logged in
2024-08-19 10:09:06 38492 1 Status: Retrieving directory listing of "/checks"...
2024-08-19 10:09:06 38492 1 Command: CWD /checks
2024-08-19 10:09:06 38492 1 Response: 250 CWD command successful
2024-08-19 10:09:06 38492 1 Command: PWD
2024-08-19 10:09:06 38492 1 Response: 257 "/checks" is current directory.
2024-08-19 10:09:06 38492 1 Command: TYPE I
2024-08-19 10:09:06 38492 1 Response: 200 Type set to I
2024-08-19 10:09:06 38492 1 Command: PASV
2024-08-19 10:09:06 38492 1 Response: 227 Entering Passive Mode (10,20,246,20,203,70)
2024-08-19 10:09:06 38492 1 Command: MLSD
2024-08-19 10:09:06 38492 1 Response: 150 About to start data transfer.
2024-08-19 10:09:06 38492 1 Response: 226 Operation successful
2024-08-19 10:09:06 38492 1 Status: Directory listing of "/checks" successful
**My app with no filter logs:**
2024-08-20 09:50:37.455 Opening log file.
2024-08-20 09:50:37.471 INFO FileLogWriter (1) [1] Info: Assembly: Rebex.Common 2020 R5 for .NET 4.6-4.8
2024-08-20 09:50:37.471 INFO FileLogWriter (1) [1] Info: Platform: Windows 6.2.9200 32-bit; CLR: 4.0.30319.42000
2024-08-20 09:50:37.471 DEBUG FileLogWriter (1) [1] Info: Culture: en; Windows-1252
2024-08-20 09:50:37.486 INFO Ftp(1) [1] Info: Connecting to 10.20.246.20:21 using Ftp.
2024-08-20 09:50:37.486 INFO Ftp (1) [1] Info: Assembly: Rebex. Ftp 2020 R5 for .NET 4.6-4.8
2024-08-20 09:50:37.486 INFO Ftp (1) [1] Info: Platform: Windows 6.2.9200 32-bit; CLR: 4.0.30319.42000
2024-08-20 09:50:37.486 DEBUG Ftp (1) [1] Info: Culture: en; Windows-1252
2024-08-20 09:50:37.486 INFO Ftp (1) [1] Info: Using proxy none.
2024-08-20 09:50:37.518 DEBUG Ftp (1) [1] Proxy: Connecting to 10.20.246.20:21 (no proxy).
2024-08-20 09:50:37.518 DEBUG Ftp (1) [1] Proxy: Connection established.
2024-08-20 09:50:37.533 DEBUG Ftp (1) [1] Info: Connection succeeded.
2024-08-20 09:50:37.533 INFO Ftp (1) [1] Response: 220-FileZilla Server 1.8.2
2024-08-20 09:50:37.533 INFO Ftp (1) [1] Response: 220 Please visit
https://filezilla-project.org/
2024-08-20 09:50:37.549 INFO Ftp (1) [1] Command: USER web_acces
2024-08-20 09:50:37.549 INFO Ftp (1) [1] Response: 331 Please, specify the password.
2024-08-20 09:50:37.549 INFO Ftp(1) [1] Command: PASS
2024-08-20 09:50:37.642 INFO Ftp (1) [1] Response: 230 Login successful.
2024-08-20 09:50:37.658 INFO Ftp(1) [1] Command: FEAT
2024-08-20 09:50:37.658 INFO Ftp (1) [1] Response: 211-Features:
2024-08-20 09:50:37.658 INFO Ftp (1) [1] Response: MDTM
2024-08-20 09:50:37.658 INFO Ftp (1) [1] Response: REST STREAM
2024-08-20 09:50:37.658 INFO Ftp (1) [1] Response: SIZE
2024-08-20 09:50:37.658 INFO Ftp (1) [1] Response: MLST type*;size*; modify*; perm*;
2024-08-20 09:50:37.658 INFO Ftp (1) [1] Response: MLSD
2024-08-20 09:50:37.658 INFO Ftp (1) [1] Response: AUTH SSL
2024-08-20 09:50:37.658 INFO Ftp (1) [1] Response: AUTH TLS
2024-08-20 09:50:37.658 INFO Ftp (1) [1] Response: PROT
2024-08-20 09:50:37.658 INFO Ftp (1) [1] Response: PBSZ
2024-08-20 09:50:37.658 INFO Ftp (1) [1] Response: UTF8
2024-08-20 09:50:37.658 INFO Ftp (1) [1] Response: TVFS
2024-08-20 09:50:37.658 INFO Ftp (1) [1] Response: EPSV
2024-08-20 09:50:37.658 INFO Ftp (1) [1] Response: EPRT
2024-08-20 09:50:37.658 INFO Ftp (1) [1] Response: MFMT
2024-08-20 09:50:37.658 INFO Ftp (1) [1] Response: 211 End
2024-08-20 09:50:37.658 INFO Ftp (1) [1] Command: OPTS UTF8 ON
2024-08-20 09:50:37.658 INFO Ftp (1) [1] Response: 202 UTF8 mode is always enabled. No need to send this command
2024-08-20 09:50:37.689 INFO Ftp (1) [1] Command: MLST /checks
2024-08-20 09:50:37.689 INFO Ftp (1) [1] Response: 250-Listing /checks
2024-08-20 09:50:37.689 INFO Ftp (1) [1] Response: type=dir; modify-20230409101635.132; perms=cplemfd; /checks
2024-08-20 09:50:37.689 INFO Ftp(1) [1] Response: 250 End
2024-08-20 09:50:37.705 INFO Ftp (1) [1] Command: CWD /checks
2024-08-20 09:50:37.705 INFO Ftp (1) [1] Response: 250 CWD command successful
2024-08-20 09:50:37.705 DEBUG Ftp (1) [1] Info: Starting data transfer.
2024-08-20 09:50:37.705 INFO Ftp (1) [1] Command: TYPE A
2024-08-20 09:50:37.721 INFO Ftp (1) [1] Response: 200 Type set to A
2024-08-20 09:50:37.721 INFO Ftp (1) [1] Command: PASV
2024-08-20 09:50:37.721 INFO Ftp (1) [1] Response: 227 Entering Passive Mode (10,20,246,20,195,232)
2024-08-20 09:50:37.721 DEBUG Ftp(1) [1] Info: Establishing data connection to 10.20.246.20:50152.
2024-08-20 09:50:37.721 DEBUG Ftp (1) [1] Proxy: Connecting to 10.20.246.20:50152 (no proxy).
2024-08-20 09:50:37.721 DEBUG Ftp (1) [1] Proxy: Connection established.
2024-08-20 09:50:37.721 DEBUG Ftp (1) [1] Info: Established data connection from 10.20.246.6:62085.
2024-08-20 09:50:37.721 INFO Ftp (1) [1] Command: MLSD
2024-08-20 09:50:37.721 INFO Ftp (1) [1] Response: 150 Starting data transfer.
2024-08-20 09:50:37.721 DEBUG Ftp (1) [1] Info: Data transfer started.
2024-08-20 09:50:37.736 INFO Ftp (1) [1] Response: 226 Operation successful
2024-08-20 09:50:37.736 DEBUG Ftp(1)[1] Info: Item: type=file; size=7851534; modify=20210218082128.314; perms-awrfd; cdrs23.txt
2024-08-20 09:50:37.736 DEBUG Ftp (1) [1] Info: Item: type-file; size=0; modify=20210301132552.231; perms-awrfd; cdrs24.txt
2024-08-20 09:50:37.736 DEBUG Ftp(1)[1] Info: Item: type=file; size=20626; modify-20230409110707.388; perms=awrfd; list.txt
2024-08-20 09:50:37.736 DEBUG Ftp(1) [1] Info: Item: type=file; size=490211044; modify=20210811113839.867; perms-awrfd; list202107.csv
2024-08-20 09:50:37.736 DEBUG Ftp(1) [1] Info: Item: type=file; size=1089356; modify=20210817104737.916; perms-awrfd; list20210712.txt
2024-08-20 09:50:37.736 DEBUG Ftp (1) [1] Info: Item: type=file; size=941736; modify-20210817105010.504; perms-awrfd; list20210716.txt
2024-08-20 09:50:37.736 DEBUG Ftp(1) [1] Info: Item: type-file; size=9970998; modify-20210811104033.740; perms-awrfd; list202108.csv
2024-08-20 09:50:37.736 DEBUG Ftp(1)[1] Info: Item: type=file; size=10008; modify=20210811094716.382; perms=awrfd; list20210811.csv
2024-08-20 09:50:37.736 DEBUG Ftp(1) [1] Info: Item: type-file; size=320038; modify-20210901091312.257; perms-awrfd; list20210901-processed.txt
2024-08-20 09:50:37.736 DEBUG Ftp(1)[1] Info: Item: type=file; size=110063622; modify=20210812124504.749; perms-awrfd; listcdr.csv
2024-08-20 09:50:37.736 DEBUG Ftp(1)[1] Info: Item: type-file; size=917; modify-20220105100259.185; perms-awrfd; Message&ping.txt
2024-08-20 09:50:37.736 DEBUG Ftp(1)[1] Info: Item: type=file; size=3250422; modify=20210217105330.650;perms=awrfd; SMS_fileslist.txt
2024-08-20 09:50:37.736 DEBUG Ftp(1)[1] Info: Item: type=file; size=698; modify=20210310090835.732; perms-awrfd; trace3.txt
2024-08-20 09:50:37.736 DEBUG Ftp(1)[1] Info: Item: type=file; size=1334; modify=20210310091502.383; perms-awrfd; trace3_&_4.txt
2024-08-20 09:50:37.736 DEBUG Ftp (1) [1] Info: Item: type=file; size=6873404; modify-20210308082945.069; perms-awrfd; vm13mo_sms202101.txt
2024-08-20 09:50:37.736 DEBUG Ftp(1) [1] Info: Item: type=file; size=11279014; modify=20210308083115.711; perms-awrfd; vm13mt_sms202101.txt
2024-08-20 09:50:37.736 DEBUG Ftp(1) [1] Info: Item: type-file; size=0; modify-20210421102607.468; perms-awrfd; vm13mt_sms202103.txt
2024-08-20 09:50:37.736 DEBUG Ftp(1)[1] Info: Item: type=file; size=6873404; modify=20210308082818.037; perms=awrfd; vm7mo_sms202101.txt
2024-08-20 09:50:37.736 DEBUG Ftp(1) [1] Info: Item: type-file; size=13170968; modify=20210308082440.877; perms-awrfd; vm7mt_sms202101.txt
2024-08-20 09:50:37.736 DEBUG Ftp (1) [1] Info: Item: type=file; size=4782522; modify=20210308080859.550;perms-awrfd; vm8mo_sms202101.txt
2024-08-20 09:50:37.736 DEBUG Ftp(1)[1] Info: Item: type-file; size=9028412; modify=20210308081104.615; perms-awrfd; vm8mt_sms202101.txt
2024-08-20 09:50:37.752 DEBUG Ftp (1) [1] Info: Data transfer ended. 1655 bytes transferred.
2024-08-20 09:50:37.752 DEBUG Ftp (1) [1] Info: Closing downloading data connection.
2024-08-20 09:50:37.752 DEBUG Ftp(1) [1] Info: Transfer ended successfully.
2024-08-20 09:50:37.752 DEBUG Ftp (1) [1] Info: Data connection closed.