Hi guys.
I have a problem with nfs and pf. When PF is on , then nfs not work. I put
the hole for portmap and nfs in pf... but i think that the problem is in
mountd, because mountd every time when I restart the server change his own
port:
#####################################
#rpcinfo -p mars
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100005 1 udp 883 mountd
100005 3 udp 883 mountd
100005 1 tcp 767 mountd
100005 3 tcp 767 mountd
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
####################################
Sometimes 773 .. 762 ... 995,
Ok . the question is how to set a static ports for mountd? (and then I will
open the firewall (pf) for this port ..for the client machine.)
BR and thanks in advance!
Also, don't forget to set no-df on your NFS rule. NFS sometimes
fragments packets and sets the DF flag. PF will drop these packets if
they are set in such a way unless you specify no-df in your rule.