> > On Friday 17 September 2004 16:22, Doru wrote: > > Salut, > > > > Pe un SuSE 9.0 vreau sa fac routare intre 2 retele (192.168.0.0 si > > 192.168.1.0) cu scopul de a pune pe picioare un server WINS. > > ifconfig > > eth0 Link encap:Ethernet HWaddr 00:50:FC:A7:A2:49 > > inet addr:192.168.0.50 Bcast:192.168.0.255 Mask:255.255.255= > > =2E0 > > > inet6 addr: fe80::250:fcff:fea7:a249/64 Scope:Link > > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > > RX packets:13983 errors:0 dropped:0 overruns:0 frame:0 > > TX packets:1854 errors:0 dropped:0 overruns:0 carrier:0 > > collisions:0 txqueuelen:100 > > RX bytes:2287137 (2.1 Mb) TX bytes:134622 (131.4 Kb) > > Interrupt:10 Base address:0x4000 > > > > eth1 Link encap:Ethernet HWaddr 00:02:44:0C:A0:DD > > inet addr:192.168.1.50 Bcast:192.168.1.255 Mask:255.255.255= > > =2E0 > > > inet6 addr: fe80::202:44ff:fe0c:a0dd/64 Scope:Link > > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > > RX packets:4918 errors:0 dropped:0 overruns:0 frame:0 > > TX packets:2305 errors:0 dropped:0 overruns:0 carrier:0 > > collisions:0 txqueuelen:100 > > RX bytes:375988 (367.1 Kb) TX bytes:245516 (239.7 Kb) > > Interrupt:9 Base address:0xa800 > > 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:77 errors:0 dropped:0 overruns:0 frame:0 > > TX packets:77 errors:0 dropped:0 overruns:0 carrier:0 > > collisions:0 txqueuelen:0 > > > > route -n > > Kernel IP routing table > > Destination Gateway Genmask Flags Metric Ref Use > > Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 = > > =20 > > > 0 eth1 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 = > > =20 > > > 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 = > > =20 > > > 0 lo 0.0.0.0 192.168.0.50 0.0.0.0 UG 0 0 = > > =20 > > > 0 eth0 > > > > iptables -L > > Chain INPUT (policy ACCEPT) > > target prot opt source destination > > > > Chain FORWARD (policy ACCEPT) > > target prot opt source destination > > > > Chain OUTPUT (policy ACCEPT) > > target prot opt source destination > > > > ip rule > > 0: from all lookup local > > 32766: from all lookup main > > 32767: from all lookup default > > > > cat /proc/sys/net/ipv4/ip_forward > > 1 > > > > > > Dupa cum arata outputurile date, pare sa fie in regula, insa nu am > > ping de la o retea la alta. Chiar si dupa mult Google nu m-am prins > > unde e buba. Ma puteti ajuta? > > Multumesc! > >
Pare OK config. lasa sa curga un ping de pe o statie din ambele retele (sper ca ai default GW pe statii) tcpdump -i eth0 (si eth1) ; vezi ce zice iptables -t mangle -nL ??? fa o regula: iptables -I FORWARD -j ACCEPT (eventual poti sa bagi si src/dst) si vezi daca face match pe vreun pack cu : iptables -nL -v --- Detalii despre listele noastre de mail: http://www.lug.ro/
