Newsgroup: it.comp.os.linux.sys
Titolo: Problemi con NAT

 Mi ero dimenticato di scriverlo nel post ma avevo aggiunto o ppp0 :(
prima di usare explorer e bind... ping is your friend: cosa da un ping verso un
_indirizzo ip_ reponsivo (non un nome di dominio) dal prompt dei comandi di win?
Request timed out?
Comunque, e' meglio che posti l'output completo di:
# ifconfig -a
# route -n
# iptables-save
Impostato crosspost e f/up su it.comp.os.linux.sys
bye G.L.
--
La logica non attiene alla verosimiglianza delle ipotesi,
ma alla coerenza delle tesi con le ipotesi.

 
ifconfig -a:
eth0      Link encap:Ethernet  HWaddr 00:10:A7:0C:F1:B9  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:340378 errors:0 dropped:0 overruns:0 frame:0
          TX packets:574257 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:30003580 (28.6 MiB)  TX bytes:752103590 (717.2 MiB)
          Interrupt:11 Base address:0xd000 
eth1      Link encap:Ethernet  HWaddr 00:10:A7:0C:F2:B5  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1615832 errors:98 dropped:0 overruns:0 frame:0
          TX packets:1493151 errors:0 dropped:0 overruns:0 carrier:0
          collisions:4708 txqueuelen:100 
          RX bytes:1676862416 (1.5 GiB)  TX bytes:281746026 (268.6 MiB)
          Interrupt:10 Base address:0xf000 
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:128178 errors:0 dropped:0 overruns:0 frame:0
          TX packets:128178 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:24603992 (23.4 MiB)  TX bytes:24603992 (23.4 MiB)
ppp0      Link encap:Point-to-Point Protocol  
          inet addr:80.116.203.173  P-t-P:192.168.100.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:1611537 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1488878 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:1641141839 (1.5 GiB)  TX bytes:248734086 (237.2 MiB)
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.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.100.1   0.0.0.0         UG    0      0        0 ppp0
iptables-save:
# Generated by iptables-save v1.2.6a on Fri Jul  5 17:23:10 2002
*nat
:PREROUTING ACCEPT [16699:1426861]
:POSTROUTING ACCEPT [138904:8560810]
:OUTPUT ACCEPT [139335:8598478]
-A POSTROUTING -s 
192.168.1.0/255.255.255.0
 -o ppp0 -j MASQUERADE 
COMMIT
# Completed on Fri Jul  5 17:23:10 2002
# Generated by iptables-save v1.2.6a on Fri Jul  5 17:23:10 2002
*filter
:INPUT ACCEPT [2091773:1684938333]
:FORWARD ACCEPT [17453:7169067]
:OUTPUT ACCEPT [2230823:1095882955]
COMMIT
# Completed on Fri Jul  5 17:23:10 2002
PS: Grazie mille per la pazienza!!!

           Interrupt:10 Base address:0xf000
Mmhh... non ho esperienza in tema di adsl e modem ethernet: se metti "-o eth1" in
luogo di "-o ppp0" nel masquerading?
