[hack] lan a 3

thomas thomas@viaoberdan.it
Dom 28 Gen 2007 01:25:30 CET


Alle 22:57, sabato 27 gennaio 2007, A&P abbiamo ricevuto:
> infatti e' proprio li' il problema: se noti, non c'e' nessun indirizzo
> configurato su eth1 (seconda scheda di rete) e di conseguenza non hai
> routing su di essa...

Hai ragione ho fatto ifconfig e route dopo aver disattivato eth1. Ma 
riattivandola il risultato non cambia:

eth0      Link encap:Ethernet  HWaddr 00:30:84:0A:A9:09
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::230:84ff:fe0a:a909/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:193 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:11580 (11.3 KiB)  TX bytes:9617 (9.3 KiB)
          Interrupt:169 Base address:0xec00

eth1      Link encap:Ethernet  HWaddr 00:05:5D:44:F5:C4
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::205:5dff:fe44:f5c4/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:58 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:9506 (9.2 KiB)
          Interrupt:177 Base address:0xe800

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:188 errors:0 dropped:0 overruns:0 frame:0
          TX packets:188 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:12312 (12.0 KiB)  TX bytes:12312 (12.0 KiB)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:82.57.142.5  P-t-P:192.168.100.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:9178  Metric:1
          RX packets:8276 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7952 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:4495321 (4.2 MiB)  TX bytes:1111148 (1.0 MiB)

 e route

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.100.1   *               255.255.255.255 UH    0      0        0 ppp0
192.168.2.0     *               255.255.255.0   U     0      0        0 eth1
localnet        *               255.255.255.0   U     0      0        0 eth0
default         192.168.100.1   0.0.0.0         UG    0      0        0 ppp0

Ma la condivisione della adsl non avviene. Il server non ha problemi, il mac 
non condivide (e neanche il pc2 se è attiva eth1).

Sai che penso? Che il problema sia qui:

modem_run -k -f /usr/share/doc/speedtouch/mgmt.o && pppd call adsl
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -m state --state NEW -i ! ppp0 -j ACCEPT
iptables -P INPUT DROP
#iptables -P INPUT ACCEPT

Ma dove?

Ciao

Thomas




Maggiori informazioni sulla lista golem-hack