(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.
- 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
- Next go to your firewall settings, and allow TCP and UDP of the 3 ports above, plus these: 111, 2049
