[ubuntu-users] NFS
Tom H
tomh0665 at gmail.com
Fri Nov 12 23:25:34 UTC 2010
On Thu, Nov 11, 2010 at 8:41 PM, Ted Hilts <ehilts at mcsnet.ca> wrote:
> Tom H wrote:
>>
>> You can check your iptables rules with "sudo iptables -Lnv".
>>
>> You might as well check that nfs is running properly with "netstat
>> -ntulp" and "rpcinfo -p" on the nfs server and, from another box,
>> (three nmaps are overkill but it's quick and should be short):
>> rpcinfo -p nfs_server
>> nmap -n -sT nfs_server
>> nmap -n -sS nfs_server
>> nmap -n -sU nfs_server
>
> All the stuff you wanted is below but not in the order you stated but I
> executed everything in the order you wrote it. I had to use Tomboy notes and
> VNC using the VNC client on my Ubuntu 8.04 to get the info off of cic2ext.
> It looks like NFS is working on cic2ext.
>
> Interesting ports on 192.168.1.15:
> Not shown: 987 closed ports
> PORT STATE SERVICE
> 21/tcp open ftp
> 22/tcp open ssh
> 23/tcp open telnet
> 53/tcp open domain
> 80/tcp open http
> 111/tcp open rpcbind
> 389/tcp open ldap
> 443/tcp open https
> 631/tcp open ipp
> 901/tcp open samba-swat
> 2049/tcp open nfs
> 3128/tcp open squid-http
> 5900/tcp open vnc
>
> ted at cic2ext:~$ sudo iptables -Lnv
> [sudo] password for ted:
> iptables: No chain/target/match by that name.
>
> ted at cic2ext:~$ netstat -ntulp
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address Foreign Address State
> PID/Program name
> tcp 0 0 0.0.0.0:901 0.0.0.0:* LISTEN
> - tcp 0 0 0.0.0.0:389 0.0.0.0:*
> LISTEN - tcp 0 0 0.0.0.0:38440
> 0.0.0.0:* LISTEN - tcp 0 0
> 0.0.0.0:111 0.0.0.0:* LISTEN -
> tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
> - tcp 0 0 0.0.0.0:60628 0.0.0.0:*
> LISTEN - tcp 0 0 192.168.1.15:53
> 0.0.0.0:* LISTEN - tcp 0 0
> 127.0.0.1:53 0.0.0.0:* LISTEN -
> tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
> - tcp 0 0 0.0.0.0:631 0.0.0.0:*
> LISTEN - tcp 0 0 0.0.0.0:23
> 0.0.0.0:* LISTEN - tcp 0
> 0 127.0.0.1:5432 0.0.0.0:* LISTEN -
> tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN
> - tcp 0 0 127.0.0.1:953 0.0.0.0:*
> LISTEN - tcp 0 0 0.0.0.0:443
> 0.0.0.0:* LISTEN - tcp 0 0
> 0.0.0.0:34142 0.0.0.0:* LISTEN -
> tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN
> - tcp6 0 0 :::389 :::*
> LISTEN - tcp6 0 0 :::5900
> :::* LISTEN 1241/vino-server
> tcp6 0 0 :::21 :::* LISTEN
> - tcp6 0 0 :::53 :::*
> LISTEN - tcp6 0 0 :::22
> :::* LISTEN - tcp6 0 0
> :::631 :::* LISTEN -
> tcp6 0 0 ::1:5432 :::* LISTEN
> - tcp6 0 0 ::1:953 :::*
> LISTEN - udp 0 0 0.0.0.0:5353
> 0.0.0.0:* - udp 0 0
> 0.0.0.0:111 0.0.0.0:* -
> udp 0 0 0.0.0.0:631 0.0.0.0:*
> - udp 0 0 0.0.0.0:52346 0.0.0.0:*
> - udp 0 0 0.0.0.0:60285
> 0.0.0.0:* - udp 0 0
> 0.0.0.0:60031 0.0.0.0:* -
> udp 0 0 0.0.0.0:2049 0.0.0.0:*
> - udp 0 0 192.168.1.15:137 0.0.0.0:*
> - udp 0 0 0.0.0.0:137
> 0.0.0.0:* - udp 0 0
> 192.168.1.15:138 0.0.0.0:* -
> udp 0 0 0.0.0.0:138 0.0.0.0:*
> - udp 0 0 0.0.0.0:42002 0.0.0.0:*
> - udp 0 0 192.168.1.15:53
> 0.0.0.0:* - udp 0 0
> 127.0.0.1:53 0.0.0.0:* -
> udp 0 0 0.0.0.0:3130 0.0.0.0:*
> - udp 0 0 0.0.0.0:42044 0.0.0.0:*
> - udp 0 0 0.0.0.0:994
> 0.0.0.0:* - udp6 0 0
> :::53 :::* -
>
> ted at cic2ext:~$ rpcinfo -p 192.168.1.15
> program vers proto port
> 100000 2 tcp 111 portmapper
> 100000 2 udp 111 portmapper
> 100024 1 udp 60031 status
> 100024 1 tcp 60628 status
> 100021 1 udp 42044 nlockmgr
> 100021 3 udp 42044 nlockmgr
> 100021 4 udp 42044 nlockmgr
> 100021 1 tcp 38440 nlockmgr
> 100021 3 tcp 38440 nlockmgr
> 100021 4 tcp 38440 nlockmgr
> 100003 2 udp 2049 nfs
> 100003 3 udp 2049 nfs
> 100003 4 udp 2049 nfs
> 100003 2 tcp 2049 nfs
> 100003 3 tcp 2049 nfs
> 100003 4 tcp 2049 nfs
> 100005 1 udp 60285 mountd
> 100005 1 tcp 34142 mountd
> 100005 2 udp 60285 mountd
> 100005 2 tcp 34142 mountd
> 100005 3 udp 60285 mountd
> 100005 3 tcp 34142 mountd
Please post "cat /etc/exports" and "cat /etc/fstab". Something must be
wrong in one of them because everything else checks out!
More information about the ubuntu-users
mailing list