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]> 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] > 609-258-1674 > > > _______________________________________________ > varnish-misc mailing list > [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
