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

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





Le 27 novembre 2008 18:07, François Boisson <user.anti-spam@maison.homelinux.net> a écrit :
Le Thu, 27 Nov 2008 10:59:47 +0100
"Anne sophie Lantz" <annesophielantz@gmail.com> a écrit:

> j'ai arrêté iptables et j'ai essayé de monter sur pc1.
> j'ai essayé aussi en annulant hosts,allow et hosts,deny
> mais ne parvient toujours pas à monter

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
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)
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

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination        
TCPMSS     tcp  --  anywhere             anywhere            tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination   

serv1:~# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination        

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination        
MASQUERADE  all  --  anywhere             anywhere           

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination   

voilà,
Anne sophie

Reply to: