How to run varnish cache without IPv6?

manifestor

Operating system: debian 9, varnish version: 5.0.0

I have turned off IPv6 support on my machine and varnish crashes upon start with the following error:

Error: Cannot open socket: :6081: Address family not supported by protocol

I know this question has been asked here here, but it does not solve my problem. Also, I can't find any IP-related configuration option in the config files.

So, how can I run varnish cache without IPv6 support?

telcoM

By default, the main listen address/port is specified in the DAEMON_OPTS variable in /etc/default/varnish file as -a :6081, which means both IPv4 and IPv6, port 6081.

Try explicitly specifying an IPv4 listen address with the port: for example, if your system's IP address is 192.168.100.1, edit the address/port option to -a 192.168.100.1:6081.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to ask Varnish to answer from cache, without go to backend

How to clear complete cache in Varnish?

How to bypass varnish cache on client?

How to cache based on size in Varnish?

Disable cache on browser without disabling it on varnish

How to cache an object on Varnish, but tell the client not the cache it

How to open Public IPv6 IP on browser without DNS

how to compare ipv6 address in c without using memcmp

How to remove files from Varnish-cache

How to make Cache Tagging work with FOSHttpCacheBundle and Varnish?

How to ignore specific query parameter with varnish cache?

How to use Varnish HTTP-Cache in Laradock?

How to map apache authgroupfile with varnish-cache

Varnish how to cache for mobile and desktop site

How to "extend" IPv6 stateless autoconfiguration domain to my other network without bridging?

how do I add a second ipv6 address on Linux without making it default

How to run Gem5 simulator in fs mode without cache?

How To Force Varnish Cache to Keep All Cached Pages Indefinitely?

How to instruct varnish to generate the cache key based on response header data

How to disable Varnish Cache from within a PHP script?

How to (varnish) cache webp images based on accept header

Varnish: how to cache a URL with parameters - need to strip multiple parameters but not all

No cache: Varnish age 0

HAproxy + Varnish Cache configuration

Varnish cache crawler request?

Ban or Purge the varnish cache

How to set Varnish to run on port 80. Malfunction of DAEMON_OPTS set in /etc/default/varnish

disable IPv6 autoconf (MAC-based) IPv6 address without disabling privacy addresses?

How to implement ipv6 in python?