Monday, 18 June 2012

Varnish IPv4 and IPv6 mini-tutorial

I recently added IPv6 to the ONMS.Net server and wanted to configure Varnish to cache pages on both specific IPv4 and IPv6 addresses. Searching the topic didn't return any clear cut answers, so here goes for all of you that need a specific answer:

pkill varnishd
sleep 2
varnishd -a IPv4:80,[IPv4]:80 -b [IPv4 or IPv6]:8080 -s malloc,128M

Basically:

The Varnish listen on option or -a can be given multiple addresses, so we add IPv4 and IPv6 addresses using: -a IPv4:Port,[IPv6]:Port

The backend server option or -b can be either an IPv4 or IPv6, in my case I take IPv4 and IPv6 requests and send them to the web server listening on IPv6 since were moving to IPv6 in any case.

The above command should run however you may want to tweak the other Varnish parameters for your specific setup...

Hope this helps someone!

2 comments:

  1. The backend server option or -b can be either an IPv4 or IPv6, in my case I take IPv4 and IPv6 requests and send them to the web server listening on IPv6 since were moving to IPv6 in any case.binary option signals

    ReplyDelete
  2. What is more, they can also set a time range for the stock to reach a certain high or low; this time range could be as short as a single minute or as long as a full day or even an entire week.this page

    ReplyDelete