News for hackers. Stuff that matters.
Re:Windows File System Proxy – FUSE-Like Capability for Windows by ComodoHacker on Thursday July 21, 2016 @03:09AM (#12135260)
How do I connect to CIFS on non-default port?
Re:Windows File System Proxy – FUSE-Like Capability for Windows by captainmuon on Thursday July 21, 2016 @03:59AM (#12135427)
The only way I found was to use (cygwin ssh) port forwarding to map that port to the standard one, kill the default network SMB process (which restarts), and hope my process wins the race. Then you could access the remote shares at \\127.0.0.1 .

I think I also managed to create a loopback device, put it into its own subnet, and map the port to that device, and then it was possible to do e.g. \\192.168.100.56, but it was a pain to set up.

The reason I needed this was, I wanted to run samba as non-root on a remote host (on a non-privileged port), and forwarded that with ssh though a firewall. This way I could access my files on the remote Linux server from my windows desktop. One problem is that windows does not tolerate hanging connections much, and a bad or lost connecting can freeze your program or require a reboot. I'm not sure how much is the kernels fault and how much you can code around this.

Re:Windows File System Proxy – FUSE-Like Capability for Windows by ComodoHacker on Thursday July 21, 2016 @05:04AM (#12135637)
Dirty hacking as it is. In similar situations I just use SFTP.
Re:Windows File System Proxy – FUSE-Like Capability for Windows by int_19h on Thursday July 21, 2016 @08:26PM (#12141000)
I've seen UNC paths with port number before, so I assumed that it's possible; but apparently those are for WebDAV.

Of course, this means that it should be doable with WebDAV instead of CIFS. Which would probably mean even worse perf, but still potentially acceptable...

Can WebDAV paths be used without mounting them to a drive letter first, though?