Newsgroup: it.comp.os.linux.sys
Titolo: Problemi di rete

Salve,
ho provato a creare una rete locale con 2 pc linux.
Per la condivisione dei files uso NFS, funziona.
Per la condivisione della connessione adsl ho pero' dei problemi: dal client
riesco a navigare solo su pochi siti (
www.google.it
, 
www.html.it
,
www.kernel.org....) mentre per la maggioranza dei siti konqueror visualizza
nella barra di stato: www.xxxxxxx.xxx sito contattato. In attesa di
risposta....... e dopo un po' appare la finestrella con scritto: Tempo
scaduto sul server.
Cosa può essere?
Sul server ho: 
eth1 per il modem ethernet adsl, funziona.
eth0 collegata al client, NFS funziona.
Al server ho dato ip 192.168.0.1, al client 192.168.0.3
Sul server ifconfig mi dice:
[root@localhost root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:40:F4:70:26:85
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:440 errors:0 dropped:0 overruns:0 frame:0
          TX packets:135 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:46412 (45.3 Kb)  TX bytes:59619 (58.2 Kb)
          Interrupt:10 Base address:0x1000
eth1      Link encap:Ethernet  HWaddr 00:50:FC:F0:BD:BC
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25759 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31587 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:2609508 (2.4 Mb)  TX bytes:29451298 (28.0 Mb)
          Interrupt:11 Base address:0x3000
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:200 errors:0 dropped:0 overruns:0 frame:0
          TX packets:200 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15200 (14.8 Kb)  TX bytes:15200 (14.8 Kb)
ppp0      Link encap:Point-to-Point Protocol
          inet addr:82.49.153.54  P-t-P:192.168.100.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:25622 errors:25757 dropped:0 overruns:0 frame:0
          TX packets:31447 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:2037179 (1.9 Mb)  TX bytes:28750994 (27.4 Mb)
Per il forwarding ho dato sul server i comandi:
iptables -t nat -A POSTROUTING -s 
192.168.0.0/24
 -j MASQUERADE
iptables -t nat -A POSTROUTING -d ! 
192.168.0.0/24
 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A FORWARD -s 
192.168.0.0/24
 -j ACCEPT
iptables -A FORWARD -d 
192.168.0.0/24
 -j ACCEPT
iptables -A FORWARD -j DROP
route -n sul server dice:
[root@localhost root]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.100.1   0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.100.1   0.0.0.0         UG    0      0        0 ppp0
Sul client ho dato il comando:
route add default gw 192.168.0.1
ifconfig sul client risponde:
[root@localhost root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:6E:D6:2F:58
          inet addr:192.168.0.3  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:6eff:fed6:2f58/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:138 errors:0 dropped:0 overruns:0 frame:0
          TX packets:619 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:59799 (58.3 Kb)  TX bytes:66184 (64.6 Kb)
          Interrupt:9 Memory:e5800000-0
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:231 errors:0 dropped:0 overruns:0 frame:0
          TX packets:231 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:16233 (15.8 Kb)  TX bytes:16233 (15.8 Kb)
route -n sul client risponde:
[root@localhost root]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
I files resolv.conf sono entrambi i pc:
 
nameserver 212.216.112.112
nameserver 212.216.172.62
nameserver 127.0.0.1

Dovevo impostare l'MTU, ora va.