IP Tables and two internet connections
I just save setup NAT with two internet connections (fedora core 3):
eth2 is one internet connection, default gateway (let's say 22.214.171.124)
eth0 is another internet connection 126.96.36.199 with bunch of static routes (national ip pool) for this example let's say there is only one static route to 188.8.131.52/16
eth1 is lan 192.168.0.254 (192.168.0.0/24)
nat working fine, static route balance connections right as I which but problem is incomming connection (smtp for now or can be any other)
I have two mx records:
-A PREROUTING -p tcp -m tcp --dport 25 -j DNAT --to-destination 192.168.0.28
when ip 184.108.40.206 connect to 220.127.116.11 all working fine but:
when ip 18.104.22.168 connect to 22.214.171.124 connection drop because (I supose) answer going to eth0 (126.96.36.199).
What I should do, why iptables didn't keep connection persists ?
Tnx in advance
P.S. i'm newbie in linux world
P.P.S. sorry about that english :)