I am trying to get ipf to work with a NFS Cluster and can't seem to get my
rules right.  I can get it to work with ipf down, and it seems to work after
I bring them back up for awhile.  My problem is I send a request to map the
drive to one ip address and it comes back on another ip address.  I have a
list of 4 IP addresses that I am to use, but the response comes back from
one of 2 ip addresses.  I tried taking the keep state out of the rules, but
that didn't seem to fix the problem.  

I have no issues connecting to a single NFS server.

Any ideas on what I could use to get this to work? 

These are the rules I typically use for my NFS servers:

pass in quick proto tcp from nfsserverip to any port = 111 keep state

pass in quick proto udp from nfsserverip to any port = 111 keep state

pass out quick proto tcp from any to nfsserverip port = 111 keep state

pass out quick proto udp from any to nfsserverip port = 111 keep state

pass in quick proto udp from nfsserverip to any port = 4045 keep state

pass in quick proto tcp from nfsserverip to any port = 4045 keep state

pass out quick proto udp from any to nfsserverip port = 4045 keep state

pass out quick proto tcp from any to nfsserverip port = 4045 keep state

pass out quick proto udp from any to nfsserverip port = 32805 keep state

pass out quick proto tcp from any to nfsserverip port = 32783 keep state

pass out quick proto udp from any to nfsserverip port = 2049 keep state
pass in quick proto udp from nfsserverip port = 2049 to any keep state

pass out quick proto tcp from any to nfsserverip port = 2049 keep state
pass in quick proto tcp from nfsserverip port = 2049 to any keep state


I have taken the keep state out and added identical rules for the ipaddress
of the responding server.

Thanks,
Shawn

Reply via email to