From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diego Torres Date: Wed, 23 Apr 2003 23:17:14 +0000 Subject: [LARTC] port-mapping with 2 isps Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org hello... i've got an annoying problems that makes me think that i want to d= o something that is impossible... :) explanation: i've two dsl lines and a linux box as a "load balancer". some traffic goes out by eth0 and other goes out by eth1. (i mark the packe= ts with iptables and then have 2 route tables) i'm currently forwarding some incoming connections (to the port 80 on eth0)= to another host inside the network. this works without problems as long as= eth0 is the default gateway. trying to forward connections on eth1 port 80 with eth0 as the default gate= way results in the linux box loosing the answer packet from the host inside= the network. diagram: inet | - isp1 -- eth0\ | - LINUX ROUTER - eth2 - swith - "server host" | - isp2 -- eth1/ # ip ro sh 81.33.13.128 dev eth1 scope link src 81.33.13.174 80.25.88.192 dev eth0 scope link src 80.25.88.228 80.25.88.192/26 dev eth0 proto kernel scope link src 80.25.88.228 81.33.13.128/26 dev eth1 proto kernel scope link src 81.33.13.174 172.16.0.0/16 dev eth2 proto kernel scope link src 172.16.0.2 default via 80.25.88.193 dev eth0 because eth0 is the default gw, i can forward incoming connections on eth0 = to the "server host". can anyone help me so i can forward conections happening on both interfaces= (eth0 & eth1, doesn't matter who is the default gw) ? thanks in advance.... --=20 -- gnupg keyfingerprint -- 48AF 5BF9 8F54 2966 64CC 2327 7CD0 DD91 B09D 57= 99 -- Use of a keyboard or mouse may be linked to serious injuries or disorder= s. =20 Diego Torres - dtorres@coral.dnsalias.org - Madrid / Espa=F1a _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/