LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NFS - How can I direct traffic to a specific nic? (https://www.linuxquestions.org/questions/linux-networking-3/nfs-how-can-i-direct-traffic-to-a-specific-nic-492107/)

gislil 10-13-2006 10:21 AM

NFS - How can I direct traffic to a specific nic?
 
Hi all

I have two machines, one running RedHat Enterprise 4 (A) and the other running RedHat 9 (B). A is on 3 networks but B is only on one and I had set up NFS between them, everything working fine. I noticed however that in my firewall I had opened NFS access from A's external interface to B but I want to separate external and internal traffic completely so I want to use A's internal interface.

However, when I changed my firewall settings, nfs stopped working. Is there any way to configure nfs so it uses a particular interface?

Thanks,
Gísli

Blindsight 10-13-2006 11:10 PM

You're best off configuring your firewall correctly, lest you may have visitors viewing your nfs share. man iptables. read this http://www.tldp.org/HOWTO/text/NFS-HOWTO concentrate on the hosts.allow hosts.deny portion.

Invest the time to learn iptables well. It's worth it.

gislil 10-25-2006 04:59 AM

My firewall is Astaro so I'm not dealing with iptables directly. I tried setting up a static route in Astaro, so that everything going to B's network would go through A's internal interface. But it still doesn't seem to work. Can this be a configuration issue with NFS? My common sense tells me it isn't but I'm not sure what to try next.

Thanks,
Gísli


All times are GMT -5. The time now is 08:43 AM.