[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: NFS comment monter le répertoire du serveur ?



Le Thu, 27 Nov 2008 18:47:14 +0100
"Anne sophie Lantz" <annesophielantz@gmail.com> a écrit:

Bon

> > Quand tu as annulé hosts.allow, hosts.deny, etc, tu as bien relancé portmap
> > après??
> >
> > Peux tu mettre
> > $ cat /etc/exports | grep -v "^#" | grep -v "^$"
> > $  cat /etc/hosts.allow | grep -v "^#" | grep -v "^$"
> > $  cat /etc/hosts.deny | grep -v "^#" | grep -v "^$"
> > # iptables -L
> > # iptables -t nat -L

Pour les tests, fais la chose suivante

> 
> anneso@serv1:~$  cat /etc/exports | grep -v "^#" | grep -v "^$"
> /home/test      192.168.10.2(ro,rw,no_subtree_check) 192.168.10.3
> (ro,rw,no_subtree_check)

rectifie pour le test en

/home/test      *(ro,rw,no_subtree_check) 192.168.10.3

et relances par
# /etc/init.d/nfs-kernel-server restart

> anneso@serv1:~$ cat /etc/hosts.allow | grep -v "^#" | grep -v "^$"
> anneso@serv1:~$ cat /etc/hosts.deny | grep -v "^#" | grep -v "^$"
> 
> serv1:~# iptables -L
> Chain INPUT (policy DROP)
> target     prot opt source               destination
> ACCEPT     all  --  anywhere             anywhere
> ACCEPT     icmp --  anywhere             anywhere
> ACCEPT     igmp --  anywhere             anywhere
> ACCEPT     all  --  anywhere             anywhere            state
> RELATED,ESTABLISHED
> ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ssh
> REJECT     all  --  anywhere             anywhere            reject-with
> icmp-port-unreachable
> ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:sunrpc
> ACCEPT     udp  --  anywhere             anywhere            udp dpt:sunrpc
> ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:nfs
> ACCEPT     udp  --  anywhere             anywhere            udp dpt:nfs
> ACCEPT     tcp  --  anywhere             anywhere            tcp
> dpts:32765:32768
> ACCEPT     udp  --  anywhere             anywhere            udp
> dpts:32765:32768

Fais en root
# iptables -F INPUT
# iptables -P INPUT ACCEPT

puis essayes. Si ça ne marche pas, là je commencerais à désespérer.

François Boisson


Reply to: