Results 1 to 2 of 2

Thread: Command that give the number of internet packets per port

  1. #1
    Join Date
    Oct 2013
    Beans
    23

    Command that give the number of internet packets per port

    The command "netstat -i" give the number of internet packets that is send and received per network intertface.
    netstat -i

    iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR
    ens160 1500 0 31452931 0 3982 0 19043725 0 0 0


    The tool "iptraf" give the number of internet packets per interface and per port.
    This monitor show the number of internet packets send and received by port 22 so by ssh en sftp and also by port 443 so by Samba.

    Is there a command that give the number of internet packets per port as simple output number that can be used in a bash script?

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Command that give the number of internet packets per port

    ifconfig? oops. per port - I was thinking per network port, not per IP port. sorry.

Tags for this Thread

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
  •