cannot use NFS (or even ssh) RHEL box as server, but external mnt & ssh out work ok
Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
cannot use NFS (or even ssh) RHEL box as server, but external mnt & ssh out work ok
Ok im trying to use my RHEL box as a NFS server and export a portion of the filesystem on the RH box to a CentOS box and cannot get the RH box configures right, i suspect it might be the firewall or somehting but i thought i disabled the RHEL firewall... here is what i have so far any thoughts?
Again I'm trying to get NFS working on my RHEL 5 box, apparently i can use the box as a client, but not as a server. If it helps i cant ssh into the box (server), but as a client ssh works fine. Ive configured
ON SERVER (RHEL):
/etc/hosts.allow:
all : all
all :all@all
setup my /etc/exports file
/opt/Xilinx av2(rw,sync,no_root_squash) 192.168.0.1/24(rw,sync,no_root_squash)
SELinux Mgmt : is disabled
[root@av2 ~]# chkconfig nfs on
[root@av2 ~]# chkconfig portmap on
[root@av2 ~]# service portmap start
[root@av2 ~]# service nfs start
[root@av2 ~]# system-config-nfs
[root@av2 ~]# chkconfig netfs on
[root@av2 ~]# /etc/init.d/portmap start
[root@av2 ~]# showmount -e
Export list for av2:
/opt/Xilinx 192.168.0.1/24,av2
disabled (iptables & the firewall) -- [or at least i think....its diasabled]
[root@av2 ~]# service iptables save
[root@av2 ~]# service iptables stop
[root@av2 ~]# chkconfig iptables off
[root@av2 ~]# service ip6tables save
[root@av2 ~]# service ip6tables stop
[root@av2 ~]# chkconfig ip6tables off
If you are allowing all then what is the use of putting the following entries in hosts.allow:
/etc/hosts.allow:
all : all
all :all@all
Remove these entries from the hosts.allow to avoid any confusion. Do you have any entries setup in /etc/hosts.deny? If yes, then remove them as well.
192.168.0.1/24(rw,sync,no_root_squash)
The above line is not required in your /etc/exports. Anyways which IP is this? Is this the IP of your RHEL server or CentOS server?
From the CentOS system did you try to telnet your RHEL server on port 22 and port 2049?
You also get connection refused if the service is down. I hope you have checked the service nfs status after starting up the service to check they are indeed running.
What is the output of the following command:
1. exportfs
Run the following commands and then give it a try:
1. service nfs stop
2. service portmap stop
3. service iptables stop
4. service iptables6 stop
5. service network restart (just to make sure your system's NIC is properly up and running, you can avoid this command though not really required)
6. service portmap start
7. service nfs start
8. iptables -F
9. exportfs
Once the above commands are executed give a try to connect to nfs share.
If you are allowing all then what is the use of putting the following entries in hosts.allow:
/etc/hosts.allow:
all : all
all :all@all
removed...
Quote:
Originally Posted by T3RM1NVT0R
192.168.0.1/24(rw,sync,no_root_squash)
The above line is not required in your /etc/exports. Anyways which IP is this? Is this the IP of your RHEL server or CentOS server?
192.168.0.1 is the client "pipe" (CentOS 5.6)
192.168.0.106 is the server "av2" (RHEL 5)
Quote:
Originally Posted by T3RM1NVT0R
From the CentOS system did you try to telnet your RHEL server on port 22 and port 2049?
You also get connection refused if the service is down. I hope you have checked the service nfs status after starting up the service to check they are indeed running.
Oh $h@!# ....
root@pipe /etc/sysconfig]# telnet av2
Trying XX.XX.XXX.XX...
telnet: connect to address XX.XX.XXX.XX: Connection refused
telnet: Unable to connect to remote host: Connection refused
AGG !!! shows wrong ip address for av2!
in /etc/hosts file on client, which has way too many entries - apparently host "av2" was listed twice due to typo
and it was grabbing wrong ip address !
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.