The officially official Devuan Forum!

You are not logged in.

#1 2024-02-25 16:49:54

bai4Iej2need
Member
From: Ortenau
Registered: 2021-04-25
Posts: 117  

[SOLVED] netstat -tulpen: strange output

in the output of netstat -tulpen have these lines amongst others

netstat -tulpen | grep \-
Proto Recv-Q Send-Q Local Address           Foreign Address         State       Benutzer   Inode      PID/Program name    
tcp        0      0 0.0.0.0:42397           0.0.0.0:*               LISTEN      0          1874       -                   
tcp        0      0 0.0.0.0:3142            0.0.0.0:*               LISTEN      108        15793      1656/apt-cacher-ng  
tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN      0          15825      -                   
tcp6       0      0 :::45827                :::*                    LISTEN      0          1877       -                   
tcp6       0      0 :::3142                 :::*                    LISTEN      108        15794      1656/apt-cacher-ng  
tcp6       0      0 :::2049                 :::*                    LISTEN      0          15841      -                   
udp        0      0 0.0.0.0:57006           0.0.0.0:*                           0          1873       -                   
udp6       0      0 :::49439                :::*                                0          1875       -                   

I am wondering, what these lines are with the dash - at the end . Never seen this before.
Something to do with docker , which I recently installed?


The devil, you know, is better than the angel, you don't know. by a British Citizen, I don't know too good.
One generation abandons the enterprises of another like stranded vessels. By Henry David Thoreau, WALDEN, Economy. Line 236 (Gutenberg text Version)
broken by design :
https://bugs.debian.org/cgi-bin/bugrepo … bug=958390

Offline

#2 2024-02-25 17:26:40

chris2be8
Member
Registered: 2018-08-11
Posts: 307  

Re: [SOLVED] netstat -tulpen: strange output

A quck test gave me a clue (output truncated for brevity):

$ netstat -tulpen
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name    
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      0          15476      -                   
tcp        0      0 0.0.0.0:60799           0.0.0.0:*               LISTEN      105        14342      - 

And as root:

$ sudo netstat -tulpen
[sudo] password for chris: 
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name    
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      0          15476      2240/exim4          
tcp        0      0 0.0.0.0:60799           0.0.0.0:*               LISTEN      105        14342      1343/rpc.statd  

So netstat can't find out the PID/Program name if it's not running as root unless the program that opened the socket is running as you.

Offline

#3 2024-03-05 22:51:17

bai4Iej2need
Member
From: Ortenau
Registered: 2021-04-25
Posts: 117  

Re: [SOLVED] netstat -tulpen: strange output

Thanks


The devil, you know, is better than the angel, you don't know. by a British Citizen, I don't know too good.
One generation abandons the enterprises of another like stranded vessels. By Henry David Thoreau, WALDEN, Economy. Line 236 (Gutenberg text Version)
broken by design :
https://bugs.debian.org/cgi-bin/bugrepo … bug=958390

Offline

Board footer