Easiest way to implement SMB redirection for Windows?

I would like to implement a small tool that allows me to do on Windows what I can already do easily on any other OS - specify a remote SMB server both by IP address and port . Naturally, Windows will not do SMB on any ports other than 445 or 139 (of its choice), and I don’t like to play whack-a-mole with workarounds for various Bad Things that Microsoft continues to add to Windows to perform SMB tunneling through forwarding of SSH ports.

What I mean is a small command line application that will allow me to do something like

netsubst servername -i IP -p PORT

Will it work hand in hand with the driver? Dll? which intercepts Windows as an SMB redirector, but looks at the table of server names created by netsubst, instead of searching on the network to find out what to connect to. Therefore i could do

net use X: // server_name / sharename / user: username *

in the usual way, except that instead of Windows looking for // server_name on ports 445 or 139 of any machines that he could find, he went directly to the IP address, port PORT; and if IP turned out to be 127.0.0.1, and PORT turned out to be something redirected to another location via ssh, all this would just work, and I would no longer need to deal with the stupid walls that Windows provides access to local ports 139 and 445.

, - //vboxsvr, VirtualBox , , , , - . Windows, , - , SMB-. VirtualBox, - , , , Microsoft SMB?

+3
3
+2

\\server@port\share WebDAV. , @port UNC-, SMB WebDAV. , SMB.

-

+2

net use * \\servername@XXXX\where XXXX is the port number. I jast tested this on Windows 7. So it works fine

-2
source

Source: https://habr.com/ru/post/1794670/


All Articles