All pastes #190888 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-10-04 12:27 UTC
rendered paste body
i want to change my network settings
i got 3 nic's on my server.. 2 of them are in bridge mode (Br0). with a static ip 192.168.1.1
eth0 and eth1 are br0 "seems like only 1 nic." the network looks like
LAN:192.168.1.* <--> br0 <--> nat <--> eth2 <--> (Internet)
the gateway ip for the lan's are the bridge ip (Br0) 192.168.1.1
and i want to set it up more like
LAN:192.168.2.2 <--> eth0(ip:192.168.2.1)-| <-- nat --> eth2 <--> (Internet)
LAN:192.168.1.2 <--> eth1(ip:192.168.1.1)-|
would LAN:192.168.1.2 need to be set to use ip:192.168.1.1 as the gateway and LAN:**2.2 to use ip**2.1 as gw?
because when i type route at cli on server i get
Gateway         Genmask         Flags Metric Ref    Use Iface
213.161.182.128 *               255.255.255.128 U     0      0        0 eth2
192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
192.168.2.0     *               255.255.255.0   U     0      0        0 eth0
default         skjervoy1-129.d 0.0.0.0         UG    0      0        0 eth2
but i cant get it to work. i changed the gatway on both lan's.
and my iptables are flushed and set to policy to accetp on the server 
i want to change my setting because i want to monitor the traffic more,,