[ tuxbilder @ 22.03.2005. 20:04 ] @
ADSL_Router(10.0.0.138)--SWITCH--Server[eth2(10.0.0.80)-eth1(10.40.0.10)-eth0(192.168.1.2)]

Zelim da lan 192.168.1.0 ide preko servera na internet. To samo sam lanom 10.40.0.0

Znaci, kako da natjeram da dvije odvojene mreze idu preko servera na internet?

Unaprijed Hvala
[ tuxbilder @ 22.03.2005. 20:10 ] @
moj route -n:

Code:
route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth2
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
10.40.0.0       0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         10.0.0.138      0.0.0.0         UG    0      0        0 eth2


NAT sam sa MASQUERADE prebacio na SNAT:

Code:
iptables -t nat -A POSTROUTING -o eth2 -j SNAT --to 10.0.0.80