What's new

RT-AC66 Tools_Sysinfo.asp connections' statistics

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Paxton

New Around Here
Hello!

I'm running RT-AC66 with 3.0.0.4.374.38_2 Merlin build.
Web interface has Tools-System Information page which is of great interest to me. I want to monitor network sessions established through my home gateway. The Network section of the Tools_Sysinfo.asp script contains
"Connections" counters. It looks like this:

"Connections 1698 / 300000 - 664 active"

As a result of my tiny investigation I've found that:
- the first is network sessions as it is reported by netfilter and could be found at /proc/sys/net/netfilter/nf_conntrack_count
- the second is the maximum number of sessions supported and it is also might be read from /proc/sys/net/netfilter/nf_conntrack_max

What I don't understand is the third counter that is referred as "active". I'm not so good in ASP and could not translate what <% sysinfo("conn.active"); %> means in /www/Tools_Sysinfo.asp. sysinfo script available from shell does not contain this info and does not support variables.

Does anybody know what this counter means and whether I want to draw it in my cacti how to get the value out of the system? Maybe it's the number of bidirectional sessions in Active (Established) state reported by iptables?

The main goal of monitoring these values is to check the health of the internal network. Unexpected spikes in the sessions number might indicate an infection such as virus or bot net deployed.

Thanks in advance.
 
BTW, this isn't ASP as in the Microsoft technology. It's a javascript-based tag processing done by the httpd daemon.
 

Thanks you very much. I thought it is an external binary or a script.
Am I understand right, this value does not present anywhere in a readable form? And exist only as a result of a function call during Tools_Sysinfo page compilation? I'd prefer to avoid increasing cpu utilization if there'd be already computed answer.

BTW, this isn't ASP as in the Microsoft technology. It's a javascript-based tag processing done by the httpd daemon.

Please, forgive my ignorance, my latest program was written in Turbo Pascal 7.0/Turbo Vision 2.0 about 15 years ago :)

P.S> BTW, Have to thank you for your great work. Keep it up!
 
Thanks you very much. I thought it is an external binary or a script.
Am I understand right, this value does not present anywhere in a readable form? And exist only as a result of a function call during Tools_Sysinfo page compilation? I'd prefer to avoid increasing cpu utilization if there'd be already computed answer.

No, you have to get the list of tracked connections from the kernel, and manually count the number of occurrences of either "ESTABLISHED" or "udp" with "ASSURED". You can easily reproduce this through a shell script most likely.
 
Similar threads

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top