<div dir="ltr">SElinux or similar?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 17, 2013 at 11:49 AM, Werner Randelshofer <span dir="ltr"><<a href="mailto:werner.randelshofer@fibermail.ch" target="_blank">werner.randelshofer@fibermail.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Paul,<br>
<br>
I have stopped the iptables service, so there is no firewall running.<br>
<br>
When I start the varnish service, say with port 9000, then the service will not launch, and thus the port is not bound.<br>
<br>
I have tried now starting the varnish service with port 80, and setting the port to 9000 with varnishadm.<br>
I get an error 300 "Could not open sockets" as shown below. Port 80 works fine though.<br>
<br>
<br>
$ varnishadm<br>
<br>
param.set listen_address :9000<br>
200<br>
<br>
start<br>
300<br>
Could not open sockets<br>
<br>
param.set listen_address :80<br>
200<br>
<br>
start<br>
200<br>
<br>
<br>
My backends work fine. I can access them with Konqueror with any port number that I want.<br>
Telnet also works fine.<br>
<br>
I am stuck.<br>
<br>
Thanks,<br>
Werner<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On 16.04.2013, at 15:33, Paul A. Procacci <<a href="mailto:pprocacci@datapipe.com">pprocacci@datapipe.com</a>> wrote:<br>
<br>
>> When I use a different port number in VARNISH_LISTEN_PORT, then varnishd does not start.<br>
>> I made sure that the port number is not taken using the command netstat -nltp<br>
><br>
> Do you have a firewall that is preventing tcp syn's from<br>
> making it to the ports that you specify in your config?<br>
> (Either a hardware or software firewall)<br>
><br>
> If you don't, when you change the VARNISH_LISTEN_PORT and<br>
> start varnish, does the service show as bound via the<br>
> netstat command that you ran?<br>
><br>
> If it is bound, can you telnet to the port and issue<br>
> http requests?<br>
><br>
> If it isn't bound, they'll be logs in your system log<br>
> detailing why it couldn't be bound. What do those logs say?<br>
><br>
><br>
>> Also when I use a different port number as backend, then Varnish tells me that the service is unavailable, and tells me that probing fails. However the backend is fully functional, when I connect to its port number.<br>
><br>
> Are you sure your attempting to connect to the right backend?<br>
> Specifically, <a href="http://127.0.0.1:8080" target="_blank">127.0.0.1:8080</a> is not <ip>:8080 where <ip> is<br>
> the primary ip address of the machine.<br>
><br>
> Is there a software/hardware firewall preventing the tcp syn's<br>
> from making it to their destination?<br>
><br>
> Can you telent to the port from the varnish machine and induce<br>
> an http conversation?<br>
><br>
> ~Paul<br>
><br>
> ________________________________<br>
><br>
> This message may contain confidential or privileged information. If you are not the intended recipient, please advise us immediately and delete this message. See <a href="http://www.datapipe.com/legal/email_disclaimer/" target="_blank">http://www.datapipe.com/legal/email_disclaimer/</a> for further information on confidentiality and the risks of non-secure electronic communication. If you cannot access these links, please notify us by reply message and we will send the contents to you.<br>
><br>
<br>
<br>
<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div style="font-size:12.727272033691406px;margin:5px 15px 0px 0px;padding-bottom:5px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">
<table border="0" cellpadding="0" cellspacing="0" style="text-align:start;font-size:12px;line-height:1.5em;font-family:'Helvetica Neue',Arial,sans-serif;color:rgb(102,102,102);width:550px;border-top-width:1px;border-top-style:solid;border-top-color:rgb(238,238,238);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);margin-top:20px;padding-top:5px;padding-bottom:5px">
<tbody><tr><td width="100" style="font-family:arial,sans-serif;margin:0px"><a href="http://www.varnish-software.com/" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.varnish-software.com/static/media/logo-email.png" style="float:left;margin-left:10px"></a></td>
<td style="font-family:arial,sans-serif;margin:0px"><b style="font-size:14px;color:rgb(34,34,34)">Per Buer</b><br>CEO | Varnish Software AS<br>Phone: +47 958 39 117 | Skype: per.buer<br><span style="font-weight:bold">We Make Websites Fly!<br>
<br></span></td></tr></tbody></table><div></div></div><div style="font-size:12.727272033691406px;margin:15px 0px;clear:both;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"></div>
</div>