Cannot connect to SMB server when min protocol = SMB2 is set

English support forum

Moderators: white, Hacker, petermad, Stefan2

nemonein
Junior Member
Junior Member
Posts: 15
Joined: 2013-05-11, 05:40 UTC

Cannot connect to SMB server when min protocol = SMB2 is set

Post by *nemonein »

Hi.
Thank you for your great software.
I'm using T.C android to connect my smb server. It works fine before I added a line to smb.conf.

Because of current threat(Wanna Cry..), I changed the smb.conf setting like this.

Code: Select all

min protocol = SMB2
After that, I cannot connect to SMB server, and T.C says,

Code: Select all

Failed to connect: 0.0.0.0<00>/192.168.0.2
/
192.168.0.2 is the server's ip.

Any help will be appreciated.
Thanks!
User avatar
hlloyge
Member
Member
Posts: 131
Joined: 2006-11-02, 23:14 UTC

Post by *hlloyge »

Can you connect through windows?
nemonein
Junior Member
Junior Member
Posts: 15
Joined: 2013-05-11, 05:40 UTC

Post by *nemonein »

Yes, and it's only possible through Windows only.
I can't connect to the samba server from Ubuntu.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC Android uses the JCIFS library, which only supports SMB1. There have been suggestions for many years to support SMB2, but apparently it is too complex to add it:
https://lists.samba.org/archive/jcifs/2016-January/010328.html
Author of Total Commander
https://www.ghisler.com
nemonein
Junior Member
Junior Member
Posts: 15
Joined: 2013-05-11, 05:40 UTC

Post by *nemonein »

I see.
Thanks for your response.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

A new library "smbj" is currently in development here, which supports SMB2:
https://github.com/hierynomus/smbj

It's still unfinished with many functions missing, so I will wait a bit until I switch to it.
Author of Total Commander
https://www.ghisler.com
mydeardiary
Junior Member
Junior Member
Posts: 6
Joined: 2017-06-22, 14:16 UTC
Contact:

Post by *mydeardiary »

ghisler(Author) wrote:A new library "smbj" is currently in development here, which supports SMB2

It's still unfinished with many functions missing, so I will wait a bit until I switch to it.
I bumped into the same issue after disabling SMB1.

Could you provide separate LAN plugin to provide SMB2/3 support?
Separate plugin is nice way to try SMB2/3 with smbj library and keep the existing LAN plugin working.

This feature should be prioritized so that file server can disable SMB1 and Android client can securely connect to the file server.

For now, only Andsmb and ES File Explorer support SMB2/3. Andsmb only does file-syncing (can't open files on SMB server on the fly), whereas ES requires in app purchase for SMB2/3.

Can't wait forever for SMB2/3 support coming to TC Android.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The problem with a separate plugin would be that existing users wouldn't know about the new plugin...
Author of Total Commander
https://www.ghisler.com
mydeardiary
Junior Member
Junior Member
Posts: 6
Joined: 2017-06-22, 14:16 UTC
Contact:

Post by *mydeardiary »

Even MS wants users to stop using SMB1. Enabling SMB2/3 support should be prioritized, since MS will disable SMB1 on RS3.

Quote from Ned Pyle
SMB1 has been deprecated for years and will be removed by default from many editions and SKUs of Windows 10 and Windows Server 2016 in the RS3 release.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Here is a list of open issues of the smbj library:
https://github.com/hierynomus/smbj/issues

It only supports SMB2 so far, not SMB3. There are also errors about missing encryption methods on Android. The author plans to release a new major update sometimes near the end of June/start of July, so there is some hope.
Author of Total Commander
https://www.ghisler.com
zito
Junior Member
Junior Member
Posts: 2
Joined: 2017-07-23, 23:12 UTC

Stop using SMB1.

Post by *zito »

MS16-114

I was also stuck.
Unfortunately, in nowadays, the lack of SMB @ v>1 makes LAN PLUGIN unsuitable for use!

Good luck and thanks for the great piece of soft.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Good news: The first beta with SMB2 support is available now! It contains both the old SMB1 support (via JCIFS) and the new SMB2 support (via SMBJ).

IMPORTANT: You need to enable SMB2 via connection settings checkbox, there is currently no automatic detection.

WARNING: This is a pre-release version. Do not delete local files after uploading them with it, or remote files after downloading them!

Please report bugs either here in the forum, or via e-mail.

Download via Play Store:
https://play.google.com/apps/testing/com.ghisler.tcplugins.LAN
Note: You may get error "app not available for this account" for a few hours, until the beta version is available in all countries.

Direct download:
http://ghisler.fileburst.com/beta/tcandroidlan213b4.apk
Author of Total Commander
https://www.ghisler.com
zito
Junior Member
Junior Member
Posts: 2
Joined: 2017-07-23, 23:12 UTC

SMB2

Post by *zito »

Great!
- and finally - let's test.
BR

BTW:

There is something like [Android Samba Client] - Android's SMB client prepared by google.

....and just appeared the first update of [ASC]... and... they removed SMB1!
There is only SMB2 i SMB3 available!

What's more, the code of [ASC] is available @ github.
nemonein
Junior Member
Junior Member
Posts: 15
Joined: 2013-05-11, 05:40 UTC

No difference with the Samba Server and Lan Plugin 3.01

Post by *nemonein »

Hello.

I tried T.C lan plugin 3.01 for Android with Samba server setting "min protocol = smb2".

The result is the same as when I asked this before.
I cannot connect to Samba server from Android machines(OS 5.x).
(I also enabled the SMB2 setting in the Lan plugin.)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have no problems connecting to SMB2 only servers. The error you reported in your first post doesn't indicate any protocol problems - it means that the plugin couldn't even establish a TCP/IP connection to the default SMB port 445. Maybe a firewall is blocking your device.
Author of Total Commander
https://www.ghisler.com
Post Reply