IP input and output

Dridi Boukelmoune dridi.boukelmoune at zenika.com
Wed Jan 7 22:14:04 CET 2015


Hi,

There is no simple way to do what you want, but it is possible using
the `server.ip` variable. You can then pick backends according to this
variable but you cannot automatically map a backend to a listen
address. Have a look at the manual, vcl(7).

You might also want to be careful with your hashes if you go down that road.

Please find attached a working test case to illustrate how you can
pick your backend, you can run it with varnishtest(1).

Dridi

On Tue, Jan 6, 2015 at 7:24 PM,  <hubert at htop.pl> wrote:
> Welcome. My varnish listen on many IPs. For example 127.0.0.1 127.0.0.2 and
> 127.0.0.3 on port 80. How to configure to relay/forward request to backend
> in this format:
> INPUT IP TO VARNISH | IP OF BACKEND
> 127.0.0.1                         127.0.0.1
> 127.0.0.2                         127.0.0.2
> 127.0.0.3                         127.0.0.3
> Of course, the backend listens on other ports.
>
> --
> Thank you.
> Hubert Nodzak-Pluta
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: server_ip.vtc
Type: application/octet-stream
Size: 597 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20150107/de2a8f1b/attachment.obj>


More information about the varnish-misc mailing list