View active tcp or udp connections?

I'd like to view active connections at command line, with the server IP & local client address. Active video streaming is what I'm interested in, if it makes a difference.

LuCI > Status > Realtime Graphs > Connections

1 Like

Opps, sorry. I like to view it at command line so I can try filtering by certain IPs / IP ranges.

1 Like

See this OpenWrt wiki article...

https://wiki.openwrt.org/doc/howto/bwmon

and this:

cat /proc/net/nf_conntrack

Filter from there using grep, awk, sed. For example this lists all IP's of players in a Playstation 4 Party Chat with me:

cat /proc/net/nf_conntrack | grep sport=9307 | awk '{print $7}' | sed "s/dst=//g"

6 Likes