Giter Club home page Giter Club logo

Comments (4)

tomwilkie avatar tomwilkie commented on May 1, 2024

I can't tell if its not seeing connections of if the connections are too short lived for scope to pick up; or if connections between containers don't appear in /proc/net/tcp!

from scope.

tomwilkie avatar tomwilkie commented on May 1, 2024

Okay it looks like /proc/net/tcp doesn't have all the connections; so scope doesn't work for containers...

this tool does show the connections: http://www.phildev.net/iptstate/index.shtml - need to figure out where from

from scope.

peterbourgon avatar peterbourgon commented on May 1, 2024

ip_conntrack is a kernel module. See typetypetype/conntrack. I'm not sure the relationship to nf_conntrack, maybe just a rename? Maybe we can rely on it being present.

from scope.

tomwilkie avatar tomwilkie commented on May 1, 2024

I can't see how to associate conntrack with fds/pids as is; I think the missing step is catting /proc/[pid]/net/tcp:

vagrant@ubuntu-14:~/src/github.com/weaveworks/scope$ cat /proc/28497/net/tcp
  sl  local_address rem_address   st tx_queue rx_queue tr tm->when retrnsmt   uid  timeout inode                                                     
   0: 00000000:18EB 00000000:0000 0A 00000000:00000000 00:00000000 00000000   999        0 6776390 1 0000000000000000 100 0 0 10 0                   
vagrant@ubuntu-14:~/src/github.com/weaveworks/scope$ cat /proc/29026/net/tcp
  sl  local_address rem_address   st tx_queue rx_queue tr tm->when retrnsmt   uid  timeout inode                                                     
   0: 00000000:1388 00000000:0000 0A 00000000:00000000 00:00000000 00000000     0        0 6778139 1 0000000000000000 100 0 0 10 0                   
vagrant@ubuntu-14:~/src/github.com/weaveworks/scope$ cat /proc/net/tcp
  sl  local_address rem_address   st tx_queue rx_queue tr tm->when retrnsmt   uid  timeout inode                                                     
   0: 00000000:0016 00000000:0000 0A 00000000:00000000 00:00000000 00000000     0        0 11760 1 0000000000000000 100 0 0 10 0                     
   1: 00000000:B067 00000000:0000 0A 00000000:00000000 00:00000000 00000000   105        0 9613 1 0000000000000000 100 0 0 10 0                      
   2: 00000000:006F 00000000:0000 0A 00000000:00000000 00:00000000 00000000     0        0 8659 1 0000000000000000 100 0 0 10 0                      
   3: 0F02000A:0016 0202000A:FBC5 01 00000000:00000000 02:000097AE 00000000     0        0 6201951 2 0000000000000000 20 4 17 10 -1                  
   4: 0F02000A:0016 0202000A:C4A9 01 00000000:00000000 02:0008CAE1 00000000     0        0 6365661 2 0000000000000000 20 4 1 10 -1                   
   5: 0100007F:B222 0100007F:0FBE 01 00000000:00000000 00:00000000 00000000     0        0 6783761 1 0000000000000000 20 4 30 10 -1                  
   6: 0F02000A:0016 0202000A:C18B 01 00000000:00000000 02:0007AAE1 00000000     0        0 6318749 4 0000000000000000 20 4 17 10 -1  

from scope.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.