Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What's causing crazy netstat output?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mauricev
Apprentice
Apprentice


Joined: 22 Mar 2004
Posts: 203

PostPosted: Thu Aug 22, 2019 3:32 pm    Post subject: What's causing crazy netstat output? Reply with quote

Two machines identically configured. On one, netstat returns

Code:
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,

Code:
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?
Back to top
View user's profile Send private message
mauricev
Apprentice
Apprentice


Joined: 22 Mar 2004
Posts: 203

PostPosted: Thu Aug 22, 2019 3:46 pm    Post subject: Reply with quote

It turns out one server is slightly older than the other and is running an earlier kernel that somehow had been compiled differently. One has ipv6 and the other not.
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Thu Aug 22, 2019 3:58 pm    Post subject: Reply with quote

Furthermore, the first output was created with netstat option '-n' and the second one without that option...

'identical' is probably not the appropriate word...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum