From owner-freebsd-questions@freebsd.org Thu Mar 3 06:44:57 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 54243AC2484; Thu, 3 Mar 2016 06:44:57 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1AABD1CE3; Thu, 3 Mar 2016 06:44:56 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (envelope-from ) id <1abN0J-003Dl4-3r>; Thu, 03 Mar 2016 07:44:55 +0100 Received: from p578a69f9.dip0.t-ipconnect.de ([87.138.105.249] helo=freyja.zeit4.iv.bundesimmobilien.de) by inpost2.zedat.fu-berlin.de (Exim 4.85) with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (envelope-from ) id <1abN0I-003iQm-R8>; Thu, 03 Mar 2016 07:44:55 +0100 Date: Thu, 3 Mar 2016 07:44:54 +0100 From: "O. Hartmann" To: Martin Smith Cc: FreeBSD CURRENT , FreeBSD Questions Subject: Re: mounting CIFS share (tcp/445) with FreeBSD and mount_smbfs(8) Message-ID: <20160303074454.23e596d7@freyja.zeit4.iv.bundesimmobilien.de> In-Reply-To: <56D73578.4040802@rakupottery.org.uk> References: <20160302060243.518568d7.ohartman@zedat.fu-berlin.de> <56D73578.4040802@rakupottery.org.uk> Organization: FU Berlin X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-IP: 87.138.105.249 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2016 06:44:57 -0000 On Wed, 2 Mar 2016 18:48:24 +0000 Martin Smith wrote: > On 02/03/2016 05:02, O. Hartmann wrote: > > Hello list. > > > > I need to mount a CIFS share from windows server 2012 r2 via CIFS, tcp/445 > > as NetBIOS service (tcp/139) has been deprecated due to serious > > vulnerability issues. > > > > Until the disabling of NetBIOS and tcp/139 we used successfully autofs and > > mount_smbfs. this is no longer working. I tried to force autofs/mount_smbfs > > to bind to port 445 on the server via ://@xxx.xxx.xxx.xxx:445/sharename, > > but this doesn't work. > > > > Trying to mount a share from a samba 4.3 server (FreeBSD CURRENT, > > net/samba43, both most recent sources), where I configured samba_server via > > smb ports = 445 to use port tcp 445 only and only SMB2 and SMB3 (server min > > protocol = SMB2) protocols via the following command: > > > > mount_smbfs -I xxx.xxx.xxx.xxx -U a_user -W \ > > WORKGROUP //a_user@xxx.xxx.xxx.xxx:445/sharename /mnt > > > > results in the error > > > > mount_smbfs: unable to open connection: syserr = RPC struct is bad > > > > Setting "smb ports = 139,445" and "server min protocol = NT1" seems to > > work, the share can be bound, but this is SMB over tcp/139 and not CIFS. > > > > I desperately need CIFS and I need tcp/445 since tcp/139 is from now on > > firewalled. > > > > So: what do I miss here? > I think this is a windows server problem, though I am not in a position > to make any useful suggestions > except to say that I am continually coming up against similar problems > with windows machines as well > sorry I cant be any more help Since I manag to connect to a SAMBA 4.3 server via 445/tcp only, but only when "min protocol = NT1" is set (tried also SMB2). Connecting to Windows 2012 R2 doesn't work. I guess mount_smbfs "understands" only NT1 and below, the Win 2012R2 offers at least SMB2? > > > > > > Kind regards and thank you in advance, > > > > O. Hartmann > > > > P.S. Please CC me