Results 1 to 2 of 2

Thread: Recording network states

  1. #1
    Join Date
    May 2007
    Location
    UK / England
    Beans
    43
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Recording network states

    Hello All,

    I'm running an ubuntu server, just for very basic stuff.

    However some functionality I would like to have is to record all internet traffic coming onto the network, so having 2 Nics.. one connecting to the router and one connecting to the rest of the network.

    I'm assuming in order to record traffic per IP etc it would have to act as a gateway opposed to just a pass through.

    Any recommendations on how I would make a start on this would be grand.

    CoXen
    CoXen

    Fiesty User

  2. #2
    Join Date
    Jan 2007
    Location
    ~/SC/USA
    Beans
    1,969
    Distro
    Ubuntu

    Re: Recording network states

    Do you mean real time stats?

    I use a few from the command line:

    watch --interval=2 "sudo netstat -apn -l -A inet"
    watch --interval=2 "sudo netstat -p -e --inet --numeric-hosts"
    watch --interval=2 "sudo netstat -ano -l -A inet"
    watch --interval=2 "sudo netstat -anp --inet --inet6"
    watch --interval=2 "sudo netstat -tulpan"
    sudo lsof -i
    sudo netstat -tulpan

    You could set something like this to log. I just use them when I need.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •