sysdig icon indicating copy to clipboard operation
sysdig copied to clipboard

netstat chisel ignores ports presumably binded to ipv6

Open ceizner opened this issue 8 years ago • 2 comments

Let say we are looking for a port 1337 in one of the containers

root@ubuntu:~# sudo sysdig -c netstat "'(container.id=dc291357b717 and fd.type=ipv6)'"
Proto Server Address           Client Address           State          TID/PID/Program Name
root@ubuntu:~#

So one might think there is nothing listening in port 1337 inside container with id dc291357b717 However let us double-check with more traditional tools:

root@ubuntu:~# docker exec -it dc291357b717 bash
root@sysdigcloud-api-2507006246-nvxlk:/# netstat -pant| grep 1337
tcp6       0      0 :::1337                 :::*                    LISTEN      86/node

ceizner avatar Mar 03 '17 21:03 ceizner

I helped debug this with ceizner and I think the fact that the node process was listening on ipv6 was important. The netstat chisel has a default filter of (fd.type=ipv4). Obviously changing the filter didn't help, though.

mstemm avatar Mar 03 '17 21:03 mstemm

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Feb 24 '23 02:02 github-actions[bot]