Project

General

Profile

Actions

Bug #3004

closed

under RedHat / CentOS 8 lighttpd only binds to ipv6

Added by canoodle almost 5 years ago. Updated almost 5 years ago.

Status:
Invalid
Priority:
Normal
Category:
-
Target version:
ASK QUESTIONS IN Forums:

Description

Hello all,

lighttpd is a great because simplistic webserver that was planned to be used on RedHat / CentOS8, but it seems this bug prevents it:

https://bugzilla.redhat.com/show_bug.cgi?id=1069029

are there any plans on fixing it?

best regards

hostnamectl 
       CPE OS Name: cpe:/o:centos:centos:8
            Kernel: Linux 4.18.0-147.3.1.el8_1.x86_64
      Architecture: x86-64

systemctl start lighttpd.service

lighttpd -v
lighttpd/1.4.54 (ssl) - a light and fast webserver

# list all ports in use
netstat -tulnp

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:5355            0.0.0.0:*               LISTEN      1615/systemd-resolv 
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1196/sshd           
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      1210/postmaster     
tcp6       0      0 :::5355                 :::*                    LISTEN      1615/systemd-resolv 
tcp6       0      0 :::80                   :::*                    LISTEN      3738/lighttpd       
tcp6       0      0 :::8080                 :::*                    LISTEN      3437/java           
tcp6       0      0 :::22                   :::*                    LISTEN      1196/sshd           
tcp6       0      0 ::1:5432                :::*                    LISTEN      1210/postmaster     
tcp6       0      0 127.0.0.1:8005          :::*                    LISTEN      3437/java           
tcp6       0      0 :::8009                 :::*                    LISTEN      3437/java           
udp        0      0 127.0.0.53:53           0.0.0.0:*                           1615/systemd-resolv 
udp        0      0 95.216.206.211:68       0.0.0.0:*                           1185/NetworkManager 
udp        0      0 127.0.0.1:323           0.0.0.0:*                           1158/chronyd        
udp        0      0 0.0.0.0:5355            0.0.0.0:*                           1615/systemd-resolv 
udp6       0      0 ::1:323                 :::*                                1158/chronyd        
udp6       0      0 :::5355                 :::*                                1615/systemd-resolv 

Actions #1

Updated by gstrauss almost 5 years ago

  • Status changed from New to Invalid

lighttpd is a great because simplistic webserver that was planned to be used on RedHat / CentOS8, but it seems this bug prevents it:

So the default configuration shipped by RedHat/CentOS is not usable for you. Ok. Please modify the configuration, which you can do, so I am not sure how you are being "prevented" from using lighttpd.

Also, how is this a bug in lighttpd?

According to the RedHat issue, lighttpd warned back in 2014 that the lighttpd config needed to be configured properly, just in case the kernel defaults changed.

According to the RedHat issue, the kernel defaults changed after Fedora 20. lighttpd warned about something out of lighttpd's control, and was right.

As noted in the first comment, one recommended configuration is described at https://redmine.lighttpd.net/projects/lighttpd/wiki/IPv6-Config#Changes-in-1427

tl;dr: please update the RedHat issue to recommend that they configure lighttpd to explicitly listen on both IPv4 and IPv6 addresses in the default config. This issue tracker is for lighttpd. The issue for RedHat must go into RedHat's issue tracker to fix an issue in RedHat's default configuration, which is maintained by RedHat. Got it? ==> Please complain to RedHat.

$SERVER["socket"] "*:443" { }
$SERVER["socket"] "[::]:443" { }
Actions

Also available in: Atom