I had a perfectly working SuSEfirewall2 setup recently. I then decided to set up the firewall machine to export a directory for use by another linux machine via NFS. This same volume is served by Samba to the window machines as well on the same machine. I set up NFS but could not get it to work. I then rebooted the firewall machine (which was now acting as an NFS server) and noticed that it hanged on the 'final firewall shut down'. I did this several times but still same issue. I then disabled the firewall (Start_FW2 = "no") via yast, restarted the machine. It went down and came up smoothly..nice :-) Tried mounting the exported nfs volume on the other linux machine. Got it. nice. Re-enabled the firewall (Start_FW2 = "yes") via yast. Restarted the firewall machine and it came up ok. Then restarted it again where it duly hung on the 'final firewall shutdown' line. I have now disabled NFS on the server and now it does not hang anymore. It seems that there is something going on between the firewall setup and the NFS service but i just can't track it down. The NFS server is being started by /etc/init.d/nfsserver not by xinitd (which i use instead of inetd). I thought samba was interfering but when the firewall is disabled all works well. Any help here would be nice :-) Clifford Okoro Hope is a dangerous thing, it spreads disillusion. (Puncture, http://www.comxcomics.com)
Clifford Okoro wrote:
I had a perfectly working SuSEfirewall2 setup recently. I then decided to set up the firewall machine to export a directory for use by another linux machine via NFS. This same volume is served by Samba to the window machines as well on the same machine. I set up NFS but could not get it to work. I then rebooted the firewall machine (which was now acting as an NFS server) and noticed that it hanged on the 'final firewall shut down'. I did this several times but still same issue.
My guess is it is not hung, but something in NFS is being blocked by the firewall for NFS service to work, so NFS keeps trying, and the firewall keep blocking.
I then disabled the firewall (Start_FW2 = "no") via yast, restarted the machine. It went down and came up smoothly..nice :-) Tried mounting the exported nfs volume on the other linux machine. Got it. nice. Re-enabled the firewall (Start_FW2 = "yes") via yast. Restarted the firewall machine and it came up ok. Then restarted it again where it duly hung on the 'final firewall shutdown' line. I have now disabled NFS on the server and now it does not hang anymore. It seems that there is something going on between the firewall setup and the NFS service but i just can't track it down. The NFS server is being started by /etc/init.d/nfsserver not by xinitd (which i use instead of inetd). I thought samba was interfering but when the firewall is disabled all works well.
IIRC, Samba needs UDP 137, 138 and TCP 139 open. I don't use NFS, but I would guess it also needs some ports, i.e. 113 to authenticate or something. Check your firewall logs to see if it is rejecting some port and open that one up. My guess is when you get NFS working with the firewall loaded, it will work fine again. Sorry I can't tell you which ports NFS is using and needs opened. HTH. -- Joe & Sesil Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Web Address: www.mydestiny.net/~joe_morris Registered Linux user 231871 "We can stand affliction better than we can prosperity, for in prosperity we forget God." --Dwight Lyman Moody
participants (2)
-
Clifford Okoro
-
Joe & Sesil Morris (NTM)