ShareFS - what's needed to make it work?
Dave Higton (1515) 3525 posts |
I only just started to try RPCEmu a few days ago. I see from its docs that ShareFS doesn’t work. What would be necessary to make it work? |
Martin Avison (27) 1494 posts |
I talked to the maintainers at the show about this – it is a problem they are well aware of, associated with enabling ShareFS to work through the NAT translations. I understand that the recent networking changes are a small step towards a solution, but still a lot more work to do. However, there may not be any reasonable solution. |
Dave Higton (1515) 3525 posts |
Thank you, Martin. I confess I was hoping for more specifics in the reply. Is broadcast part of the problem? |
Steve Pampling (1551) 8170 posts |
Quite likely to be most of the problem – as in the networking setup being a NAT Virtual router, and broadcasts don’t route. For this specific use case, I suspect the most sensible course would be to change ShareFS to use something routable which is not a quick and easy task. |
Dave Higton (1515) 3525 posts |
ShareFS already uses broadcast, so if it were a real problem, no-one would be able to use ShareFS. IIUC only four ports need to be open for receipt of broadcast traffic, and then only from the LAN – I don’t think anyone would suggest opening it up to the wider world. That would be bordering on insanity, I agree.
Then it wouldn’t be ShareFS. It wouldn’t be compatible with anything out there. I did suggest a few years back that a ShareFS 2 would be a good idea, taking the best ideas from ShareFS and replacing the problematic bits. Vague, I know. One of the problems we’re suffering from is the absence of source code for ShareFS. |
Dave Higton (1515) 3525 posts |
I see I should have read the RPCEmu networking instructions more extensively and carefully. It does look like it’s possible to get ShareFS working, but it’s more involved to set it up to do so. |
David Pitt (3386) 1248 posts |
Hmm!! This is from the Release notes Network Address Translation You can now configure ports to be forwarded between your host network and RPCEmu. This allows you to host servers under RPCEmu that can be accessed by other machines on your network. (Note, this still does not enable the use of ShareFS) |
Stuart Swales (8827) 1357 posts |
For the amount of effort it’d need to set up iptables etc.1 I’m sure it’d be more productive in the long run to simply set up a share either on the system RPCEmu is running on – even if it’s outside the RPCEmu dir, symlink it – or on a server visible to both! 1 I have a feeling I got it working a few years back, but all my RPCEmu networking is in bridged mode on Linux hosts. |
Frank de Bruijn (160) 228 posts |
In my experience, ethernet bridging supports ShareFS (though I admit it’s been a while since I used it…). Piece of cake to set up if your host is Linux and it’s in a LAN. Just install bridge-utils, get rid of network-manager and create /etc/network/interfaces, looking something like this: (had to remove the comments because the retarded forum software screwed them up even in a pre and/or code section…). auto lo iface lo inet loopback auto eth0 iface eth0 inet manual auto br0 iface br0 inet static address 192.168.1.2 network 192.168.1.0 netmask 255.255.255.0 gateway 192.168.1.1 broadcast 192.168.1.255 bridge_ports eth0 bridge_fd 9 bridge_hello 2 bridge_maxage 12 bridge_stp off bridge_hw xx:xx:xx:xx:xx:xx Some of that may be obsolete (this file is from 2013 and I think the netmask setting isn’t set like that anymore, but hey, this still works here). In the above, 192.168.1.2 is the host’s address. Give your other machines on the LAN – including RPCEmu – whatever address you like between 192.168.1.3 and 192.168.1.254. [yes, I’m back already – too curious to stay away…] |
Steve Pampling (1551) 8170 posts |
In the same network segment it isn’t a problem, however broadcasts do not route and the RPCEmu NAT setup is a NAT router. If you use a bridging config then it may be possible, what it takes in alteration of RPCEmu to do that is unknown |
Frank de Bruijn (160) 228 posts |
Bridging setup is host only. No changes necessary in RPCEmu. Just set it up normally (manual address). |