using nfs server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I want some help from you since I do have no experience about iptables.
The situation is that we have a cluster, which has ip called IP_MAIN. We
also have a inside node whose ip is 192.168.0.2. I setup nfs server on
the 192.168.0.2 and the /etc/exports is /aaa IP_CLIENT(rw)
I set up IP masquerade on IP_MAIN so that the inside node can access
outside network. (I tested it and it is OK) and then I add some iptables
rules in IP_MAIN:
iptables -A PREROUTING -t nat -p tcp -d IP_MAIN --dport 2049 -j DNAT
--to 192.168.0.2:2049
iptables -A PREROUTING -t nat -p udp -d IP_MAIN --dport 2049 -j DNAT
--to 192.168.0.2:2049
iptables -t nat -I POSTROUTING -s 192.168.0.2 -p tcp --sport 2049 -j
SNAT --to IP_MAIN
iptables -t nat -I POSTROUTING -s 192.168.0.2 -p udp --sport 2049 -j
SNAT --to IP_MAIN
Now it doesn't work and I really don't know what's wrong. Need I also
create /aaa on in IP_MAIN which is the directory I want to share in the
192.168.0.2 and need I also open the nfs service on IP_MAIN?

Thank you for your help!

-- 
Best wishes,
Peng

*******************************
Peng Zhang
Department of Biostatistics
Harvard School of Public Health
655 Huntington Avenue
Boston, Massachusetts 02115
*******************************

I believe I can fly
I believe I can touch the sky



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux