Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Linux Gateway Server sa 3 Mrezne Kartice

[es] :: Linux mreže :: Linux Gateway Server sa 3 Mrezne Kartice

[ Pregleda: 2163 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

tuxbilder

Član broj: 31887
Poruke: 74
*.rb.b.2-3.14.bih.net.ba.



Profil

icon Linux Gateway Server sa 3 Mrezne Kartice22.03.2005. u 20:04 - pre 232 meseci
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
 
Odgovor na temu

tuxbilder

Član broj: 31887
Poruke: 74
*.rb.b.2-3.14.bih.net.ba.



Profil

icon Re: Linux Gateway Server sa 3 Mrezne Kartice22.03.2005. u 20:10 - pre 232 meseci
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
 
Odgovor na temu

[es] :: Linux mreže :: Linux Gateway Server sa 3 Mrezne Kartice

[ Pregleda: 2163 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.