Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
I have a problem with my nfs server i have started the nfs daemon and allowed access to the service at the fire wall.When i try to mount my nfs share from another linux box (both are fedora 8) i get the error mount failed no route to host.
What could be the problem?
first, try to stop the firewall & let see if that is firewall rules issue.
To open nfs service to other with firewall, u have to open several port such as:
- nfs (2049)
- portmap (111)
- rpc.mountd (custom)
- rpc.quotad (custom)
- rpc.statd (custom)
- rpc.lockd (custom)
First check if nfsd, portmap and rpc.* daemons are running. If they are, make a telnet connection to port 2049 from your NFS client machine to your NFS Server, nothin will happen in your client, but in your server you can check your tcp port 2049 with:
netstat -n -tcp
The state must be ESTABLISHED
If you can not establish a connection to the port, maybe you have a iptables blocking, check it:
iptables -L
If there is not rules that block anything, maybe could be a vmware issue... but in this case I can't help you... I don't have vmware
I now have a new error the server now replies permission denied when i try to mount the share.The seetings for the share have the permissins (rw)
i dont know what is wrong now!
ok... see my post above about port must to be opened.
on your iptables rules you only open portmap and nfs (111 and 2049).
on fedora, there is a nfs config in /etc/sysconfig/nfs, modify the port i have been mention from earlier post.
you can modify the port from 4002-4005, so you can easily put in on rule in iptables.
after you modify it, restart the nfs service, you can confirm your setting with netstat -ntl for tcp and netstat -nul for udp, you should see it.
then add 2 lines to firewall for tcp and udp :
-A INPUT -p tcp -m state --state NEW -m tcp --dport 4002:4005 -j ACCEPT
-A INPUT -p udp -m state --state NEW -m udp --dport 4002:4005 -j ACCEPT
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.