Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Mar 2016 06:02:43 +0100
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        FreeBSD CURRENT <freebsd-current@freebsd.org>, FreeBSD CURRENT <freebsd-current@freebsd.org>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   mounting CIFS share (tcp/445) with FreeBSD and mount_smbfs(8)
Message-ID:  <20160302060243.518568d7.ohartman@zedat.fu-berlin.de>

next in thread | raw e-mail | index | archive | help
--Sig_/.X=WLKyueDJLSxNF_XQhZxr
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

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.=
=20

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 p=
ort 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/samba=
43, both most
recent sources), where I configured samba_server via smb ports =3D 445 to u=
se port tcp 445
only and only SMB2 and SMB3 (server min protocol =3D SMB2) protocols via th=
e 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 =3D RPC struct is bad

Setting "smb ports =3D 139,445" and "server min protocol =3D 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 fir=
ewalled.=20

So: what do I miss here?

Kind regards and thank you in advance,

O. Hartmann

P.S. Please CC me

--Sig_/.X=WLKyueDJLSxNF_XQhZxr
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJW1nPzAAoJEOgBcD7A/5N8YD0IAOQ0brQ+riue9ecYB8Ps3RoU
Or+gylwEe/WjQnBIb4CenJNf9cXT4JgPHDbF8EYIjQy8bI4G2Z5Luauz4QnYdSD7
tsmCgKLRckiQ2AJrP/aMBA50Mx6i4q6jzRhIKTYVskwysgChM/b+rU6NPohh6wTR
I3VMUdeIcOCwcy4dFwczNC15s2LpvIJmCadmU9LStyih1ZPFvawOe6X/wQN0IN53
I8L2w/LRis8FzWSqM//LOwwZHK0jgdouXBRfPja+UnP1m6sGsuSQ6UgLemcSLdl4
gmGorbHH+mEbLY2gkIUOWXVu6grnHdPb55EB4fSjzHOEznUjwPvHYG/ATZTBA6c=
=YXhO
-----END PGP SIGNATURE-----

--Sig_/.X=WLKyueDJLSxNF_XQhZxr--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160302060243.518568d7.ohartman>