How can netfilter hooks create an entry in /proc/net call monitored_conn, so that I can monitor any tcp connections, by writing and reading from the entry. For eg:
echo "+192.168.0.10:10-192.168.0.30" > /proc/net/monitored_conn
Then cat /proc/net/monitored_conn will give me sth like
192.168.0.10:10<-->192.168.0.30
cwnd=1234
mss=1234
ssthresh=1234
window size=1234
Please help, as I looked for tutorial online for weeks and still not sure the right strategy?
Thank you a lot,