Probable bug on 11.8 - Samba protocol

Discuss new features and functions
Posts: 2
Joined: 31 Mar 2021

alberto.vietti

I use FFS to sync Qnap NAS and local PCs.
My NAS is secured so that, if an unknown user tries to access it through any protocol (including Samba), the IP of the user PC is banned.
I noticed that, with 11.8 version, at the end of sync activity the IP of my device was always banned.
After some investigations in the access log file of the NAS, I discovered that, in the last sync operations, FFS tries to access the NAS by using the PC name, as it were the user name (it seems a mistake of variable used in the code). Of course the NAS does not recognise the PC name as user and bans the IP.
By downgrading to 11.6 the problem disappeared.
Can developers look at this?
I stay at disposal for clarification.
User avatar
Site Admin
Posts: 7051
Joined: 9 Dec 2007

Zenju

Do you have more details? I don't know what you mean by "FFS tries to access the NAS by using the PC name".
Posts: 2
Joined: 31 Mar 2021

alberto.vietti

Thank you for replying.
Meanwhile I also tested version 11.9 and the problem is still present.
I attach here below an extract of the event Log of the NAS.
You can see that, during FFS operations, the NAS receives Login attempts on SAMBA (that is strange in anycase, why should the device log-in into the NAS server?), where the attempt is not done with "Myuser" (the user connected to the network) but with "PC_NAME$", the name of the device connected. This happens both with local LAN connection as well as with VPN connection.
Using the version 11.6 these attempts do not exist and everything works...
Severity Level    Date    Time        User        Source IP    Connection Type    Accessed Resource        Action
Information    30/03/2021    19:39:16    Myuser        10.0.0.2    Samba        Doc/sync.ffs_db                Read
Information    30/03/2021    19:39:16    Myuser        10.0.0.2    Samba        Doc/sync.ffs_db                Read
Information    30/03/2021    19:39:11    Myuser        10.0.0.2    Samba        Software/sync.ffs_lock        Delete
Information    30/03/2021    19:39:11    Myuser        10.0.0.2    Samba        Multimedia/sync.ffs_lock    Delete
Information    30/03/2021    19:39:11    Myuser        10.0.0.2    Samba        Lavoro/ABA/sync.ffs_lock    Delete
Information    30/03/2021    19:39:11    Myuser        10.0.0.2    Samba        Doc/sync.ffs_lock            Delete
Information    30/03/2021    19:39:11    Myuser        10.0.0.2    Samba        Software/sync.ffs_db        Read
Information    30/03/2021    19:39:11    Myuser        10.0.0.2    Samba        Software/sync.ffs_db        Read
Warning        30/03/2021    19:39:10    PC_NAME$    10.0.0.2    Samba        ---    Login                     Fail
Warning        30/03/2021    19:39:09    PC_NAME$    10.0.0.2    Samba        ---    Login                     Fail
Information    30/03/2021    19:39:09    Myuser        10.0.0.2    Samba        Doc/Google Drive/Lettera assunzione FIRMATA.pdf    Read
Information    30/03/2021    19:39:09    Myuser        10.0.0.2    Samba        Multimedia/sync.ffs_db        Read
Information    30/03/2021    19:39:09    Myuser        10.0.0.2    Samba        Doc/Google Drive/Lettera assunzione FIRMATA.pdf    Read
Information    30/03/2021    19:39:09    Myuser        10.0.0.2    Samba        Multimedia/sync.ffs_db        Read
Information    30/03/2021    19:39:09    Myuser        10.0.0.2    Samba        Doc/sync.ffs_db.0c48.ffs_tmp -> Doc/sync.ffs_db    Rename
Warning        30/03/2021    19:39:08    PC_NAME$    10.0.0.2    Samba        ---    Login                     Fail
Information    30/03/2021    19:39:08    Myuser        10.0.0.2    Samba        Doc/sync.ffs_db                Delete
Warning        30/03/2021    19:39:06    PC_NAME$    10.0.0.2    Samba        ---    Login                     Fail
Information    30/03/2021    19:39:06    Myuser        10.0.0.2    Samba        Doc/sync.ffs_lock            Write
Warning        30/03/2021    19:39:00    PC_NAME$    10.0.0.2    Samba        ---    Login                     Fail
Information    30/03/2021    19:39:00    Myuser        10.0.0.2    Samba        Doc/sync.ffs_lock            Read
User avatar
Site Admin
Posts: 7051
Joined: 9 Dec 2007

Zenju

Can you create a Process Monitor pml file when using FFS 11.9? This might give a clue what FFS is doing when these "PC_NAME$" log entries are generated. Please also provide a matching Samba log file for comparison.