View Single Post
Old 31-01-2003, 21:15   #1
VICIUS
Senior Member
 
L'Avatar di VICIUS
 
Iscritto dal: Oct 2001
Messaggi: 11471
Problemi con la condivisione di connesione

da un po di giorni il forwarding dei pacchetti a smesso di funzionare impedendo alla rete di casa di navigare su internet usado la connesione di linux. non mi sembra di aver modificato niente di particolare almeno che io ricordi. cosa puo essere che ha smesso di funzionare???

configurazione di rete:

Internet <--> Router <--> Linux <--> Rete

ip router: 192.168.0.1
ip1 linux : 192.168.0.66 (eth0)
ip2 linux : 192.168.1.1 (eth1)
rete : 192.168.0.*

arp:
Address HWtype HWaddress Flags Mask Iface
192.168.0.1 ether 00:10:4B:E7:E9:2F C eth0
192.168.1.100 ether 00:00:B4:03:45:B2 C eth1

ifconfig:
eth0 Link encap:Ethernet HWaddr 00:05:5D0:FC:0A
inet addr:192.168.0.66 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:104 errors:0 dropped:0 overruns:0 frame:0
TX packets:114 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:64731 (63.2 Kb) TX bytes:18889 (18.4 Kb)
Interrupt:10 Base address:0xc000

eth1 Link encap:Ethernet HWaddr 00:48:54:55:3A:06
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:220455 errors:0 dropped:0 overruns:0 frame:0
TX packets:444364 errors:0 dropped:0 overruns:0 carrier:0
collisions:1192 txqueuelen:100
RX bytes:13229020 (12.6 Mb) TX bytes:661369687 (630.7 Mb)
Interrupt:11 Base address:0xe000

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:25 errors:0 dropped:0 overruns:0 frame:0
TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1525 (1.4 Kb) TX bytes:1525 (1.4 Kb)

route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
localnet * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.0.1 0.0.0.0 UG 1 0 0 eth0


per abilitare il forwarding ad ogni avvio avevo inserito questo in /etc/rc.d/rc.local :
modprobe iptable_nat
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

qualche suggerimento
VICIUS è offline   Rispondi citando il messaggio o parte di esso