iptables for redirecting nfs-traffic

  • Thread starter Thread starter Shivaramakrishnan
  • Start date Start date
S

Shivaramakrishnan

I am setting up an environment with NFS.
I have a setting where a SVR1 has two interfaces. I receive NFS-requests on one interface(192.168.122.2). I need to redirect these nfs request via the other interface(172.16.0.2) to another device SVR2(172.16.0.3).SVR2 does some processing,once it is completed,the nfs packets needs to come back to SVR1 for writing it.

Here are the ip's of two interfaces:

SVR1 - 192.168.122.2,172.16.0.2

SVR2 - 192.168.122.3,172.16.0.3

I need to redirect only nfs traffic.rpcinfo gives me these ports:
111-portmapper
4000-status
2049-nfs
4001-nlockmgr
4002-mountd

How can I achieve this?Looking forward to your help.

Continue reading...
 
Back
Top