musenet / nekodrive

Automatically exported from code.google.com/p/nekodrive
0 stars 0 forks source link

NekoDrive can't connect via SSH TCP tunnel #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to connect to a NFS server via SSH tunnel

What is the expected output?
* Successful connection

What do you see instead?
* ONC/RPC portmap failure

What version of the product are you using? On what operating system?
* 0.9.38985

Please provide any additional information below.
NFS howto ( http://tldp.org/HOWTO/NFS-HOWTO/security.html ) claims that it's 
possible to connect with only TCP tunnels (no UDP tunneling capabilities are 
needed). A NFS client that is able to use non-standard ports to connect is 
handy, but not required (if the client machine is not an NFS server by itself, 
you can just tunnel 2049 and 111 ports as-is).

AFAICS in NFSLibrary source code, port=0 and 
protocol=OncRpcProtocols.ONCRPC_UDP are hardcoded.

The reason SSH is needed should be obvious (NFSv2/3 has practically zero 
security, and NFSLibrary does not support NFSv4 with krb5p)

Original issue reported on code.google.com by LRN1...@gmail.com on 31 Oct 2014 at 10:29