Trebuie cu iptables... mai exact forward... in ambele directii... daca
nu ma insel...
O cunostinta a incercat sa ruteze niste ip-uri reale si pana la urma
asa a reusit...



On Mon, 20 Sep 2004 15:24:55 +0300, oly <[EMAIL PROTECTED]> wrote:
> poate gresesc, dar trebuiesc 2 rute:
> 
> pe eth0 catre 192.160.1.0/255.255.255.0,        gw  =09192.168.1.50    =20
> =20
> pe eth1 catre 192.160.0.0/255.255.255.0,        gw=09192.168.0.50   =20
> 
> apoi pe cele din spatele lui, in functie de retea:
> in 192.168.0.0: catre =09192.168.1.0/255.255.255.0 =09gw 192.168.0.50=20
> =09=09=09sau   0.0.0.0/0.0.0.0=09=09=09gw 192.168.0.50
> 
> in 192.168.1.0: catre=09192.168.0.0/255.255.255.0 =09gw 192.168.1.50
>  =09=09=09sau   0.0.0.0/0.0.0.0=09=09=09gw 192.168.1.50
> 
> 
> 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!
> >
> > ---
> > Detalii despre listele noastre de mail: http://www.lug.ro/
> 
> 
> 
> 
> ---
> Detalii despre listele noastre de mail: http://www.lug.ro/
> 
>

--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui