# Routing outgoing traffic

**URL:** <https://www.ruby-forum.com/t/routing-outgoing-traffic/149949>\
**Category:** NGINX\
**Created:** [October 1, 2008, 2:27pm UTC](https://www.ruby-forum.com/t/routing-outgoing-traffic/149949 "2008-10-01T14:27:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![harish\_sri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a88e57/32.png) [@harish\_sri](https://www.ruby-forum.com/u/harish_sri)\
**Post date:** [October 1, 2008, 2:27pm UTC](https://www.ruby-forum.com/t/routing-outgoing-traffic/149949/1 "2008-10-01T14:27:29Z")

</div>

Hi Everyone,  
I’m newbie to this world of webservers/loadbalancing… so forgive me if  
I  
talk anything that makes no sense  
So my question is there any option where I can say route all the  
outgoing  
traffic directly to the client(destination)?  
Basically the current setup is this way:

1. All incoming traffic comes through one manchine where nginx acts as  
the  
load balancer and also  
a web server for the static content serving

2. For Dynamic content the requests are passed on to the backend apache  
webservers… where the requests  
are processed and sent back to nginx which is routed to the  
client(browser).

Now in step 2) I want all the outgoing traffic to be routed to the  
client(browser) directly rather than through nginx…

I remember it was possible in LVS  
Link:[http://www.ultramonkey.org/3/topologies/hc-ha-lb-overview.html](http://www.ultramonkey.org/3/topologies/hc-ha-lb-overview.html)

Additionally I have one more question, how is a failover for nginx  
managed?  
heartbeat?  
or is there an inbuilt module to do that?

Once I’m done I will post my configuration for you guys to comment  
upon…

Regards  
Harish

---

<div class="post-metadata">

**Author:** ![harish\_sri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/a88e57/32.png) [@harish\_sri](https://www.ruby-forum.com/u/harish_sri)\
**Post date:** [October 1, 2008, 3:14pm UTC](https://www.ruby-forum.com/t/routing-outgoing-traffic/149949/2 "2008-10-01T15:14:01Z")

</div>

Hi,

perhaps you should checkout keepalived as loadbalancing/failover  
solution.

> **[Keepalived for Linux](https://www.keepalived.org/)**
>
> Keepalived provides robust High-Availability and Load Balancing features for Linux critical infrastructures

regards

Juergen
