From: Christian Parpart Date: Mon, 09 Jul 2007 18:07:49 +0000 Subject: [LARTC] custom routing (two gateways) Message-Id: <200707092007.51792.trapni@gentoo.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1391701424==" List-Id: To: lartc@vger.kernel.org --===============1391701424== Content-Type: multipart/signed; boundary="nextPart1830956.zLocBSm9LM"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1830956.zLocBSm9LM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi all, i'm having a somewhat stupid problem I can't get rid of. we've a server that accepts incoming world connections=20 from a load balancer (10.10.10.4) to port 80, and we still want to serve incoming ssh/http from the firewall (10.10.10.1)= =20 routed to this host (10.10.10.90) and their reply packets of cause shall be= =20 send out through the firewall. unfortunately, both hosts (the load balancer (LB) and the firewall(FW)) are= on=20 the same subnet (10.10.10.0/24) and though on the same interface (eth0), bu= t=20 I need to find a solution. So, packets send from the LB shall get their answer through the LB as nexth= op=20 of couse, as well as incoming packets from the FW shall have response packe= ts=20 send out to the FW as nexthop, too. But how to realise this? server: 10.10.10.90 (this is the problem host) firewall(FW): 10.10.10.1 (we receive (mostly) ssh/https conns from it) loadbalancer(LB): 10.10.10.4 (we receive http conns from it) =46W and LB are accepting/forwarding and routing connections from the world= to=20 our server. server ~ # ip route list 192.168.0.0/24 dev eth1 proto kernel scope link src 192.168.0.90 10.10.10.0/24 dev eth0 proto kernel scope link src 10.10.10.90 127.0.0.0/8 dev lo scope link default via 10.10.10.1 dev eth0 You see, default traffic is routed through the firewall as the default=20 gateway... but now, we want to have outgoing traffic caused from incoming=20 packets from the load balancer to be routed back through the loadbalancer=20 itself. I tried here several approaches, like adding custom routing tables, and=20 modifying the tables (including main) either I got no answers routed to the= =20 =46W or no traffic got routed to the LB. Can you please give me a hint on how to find the right way? Thanks in advance, Christian Parpart. --nextPart1830956.zLocBSm9LM Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (GNU/Linux) iD8DBQBGknl3Ppa2GmDVhK0RAuMrAJ9W9mTUg1oSBL4wtrZtmQlwhGtGQQCghwz+ qkXBwzXLjrUJQdKQVGBhO5g= =65uX -----END PGP SIGNATURE----- --nextPart1830956.zLocBSm9LM-- --===============1391701424== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============1391701424==--