Hello
Can someone help me configure the firewall on fedora core 4 to allow NFS?
I have one Master/head-node with two network cards. One connecting it to the internet and one to a private subnet of Slave-nodes. I want to mount one Master dir on all the Slaves and one Slave dir (from only one of the slaves) on the Master.
NFS works great if I take the firewall down on the Master (/etc/init.d/iptables stop) but with it running I get the following errors...
Trying to mount Slave dir on Master
Code:
[root@master ~]# /etc/init.d/iptables start
Applying iptables firewall rules: [ OK ]
[root@master ~]# mount -Fv slave2:/usr/blastdb /usr/blastdb/
mount: no type was given - I'll assume nfs because of the colon
Then after a 2/3 min delay
Code:
mount: slave2:/usr/blastdb: can't read superblock
[root@master ~]# tail /var/log/messages
Jun 12 10:22:23 master kernel: ip_tables: (C) 2000-2002 Netfilter core team
Jun 12 10:23:36 master kernel: nfs: server slave2 not responding, timed out
It say's the slave was not responding but that has to be because of the Master's firewall because starting it is the only change I made from a working NFS. (The slaves are running a firewall, Redhat9, but it's not a problem)
Trying to mount Master dir on a Slave
Code:
[root@slave2 ~]# mount -Fv master:/home /users
mount: no type was given - I'll assume nfs because of the colon
mount: RPC: Remote system error - Connection refused
This responce is imediate with no messages in var/log/messages.
I know NFS uses random ports and therefore I need portmap running, which it is, but the FC4 firewall must need something adjusted to work with it. Any ideas?
The only route to the slaves is through the master, thus I don't need a firewall on the network card to the slaves. Can't I just have the firewall enables on one card?
Thanks
Code:
[root@master ~]# more /etc/hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
ALL:192.168.0.1*
portmap:192.168.0.10
portmap:192.168.0.11
portmap:192.168.0.12
portmap:192.168.0.13
portmap:192.168.0.14
portmap:192.168.0.15
portmap:192.168.0.16
portmap:192.168.0.17
lockd:192.168.0.1*
mountd:192.168.0.1*
rquotad:192.168.0.1*
statd:192.168.0.1*
[root@galaxy ~]#