Which software available in the ports collection supports SMB2 and SMB3 ? reddit / freebsd ---------------------------------------------------------------------- loziomario · 2022-04-23 15:14 Hello. on this page : [https://www.freebsd.org/cgi/man.cgi?query=mount\_smbfs&sektion=8&manp ath=freebsd-release-ports](https://www.freebsd.org/cgi/man.cgi?query=m ount_smbfs&sektion=8&manpath=freebsd-release-ports) ​ I can read : ​ mount_smbfs offers support for SMB/CIFS/SMB1. It does not support newer versions of the protocol like SMB2 and SMB3. SMB2 and SMB3 are supported by software available in the ports(7) collection. ​ It's not clear or I don't understand which software it is talking about. Since I'm trying to setup a samba connection between a Windows 11 Bhyve Remote VM and FreeBSD 13 as host / local OS,I would like to understand which tools should I use,since samba 1 is old and I should disable it on the Windows 11 guest remote OS. So,maybe,understanding what are the tools that support samba 2 and samba 3,I can find some alternative. Again,reading on this post what **VladiBG** is telling : ​ [https://forums.freebsd.org/threads/samba-v3-x- availability.69534/](https://forums.freebsd.org/threads/samba-v3-x- availability.69534/) ​ it seems that **FreeBSD 12.0 and samba48 supports SMBv3 and AES-128-CMAC**. On FreeBSD 13 I have installed samba 412,that should be a version newer than 48,so,what ? A newer version of samba works worst than the older ? I don't understand what's the real situation because I see two contradictory information. ---------------------------------------------------------------------- dddddavidddd · 2022-04-23 15:27 If FreeBSD is the samba client, I use `fusefs-smbnetfs`. ---------------------------------------------------------------------- loziomario · 2022-04-23 15:49 > fusefs-smbnetfs On FreeBSD I want to see the drives that I have shared inside the Windows 11 VM,so,yes,the client on freebsd and the server on Windows 11. ---------------------------------------------------------------------- loziomario · 2022-04-23 16:02 can you help me to understand why VladiBG says that samba48 supports SMBv3 and AES-128-CMAC and samba 412 not ? ---------------------------------------------------------------------- throwaway306499 · 2022-04-23 19:55 You must be more specific about the sub-version of the SMB-protocol you are trying to get working. The state of the SMB-world in the year 2022 is as far as I'm aware this: SMB 1.0 and CIFS is deprecated and should be disabled and left untouched. SMB 2.0 was introduced in Windows Vista / Server 2008 added is supported by the samba41 package and thereafter. SMB 3.0 was introduced in Windows 8 / Server 2012 and is supported by the samba42 package and thereafter. SMB 3.02 was introduced in Windows 8.1 / Server 2012 R2 and the CIFS client (horrible naming) can negotiate SMB3.02 dialect by specifying vers=3.02 on mount, eg,: mount -t cifs -o vers=3.03,username=myuser,password=mypass,rw,soft //win11/Myshare /mnt/Myshare Samba server cannot talk SMB 3.02. This is work in progress, see: https://wiki.samba.org/index.php/SMB3_kernel_status#SMB3.02 SMB 3.1.1 is used by Windows 10, Server 2016, Server 2019 and is not yes supported by Samba - neither on Linux nor FreeBSD. Your Windows 11 Bhyve VM should be able to negotiate SMB 3.0 automatically with your FreeBSD 13 host, if you configure samba correctly. What you left out is whether FreeBSD 13 will be client or server in your setup. The Windows 11 machine can easily be configured as the SMB server all though its a guest VM. In FreeBSD 13, you can install samba 4.13 as a package. No need to compile from ports: pkg install samba413 ---------------------------------------------------------------------- edthesmokebeard · 2022-04-23 22:37 This guy sambas. Thread over. ---------------------------------------------------------------------- OtherJohnGray · 2022-04-23 22:58 What is the status of SMB Direct over ip or infiniband? I have 40gb Mellanox connectx3s in my FreeBSD NAS server and windows 10 desktop. I seen Nvidia have an [OFED for FreeBSD](https://network.nvidia.com/products/drivers/freebsd/). I understand that Win10 needs to be workstation version to act as an RDMA client(?) Do you happen to know if Samba 4.13.17 is going to be able to act as an RDMA server for this? I’m worried I’ll fork out hundreds of dollars for Win10 workstation only to find it won’t deliver improved speeds… ---------------------------------------------------------------------- loziomario · 2022-04-23 23:58 what it means ? ---------------------------------------------------------------------- loziomario · 2022-04-24 00:03 On freeBSD I have installed samba412-4.12.15_4 ; the samba server is the one installed on Windows 11 virtualized with bhyve. Actually I'm using mount_smbfs that I think is located inside the package samba412-4.12.15_4. I have experienced by myself that the command mount_smbfs does not work on FreeBSD (it rejects the password configured on Windows). Someone told me that it is because it supports only samba v.1 so on Windows 11 I have enabled samba v.1. ---------------------------------------------------------------------- David_W_ · 2022-04-24 03:39 > Actually I'm using mount_smbfs that I think is located inside the package samba412-4.12.15_4. No, mount_smbfs is part of the base OS (you can tell because it lives in /usr/sbin, not /usr/local/sbin). As the man page you quoted says, it does not support the newer CIFS versions. Samba itself does not provide a means to mount CIFS shares. It only has smbclient, which works like an FTP client. If you want to mount CIFS shares using a newer protocol version, you should probably try the fusefs-smbnetfs port as was suggested above. ---------------------------------------------------------------------- loziomario · 2022-04-24 09:29 can you help me to understand why VladiBG says that samba48 supports SMBv3 and AES-128-CMAC and samba 412 not ? u can read it here : https://forums.freebsd.org/threads/samba-v3-x-availability.69534/ ---------------------------------------------------------------------- David_W_ · 2022-04-24 17:07 I don't know why you think that. I didn't see anything in there that says that, and Samba 4.13 definitely supports SMB3, so 4.12 almost certainly does as well. [dwagner@sakura] ~ % smbclient -V Version 4.13.17 [dwagner@sakura] ~ % smbclient -d 4 -U chii/dwagner //chii/users ... Connecting to 192.168.21.12 at port 445 session request ok negotiated dialect[SMB3_11] against server[chii] Enter CHII\dwagner's password: ... Try "help" to get a list of possible commands. smb: \> ls dos_clean_name [\*] unix_clean_name [\*] . DR 0 Sat Oct 23 00:18:12 2021 .. DR 0 Sat Oct 23 00:18:12 2021 ADMINI~1 D 0 Sat Oct 23 00:18:12 2021 All Users DHSrn 0 Sat Dec 7 04:30:39 2019 Default DHR 0 Thu Oct 14 19:40:00 2021 Default User DHSrn 0 Sat Dec 7 04:30:39 2019 desktop.ini AHS 174 Sat Dec 7 04:12:42 2019 dwagner D 0 Sun Apr 24 00:36:19 2022 Public DR 0 Thu Nov 19 02:48:03 2020 121735679 blocks of size 4096. 40030108 blocks available Total bytes listed: 174 ---------------------------------------------------------------------- grahamperrin · 2022-04-24 19:19 > … `mount_smbfs` is part of the base OS (you can tell because it lives in `/usr/sbin`, not `/usr/local/sbin`). … +1 I wondered whether it's also ported, apparently not: % pkg provides bin/mount_smbfs % pkg search -o fusefs-smbnetfs sysutils/fusefs-smbnetfs Mount smb shares (Fuse filesystem) % pkg info --list sysutils/fusefs-smbnetfs | grep bin\/ /usr/local/bin/smbnetfs % > … you should probably try the fusefs-smbnetfs port … +1 ---------------------------------------------------------------------- [deleted] · 2022-04-24 19:57 [deleted] ---------------------------------------------------------------------- [deleted] · 2022-04-24 20:06 [deleted] ---------------------------------------------------------------------- loziomario · 2022-04-24 20:31 I can't install samba413. that's why : https://pastebin.ubuntu.com/p/5wQYmh9vsf/ ---------------------------------------------------------------------- loziomario · 2022-04-24 22:40 I've been able to explore the content of the drive h : smbclient \\\\192.168.1.4\h WARNING: The "encrypt passwords" option is deprecated Enter WORKGROUP\marietto's password: Try "help" to get a list of possible commands. smb: > exit but it's not enough for me. I would like to mount the drive h to a specific folder created on freebsd. ---------------------------------------------------------------------- grahamperrin · 2022-04-25 06:58 > **Which software available in the ports collection supports SMB2 and SMB3 ?** [Since you progressed](https://forums.freebsd.org/threads/84938/) to experimenting with [sysutils/fusefs- smbnetfs](https://www.freshports.org/sysutils/fusefs-smbnetfs/), would you like to mark the post here *answered*? [answered](https://i.imgur.com/pTA9UeG.png) ---------------------------------------------------------------------- loziomario · 2022-04-25 09:42 Until I will not be able to mount the shared drives from Windows to FreeBSD,I can't mark the post answered. ---------------------------------------------------------------------- grahamperrin · 2022-05-01 19:29 > you can install samba 4.13 Is there any problem with [net/samba412](https://www.freshports.org/net/samba412/) instead of [net/samba413](https://www.freshports.org/net/samba413/)? We have some significant dependencies on the inferior version, for example: root@mowa219-gjp4-8570p-freebsd:~ # pkg install --quiet -n net/samba413 The following 20 package(s) will be affected (of 0 checked): Installed packages to be REMOVED: dolphin: 22.04.0 fusefs-smbnetfs: 0.6.1_4 gigolo: 0.5.2 gvfs: 1.46.2_2 kde-baseapps: 22.04.0_1 kde5: 5.24.4.22.04.0 kio-extras: 22.04.0 mate: 1.26.0 nautilus: 41.2 pluma: 1.26.0_3 samba412: 4.12.15_4 thunar: 4.16.11 thunar-archive-plugin: 0.4.0_1 thunar-media-tags-plugin: 0.3.0_1 thunar-vcs-plugin: 0.2.0_2 xfce: 4.16 xfce4-desktop: 4.16.0 xfce4-goodies: 4.16 New packages to be INSTALLED: samba413: 4.13.17_1 [FreeBSD] Installed packages to be REINSTALLED: vid.stab-0.98.2 [FreeBSD] Number of packages to be removed: 18 Number of packages to be installed: 1 Number of packages to be reinstalled: 1 The operation will free 72 MiB. 63 KiB to be downloaded. root@mowa219-gjp4-8570p-freebsd:~ # At least: * * * ---------------------------------------------------------------------- loziomario · 2022-05-02 22:49 The software does not support what I want to do because it is not the most common use-case. Features do not exist until someone puts in the effort to make them, and they do not persist if people don't keep putting effort into maintenance.