Bug 1297681 - systemd is opening sockets only on IPv6
Summary: systemd is opening sockets only on IPv6
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: cockpit
Version: 23
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Stef Walter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-12 08:46 UTC by Avi Alkalay
Modified: 2023-09-14 03:15 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-04-27 12:12:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.