Bug 1297681

Summary: systemd is opening sockets only on IPv6
Product: [Fedora] Fedora Reporter: Avi Alkalay <avibrazil>
Component: cockpitAssignee: Stef Walter <stefw>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 23CC: avibrazil, johannbg, lnykryn, msekleta, s, stefw, systemd-maint, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-27 12:12:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Avi Alkalay 2016-01-12 08:46:56 UTC
Description of problem:
Not sure if this is a cockpit or a systemd problem, but is affecting cockpit for me.
I installed cockpit and cockpit-ws and expected to access its web interface over regular networking. But systemd only listens on tcp6 (IPv6) por 9090, not regular IPv4.

Version-Release number of selected component (if applicable):
$ rpm -q systemd cockpit-ws
systemd-222-12.fc23.x86_64
cockpit-ws-0.89-1.fc23.x86_64

How reproducible:
Apparently always

Steps to Reproduce:
1. dnf install cockpit-ws
2. systemd enable cockpit.socket
3. netstat -an | grep 9090 

Actual results (output of netstat):
tcp6       0      0 :::9090                 :::*                    LISTEN

Expected results (expected output of netstat):
tcp        0      0 0.0.0.0:9090            0.0.0.0:*               LISTEN
tcp6       0      0 :::9090                 :::*                    LISTEN

Comment 1 Lennart Poettering 2016-02-10 13:43:19 UTC
Sounds like a cockpit problem. It all depends what they configure in the .socket unit. If they use "ListenStream=0.0.0.0:9090 [::]:9090" they get two sockets, one for ipv4 and one for ipv6.

Comment 2 Stef Walter 2016-02-10 14:39:19 UTC
This is what we use:

src/ws/cockpit.socket:ListenStream=9090

Avi, what does ListenStream say on your machine?

Comment 3 Stef Walter 2016-04-27 12:12:38 UTC
No response from Avi. Closing this bug.

On a default install:

$ netstat -an | grep 9090
tcp6       0      0 :::9090                 :::*                    LISTEN

Comment 4 Red Hat Bugzilla 2023-09-14 03:15:58 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days