Bonjour les gens d'ici et de là bas. 😃
Alors j'ai un chti pb ! Donc sur mon pc "serveur" avec apache et tout et tout (youpi j'y suis arrivé a tout configurer tout seul et avoir mon blog et opengoo installé et tout ca visible depuis l'extérieur!) Bref, un serveur web qui fonctionne :rolleyes::lol:
Mon hic, c'est que de chez moi je voudrais que mon pc "serveur" fasse aussi serveur nfs, pour que mon "desktop" et autre netbook puisse se connecter donc au lecteur du serveur.
Mais voila, quand j'essaie de monter le partage nfs, j'obtiens ca :
mount.nfs: mount to NFS server 'rpcbind' failed: RPC Error: Program not registered
mount.nfs: internal error
Je sais plus quoi faire. j'ai lu 46docs, et j'tourne en rond grave ! lol
mon exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
#
# Example for NFSv4:
#
/media/WD-Passport 192.168.0.0/255.255.255.0(sync,insecure,rw)
/media/mediabox 192.168.0.0/255.255.255.0(sync,insecure,rw)
j'autorise donc tout le réseau local là si j'ai bien compris ! (pourquoi le insecure ? j'en sais rien...j'ai sans doute fait un copié/collé d'une doc....mais laquelle lol !)
mon hosts.allow
# /etc/hosts.allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access(5) and hosts_options(5).
#
# Example: ALL: LOCAL @some_netgroup
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper, as well as for
# rpc.mountd (the NFS mount daemon). See portmap(8) and rpc.mountd(8)
# for further information.
#
#Autoriser ces clienst à se connecter avec services portmap, nfsd, moundt
portmap:ALL
nfsd:192.168.0.0/255.255.255.0
mountd:192.168.0.0/255.255.255.0
là, j'ai lu dans une doc qu'il fallait mettre portmap a all sinon ca faisait l'erreur rpc not found....mais chez moi ca règle pas le pb !
mon hosts.deny
# /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
# See the manual pages hosts_access(5) and hosts_options(5).
#
# Example: ALL: some.host.name, .some.domain
# ALL EXCEPT in.fingerd: other.host.name, .other.domain
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper, as well as for
# rpc.mountd (the NFS mount daemon). See portmap(8) and rpc.mountd(8)
# for further information.
#
# The PARANOID wildcard matches any host whose name does not match its
# address.
# You may wish to enable this to ensure any programs that don't
# validate looked up hostnames still leave understandable logs. In past
# versions of Debian this has been the default.
# ALL: PARANOID
# Tout interdire sur portmap, nfsd et mountd
# les autoriser par hosts.allow
portmap:ALL
nfsd:ALL
mountd:ALL
ben là, j'ai fait comme ils disent dans les docs.
Sur mon firewall (firestarter)
NFS 111 2049 4001 192.168.0.0/255.255.255.0
le port 4001 il est parce que mountd doit prendre un port aléatoire et j'ai choisi 4001 que j'ai modifié d'ailleurs dans le fichier indiqué dans les docs.
et rpcinfo -p me donne ca
program no_version protocole no_port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 48378 status
100024 1 tcp 36995 status
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100021 1 udp 33062 nlockmgr
100021 3 udp 33062 nlockmgr
100021 4 udp 33062 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 tcp 58002 nlockmgr
100021 3 tcp 58002 nlockmgr
100021 4 tcp 58002 nlockmgr