| Summary: | sys-apps/net-tools - netstat --inet doesn't show active connections | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Dan Thorson <dan.thorson> |
| Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | 2007.0 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Dan Thorson
2008-05-12 22:12:06 UTC
could you give netstat-1.60_p#### a quick test please Added
=sys-apps/net-tools-1.60_p20071202044231-r1
to package.keywords and re-emerged:
# emerge -uDNatv net-tools
Calculating dependencies... done!
[ebuild U ] sys-apps/net-tools-1.60_p20071202044231-r1 [1.60-r13] USE="nls -static" 180 kB
[ebuild R ] app-arch/lzma-utils-4.32.5 USE="-nocxx%" 0 kB
No change in behavior:
gluon portage # netstat | grep ssh
tcp6 0 0 gluon.DOMAIN:ssh dan-thorson.DOMAIN:60740 ESTABLISHED
tcp6 0 0 gluon.DOMAIN:ssh dan-thorson.DOMAIN:60746 ESTABLISHED
tcp6 0 0 gluon.DOMAIN:ssh dan-thorson.DOMAIN:60755 ESTABLISHED
gluon portage # netstat --inet | grep ssh
gluon portage #
Although I think it's interesting that the output now shows "tcp6" instead of the (correct) "tcp" (my ssh client is ipv4-only). The SSH daemon seems to be the only one which shows up as tcp6:
gluon portage # netstat -a | grep tcp
tcp 0 0 *:submission *:* LISTEN
tcp 0 0 gluon.DOMAIN:http *:* LISTEN
tcp 0 0 gluon.DOMAIN:http *:* LISTEN
tcp 0 0 *:omni *:* LISTEN
tcp 0 0 *:ftp *:* LISTEN
tcp 0 0 *:nessus *:* LISTEN
tcp 0 0 *:smtp *:* LISTEN
tcp 0 0 *:snpp *:* LISTEN
tcp 0 0 gluon.DOMAIN:http dan-thorson.DOMAIN:61767 ESTABLISHED
tcp 681 0 gluon.DOMAIN:44101 OK101B.DOMAIN:telnet ESTABLISHED
tcp6 0 0 [::]:ssh [::]:* LISTEN
tcp6 0 40 gluon.DOMAIN:ssh dan-thorson.DOMAIN:60740 ESTABLISHED
tcp6 0 0 gluon.DOMAIN:ssh dan-thorson.DOMAIN:60746 ESTABLISHED
tcp6 0 0 gluon.DOMAIN:ssh dan-thorson.DOMAIN:60755 ESTABLISHED
Did you need more information? What can I do to help? at this point, someone just has to dig into the source code and track down the issue ... <bugzilla admin hat> I have removed the subdomain and domain information per a request from the original submitter. </bugzilla admin hat> Also, I have seem something similar to this bug based strictly on the SSH configuration. You may be using a IPv4 host, but it is possible that an application uses and IPv6 socket with a v4-in-v6 style address. sounds like things are working correctly -- the --inet option shows IPv4, and your ssh connections are IPv6. using --inet6 shows the IPv6 connections. I'm still using net-tools-1.60_p20071202044231-r1 but it also works for me. I have recently upgraded to kernel 2.6.31-gentoo-r6... hard to say where the fix ultimately came from... just glad it's working! |