>
> So doing a snoop of my connection my request goes to x.x.x.104 (my home
> directories) in this case and the response comes back to me from x.x.x.101
> (primary) or x.x.x.102 (secondary).
>
> Things work fine with ipf set to
> pass in all
> pass out all
Here's an example the rules I use for local host filtering on an NFS
server:
pass in quick on fxp0 proto tcp from <client addr> to any port = 111 \
flags S keep state
pass in quick on fxp0 proto tcp from <client addr> to any port = 2049 \
flags S keep state
pass in quick on fxp0 proto tcp from <client addr> to any \
port 1016 >< 1020 flags S keep state
pass in quick on fxp0 proto udp from <client addr> to any port = 111 \
keep state
pass in quick on fxp0 proto udp from <client addr> to any port = 2049 \
keep state
pass in quick on fxp0 proto udp from <client addr> to any
port 773 >< 777 keep state
Along with:
pass out on fxp0 proto tcp from any to any flags S keep state keep frags
pass out on fxp0 proto udp from any to any keep state keep frags
I believe that all the clients of this server are doing NFS over TCP,
so I could probably do away with the last two UDP rules. Ports 111
(rpcbind) and 2049 (nfs) are fixed; the others - for 'mountd', 'statd',
and 'lockd' - are variable. For this NetBSD system, it's been my
experience that the variable ports tend to stay constant through reboots.
Change the exported file systems list, and/or stop and start 'mountd',
and they will change. Other systems may not exhibit similar behavior.
David S.
>
>