How to run varnish cache without IPv6?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












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?







share|improve this question



















  • how exactly did you turn off IPv6?
    – thrig
    Apr 27 at 13:46














up vote
0
down vote

favorite












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?







share|improve this question



















  • how exactly did you turn off IPv6?
    – thrig
    Apr 27 at 13:46












up vote
0
down vote

favorite









up vote
0
down vote

favorite











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?







share|improve this question











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?









share|improve this question










share|improve this question




share|improve this question









asked Apr 27 at 12:03









chevallier

8351116




8351116











  • how exactly did you turn off IPv6?
    – thrig
    Apr 27 at 13:46
















  • how exactly did you turn off IPv6?
    – thrig
    Apr 27 at 13:46















how exactly did you turn off IPv6?
– thrig
Apr 27 at 13:46




how exactly did you turn off IPv6?
– thrig
Apr 27 at 13:46










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










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.






share|improve this answer





















  • Perfect, thanks.
    – chevallier
    Apr 27 at 19:09










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f440407%2fhow-to-run-varnish-cache-without-ipv6%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










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.






share|improve this answer





















  • Perfect, thanks.
    – chevallier
    Apr 27 at 19:09














up vote
1
down vote



accepted










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.






share|improve this answer





















  • Perfect, thanks.
    – chevallier
    Apr 27 at 19:09












up vote
1
down vote



accepted







up vote
1
down vote



accepted






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.






share|improve this answer













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.







share|improve this answer













share|improve this answer



share|improve this answer











answered Apr 27 at 12:29









telcoM

10.2k11032




10.2k11032











  • Perfect, thanks.
    – chevallier
    Apr 27 at 19:09
















  • Perfect, thanks.
    – chevallier
    Apr 27 at 19:09















Perfect, thanks.
– chevallier
Apr 27 at 19:09




Perfect, thanks.
– chevallier
Apr 27 at 19:09












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f440407%2fhow-to-run-varnish-cache-without-ipv6%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?