1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

newbie question on monitoring (telnet etc)

Discussion in 'Tomato Firmware' started by kardzzz, Sep 9, 2008.

  1. kardzzz

    kardzzz Addicted to LI Member

    Hi Guys, Having switched to Tomato 1.21 Victek modded, I am inpressed with all the functionality. I have 'little to no' programming knowledge but know how to telnet and input some codes, (i.e. i set my Qos to use pFIFO). I run a small (about 10 users max) network and would like to monitor the number of connections people are running and which ports, so I can better manage the QoS.

    My questions are:
    1) What telnet function will give me IP address and number of connections?
    2) How can I see what ports are being used by each IP?
    What other useful function do you recommend for monitoring network activity and are you using any applications with friendly gui?

    I'd appreciate any help to get me started on this quest

    Thanks
     
  2. fyellin

    fyellin LI Guru Member

    Your best bet is to use ssh, with local port forwarding.

    Run the command
    Code:
       ssh -l root -L 8001:localhost:80 yourdomain_or_ip_address
    If you have ssh on your router running on a port other than 22, then add the argument "-p <port>"

    Once ssh has started, start up a browser on the same machine from which you are running ssh, and type in the address "http://localhost:8001". You will be talking to the web interface of your router. You can easily visit any of its pages.

    You turn on ssh access at the "Admin" > "Admin Access" page.
     
  3. HennieM

    HennieM Network Guru Member

    [sermon]Telnet is not a something-with-commands. Telnet is ONE way of accessing the shell on your router. Another way of accessing the shell is via ssh. You can do this with PuTTY from Windoze.[/sermon]

    The easiets way of seeing what connections you have to and via the router, is to, once you have established a connection to your router's shell via telnet or ssh, look at the contents of the file /proc/net/ip_conntrack. Do this by typing
    Code:
    cat /proc/net/ip_conntrack
    Now google for "ip_conntrack", and you'll find an explanation of what you are looking at.

    If the conntrack lines scroll too fast for you to read properly, try
    Code:
    cat /proc/net/ip_conntrack | more
    and then scroll in pieces by pressing the space bar. Press "q" when you are done reading.

    A better way might be to use less:
    Code:
    less /proc/net/ip_conntrack
    which allow you to scroll up and down with the arrow keys. press "q" when done.
     

Share This Page