That's what I thought too, but I'm also running nginx on the same machine. I 
set up nginx to listen to eth0:0,  and all traffic to the remote backend sees 
the IP address of eth0:0. However, when I try to do the same with Varnish, the 
backends sees the IP address of eth0.

Henry Umansky
Web Development Services
Princeton University
[email protected]<mailto:[email protected]>
609-258-1674

On Oct 3, 2011, at 10:02 PM, David Birdsong wrote:

Varnish doesn't send traffic out of interfaces, the OS does. Your
kernel routing table will determine which device is part of a
particular route. For most traffic, the 'default' route is the route
that matches outbound traffic.  You can change your default route to
exit a particular interface--though I'm not sure if an ethernet alias
will work. Try it out.

On Mon, Oct 3, 2011 at 6:26 PM, Henry M. Umansky 
<[email protected]<mailto:[email protected]>> wrote:
Hello,
I'm running Varnish 2.1.5 on Red Hat Enterprise Linux Server release 6.1. 
Currently I have two interfaces: eth0 and an alias eth0:0. I need Varnish to 
bind to eth0:0, which it does perfectly, however, outgoing traffic is going 
through eth0. Is there anyway to tell Varnish to send outgoing traffic through 
the same IP address I tell varnish to "listen" to? I guess I can route the 
traffic accordingly via iptables, but I'd prefer to do it at the application 
layer if possible.

Any help would be much appreciated, varnish is an amazing product!!!

Henry Umansky
Web Development Services
Princeton University
[email protected]<mailto:[email protected]>
609-258-1674


_______________________________________________
varnish-misc mailing list
[email protected]<mailto:[email protected]>
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc


_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to