![]() |
How to set NFS share shown on another subnet? (NFS by Snakeoil OS NAS kernel) - Printable Version +- Snakeoil Forums (https://forums.snakeoil-os.net) +-- Forum: Snakeoil Topics (https://forums.snakeoil-os.net/Forum-Snakeoil-Topics) +--- Forum: Support & Troubleshooting (https://forums.snakeoil-os.net/Forum-Support-Troubleshooting) +--- Thread: How to set NFS share shown on another subnet? (NFS by Snakeoil OS NAS kernel) (/Thread-How-to-set-NFS-share-shown-on-another-subnet-NFS-by-Snakeoil-OS-NAS-kernel) |
How to set NFS share shown on another subnet? (NFS by Snakeoil OS NAS kernel) - cenz - 04-Apr-2022 Hi kith, Before, I set all devices into same LAN network, all IP like 192.168.1.xxx, all works beauty. But now I get a new router which only has 2 LAN ports (#1 LAN Port=#1 Subnet, #2 LAN Port=#2 Subnet ) So now the situation is below: 192.168.1.5 (Snakeoil OS NAS kernel device) 192.168.2.2 (Windows 7 Ultimate PC, I want this device can see share folder from NFS) I tried edit /etc/exports file from Snakeoil OS, like: /media/music 192.168.1.2(rw,sync,no_subtree_check) <--- It works if the same subnet /media/music 192.168.2.2(rw,sync,no_subtree_check) <---Not works at this moment Thank very much!! Tony RE: How to set NFS share shown on another subnet? (NFS by Snakeoil OS NAS kernel) - agent_kith - 05-Apr-2022 (04-Apr-2022, 11:59 PM)cenz Wrote: Hi kith, Hi Tony, you'll need to setup your firewall/router to pass NFS traffic. You can do it two ways: Allow all Allow all traffic to pass through between the network. While this will work it defeats the purposes of having two different subnet Allow NFS Allow only NFS traffic to pass through. Now this will take a bit of effort because NFS ports are randomised on each connection. So you have to fix them.
![]() RE: How to set NFS share shown on another subnet? (NFS by Snakeoil OS NAS kernel) - cenz - 05-Apr-2022 (05-Apr-2022, 07:51 AM)agent_kith Wrote:(04-Apr-2022, 11:59 PM)cenz Wrote: Hi kith, I see, the relation of these 2 devices above is for sync/updating music library (NAS), not for the playing music (playing music gear : 192.168.1.4=Snakeoil MPD; 192.168.1.5=Snakeoil w/ NAS kernel) For the TrueNAS, how to install this into Snakeoil OS? Thanks RE: How to set NFS share shown on another subnet? (NFS by Snakeoil OS NAS kernel) - agent_kith - 05-Apr-2022 (05-Apr-2022, 10:39 AM)cenz Wrote: I see, the relation of these 2 devices above is for sync/updating music library (NAS), not for the playing music (playing music gear : 192.168.1.4=Snakeoil MPD; 192.168.1.5=Snakeoil w/ NAS kernel)TrueNAS is a OS on itself. Missed you're using another Snakeoil machine for NFS.. I'll try and find out the configuration file for you tonight. Do you know yet how to setup your router to pass through the traffic? RE: How to set NFS share shown on another subnet? (NFS by Snakeoil OS NAS kernel) - cenz - 05-Apr-2022 (05-Apr-2022, 01:32 PM)agent_kith Wrote:(05-Apr-2022, 10:39 AM)cenz Wrote: I see, the relation of these 2 devices above is for sync/updating music library (NAS), not for the playing music (playing music gear : 192.168.1.4=Snakeoil MPD; 192.168.1.5=Snakeoil w/ NAS kernel)TrueNAS is a OS on itself. Missed you're using another Snakeoil machine for NFS.. I'll try and find out the configuration file for you tonight. Do you know yet how to setup your router to pass through the traffic? Thankyou for big help!! I asked this question on router's brand official forum already, they roughly think it is windows's firewall field, btw, I see the router have many advanced routing, firewall, politics, NAT settings, but I don't understand them deeply ![]() ![]() I just tested using File manager apps on android phone (use eth2 ap wifi), In "Local Network" list , only shows W7 shared folder, NFS shared folder not shows. RE: How to set NFS share shown on another subnet? (NFS by Snakeoil OS NAS kernel) - cenz - 06-Apr-2022 (05-Apr-2022, 01:54 PM)cenz Wrote:(05-Apr-2022, 01:32 PM)agent_kith Wrote:(05-Apr-2022, 10:39 AM)cenz Wrote: I see, the relation of these 2 devices above is for sync/updating music library (NAS), not for the playing music (playing music gear : 192.168.1.4=Snakeoil MPD; 192.168.1.5=Snakeoil w/ NAS kernel)TrueNAS is a OS on itself. Missed you're using another Snakeoil machine for NFS.. I'll try and find out the configuration file for you tonight. Do you know yet how to setup your router to pass through the traffic? Update: I use "ping 192.168.1.5" cmd on windows device (192.168.2.2) that is works. then use "ping 192.168.2.2" cmd on Snakeoil NAS device (192.168.1.5) but no response.. RE: How to set NFS share shown on another subnet? (NFS by Snakeoil OS NAS kernel) - agent_kith - 06-Apr-2022 (06-Apr-2022, 01:35 AM)cenz Wrote: Update:There are a million reasons why that could be the case. It's pretty difficult to find out why/what. Easiest is to just stick with the two Snakeoil computers. They have no OS firewalls enabled so it's easier to rule things out. Doing a ping test may or may not imply NFS will work, because ping is using ICMP, while NFS is using TCP or UDP. These are different protocols. I havn't dug into the nfs and portmapper config files yet to find the settings to fixed the ports.. See if you can google for that and set that manually, I should have more time later this week. Certainly I will have lots of time after Easter. ![]() RE: How to set NFS share shown on another subnet? (NFS by Snakeoil OS NAS kernel) - cenz - 06-Apr-2022 (06-Apr-2022, 08:00 AM)agent_kith Wrote:(06-Apr-2022, 01:35 AM)cenz Wrote: Update:There are a million reasons why that could be the case. It's pretty difficult to find out why/what. I turn back 1 LAN 1 subnet to connect all devices with external switch first, that's work fine always, I just curious sound different between 1 subnet w/ switch and 2 subnet ![]() |