I have not implemented this my self but I have read that Haproxy, a load
balancer, can do this as well. Haproxy will send the reply using the
interface where the requests came from.

Holden
On Jul 2, 2016 1:37 PM, "Michael Tinsay" <[email protected]> wrote:

> Thank you for the info fooler.
>
> I get what you're saying about policy-based routing, but isn't that
> applicable only to connections initiated by the server?  Can policy-based
> routing also do "All connections initiated externally and coming through
> the router ip address so-and-so goes through that router"?
>
>
> ------------------------------
> *From:* fooler mail <[email protected]>
> *To:* Michael Tinsay <[email protected]>; Philippine Linux Users' Group
> (PLUG) Technical Discussion List <[email protected]>
> *Sent:* Saturday, 2 July 2016, 11:33
> *Subject:* Re: [plug] Recognizing traffic from multiple gateways
>
> that is correct because traffic came from router A and B use the main
> routing table... your solution is to use policy based routing....
> create additional two routing table aside from the default or main
> routing table.. for incoming traffic for A or B.... mark or tag it ...
> upon out going.. your policy rule state that packet tag for A goes to
> gateway of  A and tag for B goes to gateway of B.. non tag packets
> goes to the main routing table's default gateway...
>
> fooler.
>
>
>
> On Thu, Jun 30, 2016 at 3:05 AM, Michael Tinsay <[email protected]>
> wrote:
> > Ooops...  My bad. I sent the email without putting a subject.  Please
> reply
> > to this one instead.
> >
> >
> > ________________________________
> > From: Michael Tinsay <[email protected]>
> > To: "Philippine Linux Users' Group (PLUG) Technical Discussion List"
> > <[email protected]>
> > Sent: Thursday, 30 June 2016, 15:03
> > Subject:
> >
> > Hi.
> >
> > Have a question for the tcp/ip experts here.
> >
> > I recently had to split my various DSL lines between 2 routers. So
> Router A
> > have 3 lines connected to it while Router B has 2.  I now have a server
> who
> > will be receiving external traffic through these servers via port
> > forwarding.  As I understand it, without any additional configuration the
> > server will send outside-bound traffic through via the default route.  As
> > such, if Router A is the default route for the server, even if the
> traffic
> > came from Router B the responses will be sent via Router A.
> >
> > If this is correct, what do I need to set up to have the server recognize
> > which traffic is coming from which router and send its responses to the
> > proper router accordingly?
> >
> > TIA!
> >
> >
> > --- mike t.
>
> >
> >
> >
> > _________________________________________________
> > Philippine Linux Users' Group (PLUG) Mailing List
> > http://lists.linux.org.ph/mailman/listinfo/plug
> > Searchable Archives: http://archives.free.net.ph
> _________________________________________________
> Philippine Linux Users' Group (PLUG) Mailing List
> http://lists.linux.org.ph/mailman/listinfo/plug
> Searchable Archives: http://archives.free.net.ph
>
>
>
>
> _________________________________________________
> Philippine Linux Users' Group (PLUG) Mailing List
> http://lists.linux.org.ph/mailman/listinfo/plug
> Searchable Archives: http://archives.free.net.ph
>
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to