How to set NFS share shown on another subnet? (NFS by Snakeoil OS NAS kernel)
#1
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
Reply

#2
(04-Apr-2022, 11:59 PM)cenz Wrote: 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

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.
  1. Go to your NAS, and find the settings to change these. I'm using TrueNAS, your NAS software may vary (or even missing these options)
       
    Use a number that's greater than 10000
  2. Next go to your firewall settings, and allow TCP and UDP of the 3 ports above, plus these: 111, 2049
Try having the NAS on the same subnet and different and see which way you prefer. There are pros and cons of both, but at the end of the day use the option that sounds best Smile
Snakeoil Operating System - Music, your way!
Reply

#3
(05-Apr-2022, 07:51 AM)agent_kith Wrote:
(04-Apr-2022, 11:59 PM)cenz Wrote: 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

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.
  1. Go to your NAS, and find the settings to change these. I'm using TrueNAS, your NAS software may vary (or even missing these options)

    Use a number that's greater than 10000
  2. Next go to your firewall settings, and allow TCP and UDP of the 3 ports above, plus these: 111, 2049
Try having the NAS on the same subnet and different and see which way you prefer. There are pros and cons of both, but at the end of the day use the option that sounds best Smile

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
Reply

#4
(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)

For the TrueNAS, how to install this into Snakeoil OS?
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?
Snakeoil Operating System - Music, your way!
Reply

#5
(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)

For the TrueNAS, how to install this into Snakeoil OS?
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 Cry , the router is enterprise grade low-cost router Big Grin 

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.
Reply

#6
(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)

For the TrueNAS, how to install this into Snakeoil OS?
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 Cry , the router is enterprise grade low-cost router Big Grin 

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.

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..
Reply

#7
(06-Apr-2022, 01:35 AM)cenz Wrote: 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..
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. LOL Will be able to look more closely then.
Snakeoil Operating System - Music, your way!
Reply

#8
(06-Apr-2022, 08:00 AM)agent_kith Wrote:
(06-Apr-2022, 01:35 AM)cenz Wrote: 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..
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. LOL Will be able to look more closely then.

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  [Image: admire.gif] , anyway, not urgent for this case, thanks for your passion, Kith!
Reply



Bookmarks

Possibly Related Threads…
Thread Author Replies Views Last Post
  Snakeoil with Ubuntu Desktop ? Snoopy8 5 112 08-May-2025, 01:36 PM
Last Post: agent_kith
  [SOLVEDHow to delete MPD music file database in Snakeoil? hkphantomgtr 4 115 29-Apr-2025, 02:46 PM
Last Post: hkphantomgtr
  [SOLVED[split] MediaCenter33 not starting ing Snakeoil 1.4.3 (High End U3) kmwgr 4 184 06-Apr-2025, 08:16 PM
Last Post: kmwgr
  Snakeoil 1.4 and Squeezelite R2 - not rembering USB audio output petemac110 4 262 23-Feb-2025, 07:47 PM
Last Post: petemac110
  Snakeoil OS 1.4 problem with Squeezelite and Lyrion mloutfie 14 968 14-Feb-2025, 07:00 AM
Last Post: mloutfie



Users browsing this thread:
1 Guest(s)

[-]
Our Sponsors

[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Latest Threads
new install issues
Last Post: rrunner
Today 04:03 AM
» Replies: 28
» Views: 601
Snakeoil 1.4.0 (High End)
Last Post: uglymusic
Yesterday 06:55 PM
» Replies: 83
» Views: 6256
SQ difference - Raspberry Pi vs x86_64?
Last Post: petemac110
Yesterday 02:00 PM
» Replies: 21
» Views: 1243
Add to SO backup & restore
Last Post: agent_kith
15-May-2025 09:58 AM
» Replies: 1
» Views: 31
[split] Possible To Load Snakeoil OS in ...
Last Post: agent_kith
12-May-2025 04:18 PM
» Replies: 10
» Views: 225
Work In Progress: 1.4.4
Last Post: agent_kith
12-May-2025 04:07 PM
» Replies: 31
» Views: 901
Snakeoil 1.4.3 (High End U3)
Last Post: agent_kith
12-May-2025 04:04 PM
» Replies: 65
» Views: 2777
Music Library and SSD
Last Post: Huey
11-May-2025 05:01 AM
» Replies: 2
» Views: 78
upmpdcli unable to start
Last Post: Amph
09-May-2025 08:16 PM
» Replies: 7
» Views: 1648
Audirvana
Last Post: hkphantomgtr
09-May-2025 04:01 PM
» Replies: 0
» Views: 42

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.


Powered By MyBB, © 2002-2025. Theme © Melroy van den Berg.