You are here

Active tcp/ip gateway connections

5 posts / 0 new
Last post
kg9dw
kg9dw's picture
Active tcp/ip gateway connections
Is there a command that can be run on the mesh internet gateway that will show the currently active tcp/ip connections? I'm looking to verify which nodes have traffic are transiting the mesh gateway. 
kb9mwr
Since these run Linux, re
Since these run Linux, re-word your question to "Active tcp/ip connections linux" and google that.  (The answer is netstat)
kg9dw
kg9dw's picture
Fair enough.
Fair enough.
AE6XE
AE6XE's picture
"netstat-nat" is not
"netstat-nat" is not installed on the mesh node in the AREDN lean embedded version of linux.   I don't see it available as a default package, although it looks like this could be compiled and made available.   The installed version of "netstat" only shows sockets directly to/from the mesh node itself, not traffic routed through it.

There is a way to see this information buried in the details found using this command:
>  cat /proc/net/nf_conntrack

Joe AE6XE
kg9dw
kg9dw's picture
This works pretty good:
This works pretty good:

cat /proc/net/nf_conntrack | grep -v -E 'dst=127.|dst=10.'

 

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer