mount.nfs: Connection timed out

General support questions
Post Reply
mauricioseis
Posts: 17
Joined: 2020/09/08 02:59:59

mount.nfs: Connection timed out

Post by mauricioseis » 2020/09/08 03:20:57

Hello,
Using Virtualbox in a Windows 10 desktop 32GB RAM
I'm trying to connect to centos 6.10 hosts; I have this error "mount.nfs: Connection timed out"
I'm using Centos 6.10 because the application (SIEM) is built in this version. Not sure what could be the issue. I'm wondering if is the NFS version?
How to determine the version in both hosts?
The Network Adapter is set to "Host Only Adapter" in order to ping in both ways, unable to connect to the internet in the browser
unable to ping google.com over the CLI: Error : "ping: unknown host google.com"

any help would be appreciate

thanks in advance!

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: mount.nfs: Connection timed out

Post by TrevorH » 2020/09/08 08:33:01

I'm using Centos 6.10 because the application (SIEM) is built in this version
That's not going to help you at the end of November when CentOS 6 reaches its end of life date.

You need to move off CentOS 6 sooner rather than later.

Can you ping between client and server? Did you open the firewall on the server to allow the connections? Being NFS, you would need to edit /etc/sysconfig/nfs and set various ports to fixed values (the default is to use random ports which are then impossible to firewall). Once you've set fixed ports then you can open the ports in iptables.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

mauricioseis
Posts: 17
Joined: 2020/09/08 02:59:59

Re: mount.nfs: Connection timed out

Post by mauricioseis » 2020/09/08 12:21:17

Thanks for your advise!

I'm able to ping between both ways (client and server)

Do you think is better to use the current version of Centos?
If so, I might need to change the configuration in /etc/sysconfig/nfs
Any adivse how to accomplish this: "Being NFS, you would need to edit /etc/sysconfig/nfs and set various ports to fixed values (the default is to use random ports which are then impossible to firewall). Once you've set fixed ports then you can open the ports in iptables.[/i][/u]


thanks so much

PS. Using Centos 8 uses NFS 4.1 right?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: mount.nfs: Connection timed out

Post by TrevorH » 2020/09/08 14:13:33

You definitely don't want to do a bunch of work on CentOS 6 and then discover it was all useless because you have to change distro versions.

NFS configuration has probably changed between CentOS 6 and 7 (and 8). On 6 you used to edit /etc/sysconfig/nfs and change things there to set port numbers otherwise it uses random ones that won't match any firewall rules you have set up. On more recent versions, there is (maybe "also") /etc/nfs.conf and /etc/nfsmount.conf and those may need changing too. If you don't change the files then the ports in use for NFS will change every time there is a reboot or a service restart which will make it impossible to securely firewall the ports.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

mauricioseis
Posts: 17
Joined: 2020/09/08 02:59:59

Re: mount.nfs: Connection timed out

Post by mauricioseis » 2020/09/08 15:25:27

Hi,
I installed Centos 8.2 and was able to mount the folder to my 6.10 appliance. Thanks for all the help

Post Reply