Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 10892  / 2 Years ago, thu, september 8, 2022, 4:52:58

I have a server (10.0.0.1) and a client (10.0.0.2) systems, they both run Ubuntu 12.04, they are connected via ethernet.



They can ping each other. They can ssh into one another.



If I on the server I do:



    sudo showmount -e 10.0.0.1


all the folders which I want to share are there.



From the server I ssh into the client and do:



    sudo showmount -e 10.0.0.1


It times out, or takes so long I ctrl+z out.



I have been trying random suggestions from the internet all morning, any help?



UPDATES!!!!!!



sudo netstat -nlp | grep :111

tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 788/rpcbind
tcp6 0 0 :::111 :::* LISTEN 788/rpcbind
udp 0 0 0.0.0.0:111 0.0.0.0:* 788/rpcbind
udp6 0 0 :::111 :::* 788/rpcbind


sudo ufw status numbered
Status: active

To Action From
-- ------ ----
[ 1] 22 ALLOW IN Anywhere
[ 2] 22 (v6) ALLOW IN Anywhere (v6)


UPDATE 2!!!!!!! - showmount now works, but unable to mount.



client@client:~$ sudo showmount -e 10.0.0.1

Export list for 10.0.0.1:
/export/1TBHDD 10.0.0.0/24
/export/users 10.0.0.0/24
/export 10.0.0.0/24

cliearn@client:~$ sudo mount 10.0.0.1:/export/1TBHDD /export/1TBHDD
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified

client@client:~$ rpcinfo -p
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 44469 status
100024 1 tcp 54570 status

More From » networking

 Answers
3

Based on your ufw status output, your firewall is currently configured to only allow incoming connections for SSH. For NFS, you will need to open the nfs (2049) and RPC portmapper (111) ports. If you only want to connect to the server over the LAN, then I'd recommend restricting the host range e.g.



sudo ufw allow from 10.0.0.0/16 to any port 2049

sudo ufw allow from 10.0.0.0/16 to any port 111


otherwise, you will need to allow from any ...


[#24103] Thursday, September 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
errettas

Total Points: 160
Total Questions: 118
Total Answers: 91

Location: Laos
Member since Fri, Sep 11, 2020
4 Years ago
;