From owner-freebsd-questions@freebsd.org Wed Mar 2 18:49:44 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 194AEAC2FB0; Wed, 2 Mar 2016 18:49:44 +0000 (UTC) (envelope-from lists@rakupottery.org.uk) Received: from iprslrsmtp2msp.cpwnetworks.com (rslrsmtp2.opaltelecom.net [62.24.128.202]) by mx1.freebsd.org (Postfix) with ESMTP id 85FE41182; Wed, 2 Mar 2016 18:49:42 +0000 (UTC) (envelope-from lists@rakupottery.org.uk) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2AIBQCDNNdW//6AGD5eGQEBAg8BAQEBg1xtpkYFAYEPAZAuhAgZhXYCghQBAQEBAQFlJ4RBAQEBAQIBOEARCxgJEwMPCQMCAQIBNw4GAQwGAgEBiBUMuy8BAQEHAQEBAQEbhUqFAoN6I4RSAQSXEoVaiWmERIMChVBEjghig2RqAYhfAQEB X-IPAS-Result: A2AIBQCDNNdW//6AGD5eGQEBAg8BAQEBg1xtpkYFAYEPAZAuhAgZhXYCghQBAQEBAQFlJ4RBAQEBAQIBOEARCxgJEwMPCQMCAQIBNw4GAQwGAgEBiBUMuy8BAQEHAQEBAQEbhUqFAoN6I4RSAQSXEoVaiWmERIMChVBEjghig2RqAYhfAQEB X-IronPort-AV: E=Sophos;i="5.22,529,1449532800"; d="scan'208";a="694946956" Received: from smtp-pub.talktalk.net (HELO rslr-smtp-1.cpwnetworks.com) ([62.24.128.254]) by iprslrsmtp2msp.cpwnetworks.com with ESMTP; 02 Mar 2016 18:48:30 +0000 Received: from [92.27.146.104] (helo=imac.local) by rslr-smtp-1.cpwnetworks.com with esmtp (Exim 4.63) (envelope-from ) id 1abBp0-0007cX-6I; Wed, 02 Mar 2016 18:48:30 +0000 Subject: Re: mounting CIFS share (tcp/445) with FreeBSD and mount_smbfs(8) To: "O. Hartmann" , FreeBSD CURRENT , FreeBSD Questions References: <20160302060243.518568d7.ohartman@zedat.fu-berlin.de> From: Martin Smith Message-ID: <56D73578.4040802@rakupottery.org.uk> Date: Wed, 2 Mar 2016 18:48:24 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160302060243.518568d7.ohartman@zedat.fu-berlin.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Wed, 02 Mar 2016 18:49:44 -0000 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 > > Kind regards and thank you in advance, > > O. Hartmann > > P.S. Please CC me