Hi all!
I have a FreeBSD 9.1 server up and running as an NFS server. Its name is "frigg". I don't care if it has to be switched to NFSv4. It has an address in our 10.3.14 subnetwork (10.3.14.2), but will have to export some directories to 10.3.16 subnetwork. 10.3.14 is a network of known and trusted machines, which names are known in our DHCP server, and don't change often. 10.3.16 is a network of some middly trusted machines, which names are unresolved and our firewall prevents networking between 10.3.14 and 10.3.16 (OpenBSD's pf; its firewall rules can be changed if necessary).
Here is what I'd like to have:
Right now, I have this exports file:
So, it does not do what I'd like it to do:
In the best case, I'd like not to have a single name inside the exports file (because in case that list gets bigger, it's going to become a real mess)
I also understood from what I read on IRC that NFS uses some random ports; it'll be great to have a way to force it to use only some known and fixed ports (for pf's sake).
I already went on IRC and got help from @xxzz and @nowak, who were both unable to help me work this out.
Also, if ever a such topic has been answered in the forums, I didn't see it with the search tool (in the Web & Network Service).
Best Regards,
Moviuro
"Our life is the immortals' death"
I have a FreeBSD 9.1 server up and running as an NFS server. Its name is "frigg". I don't care if it has to be switched to NFSv4. It has an address in our 10.3.14 subnetwork (10.3.14.2), but will have to export some directories to 10.3.16 subnetwork. 10.3.14 is a network of known and trusted machines, which names are known in our DHCP server, and don't change often. 10.3.16 is a network of some middly trusted machines, which names are unresolved and our firewall prevents networking between 10.3.14 and 10.3.16 (OpenBSD's pf; its firewall rules can be changed if necessary).
Here is what I'd like to have:
Code:
What? | Who with?| opt?|
----------------+----------+-----+
/srv/nfs/pacman | 10.3.14 | rw |
----------------+----------+-----+
/srv/nfs/pacman | 10.3.16 | ro |
----------------+----------+-----+
/srv/nfs/shared | 10.3.14 | rw |
----------------+----------+-----+
/srv/tftp/boot | 10.3.14 | ro |
and all subdirs | 10.3.16 | |
----------------+----------+-----+
Code:
/srv/nfs/pacman /srv/nfs/shared -mapall=0:0 freyr geror nanna baldr fjolnir thor
/srv/tftp/boot -alldirs -ro -network=10.3.14.0 -mask=255.255.255.0
/srv/tftp/boot -alldirs -ro -network=10.3.16.0 -mask=255.255.255.0
Code:
root@frigg:/root # showmount -e
Exports list on localhost:
/srv/tftp/boot 10.3.14.0 10.3.16.0
/srv/nfs/shared freyr.ginfo geror.ginfo nanna.ginfo baldr.ginfo fjolnir.ginfo thor.ginfo
/srv/nfs/pacman freyr.ginfo geror.ginfo nanna.ginfo baldr.ginfo fjolnir.ginfo thor.ginfo
I also understood from what I read on IRC that NFS uses some random ports; it'll be great to have a way to force it to use only some known and fixed ports (for pf's sake).
I already went on IRC and got help from @xxzz and @nowak, who were both unable to help me work this out.
Also, if ever a such topic has been answered in the forums, I didn't see it with the search tool (in the Web & Network Service).
Best Regards,
Moviuro
"Our life is the immortals' death"
Last edited by a moderator: