Jump to content
Read the Funtoo Newsletter: Summer 2023 ×

What's causing crazy netstat output?


Recommended Posts

Two machines identically configured. On one, netstat returns

tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN     
tcp        0      0 45.76.6.231:497         0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:497           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp6       0      0 :::33060                :::*                    LISTEN     
tcp6       0      0 :::80                   :::*                    LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN     
tcp6       0      0 :::443                  :::*                    LISTEN

On the other, 

tcp        0      0 localhost:mysql         0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:ssh             0.0.0.0:*               LISTEN     
tcp        0      0 localhost:9000          0.0.0.0:*               LISTEN     

Why is Apache showing up in one and not the other? More generally, why does one list IPv6 connectivity and the other not?

Link to comment
Share on other sites

I figured it out. One is a slightly older build than the other. The debian-kernal lts had to have been compiled against different configs.

The one with ipv6 is running 4.9.168_p1 and the one without 4.19.37_p6. I guess this is a bug. ipv6 was left out of the newer kernel.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...