How can I list the number of connections per client on the FORWARD chain of an OpenWRT router?
I know how to list the number of connections per IP address on the router:
netstat -ntu | tail -n +3 | # list open TCP and UDP connections
awk '{print $5}' | cut -d: -f1 | # extract client IP addresses
sort | uniq -c | sort -nr # show number of occurrences and sort by it
I want to do the same with connections that are going through the router's FORWARD chain.
