Red Hat Bugzilla – Bug 170077
netstat --inet -ap doesn't show all listening ports/processes
Last modified: 2007-11-30 17:07:20 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4
Description of problem:
This problem dates back a few versions, but I haven't opened a ticket until now. Basically, 'netstat --inet -ap' used to show all listening and open tcp and udp sockets. However, it now only shows a subset of the listening sockets. Compare:
netstat --inet -ap | grep '*'
netstat -ap | grep '*'
The former doesn't show:
tcp 0 0 *:ssh *:*
while the latter does, although it doesn't seem specific to ssh.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. netstat --inet -ap
2. netstat -ap
Actual Results: there are more sockets listed in (2) than in (1).
Expected Results: Both commands should show the same sockets listening.
The output is correct. ssh is listed if you use also --inet6 option.