Menu
InformatiWeb Pro
  • Index
  • System admin
  • Virtualization

Login

Registration Password lost ?
FR
  • Windows Server
    • WMS 2012
    • WS2012 R2
    • WS2016
  • Citrix
    • Citrix NetScaler Gateway
    • Citrix XenApp / XenDesktop
    • Citrix XenServer
  • VMware
    • VMware ESXi
    • VMware vSphere
    • VMware Workstation
  • Microsoft
    • Hyper-V
  • RAID
    • Adaptec SmartRAID
  • UPS
    • APC Back-UPS Pro
  • InformatiWeb Pro
  • System admin
  • Linux
  • Network monitoring with statistics in HTML format on Debian / Ubuntu

Network monitoring with statistics in HTML format on Debian / Ubuntu

  • Linux
  • 12 September 2015 at 11:39 UTC
  • InformatiWeb
  • 2/2
Previous page

4. Analyze LAN traffic entering and leaving your server

Because BandwidthD is installed on our server with the IP address 10.0.0.9, we will use values :

Plain Text

subnet 10.0.0.0/24
promiscuous false

Thus, BandwidthD will record statistics for network exchanges performed to and from the IP addresses : 10.xxx
We disable the promiscuous mode to get statistics for our server only.

To save changes, restart BandwidthD :

Bash

service bandwidthd restart

In this example, only the network traffic from our local network "10.0.0.0" was recorded. For this record, we see that our server (IP: 10.0.0.9) has downloaded a file from the 10.0.0.4 machine. Our server has downloaded that file (Total Received : approximately 120 MB) and 10.0.0.4 Machine has therefore sent it (Total Sent: 120 MB).

 

5. Analyze all the traffic of your local network (Internet not included)

To get the statistics for network exchanges performed between different machines on our local network, we will use values :

Plain Text

subnet 10.0.0.0/24
promiscuous true

We enable promiscuous mode to obtain statistics for the entire LAN. Internet statistics will not be recorded, because the public IP (or Internet IP) doesn't correspond to the network ID : "10.0.0.0/24".

To save changes, restart BandwidthD :

Bash

service bandwidthd restart

In this example, we see that the 10.0.0.3 machine uses our network to download. We also see that the machine "10.0.0.4" uses our network to upload data.

 

6. Analyze network traffic (LAN and Internet) entering and leaving your server

To obtain statistics for network exchanges performed in your local network and also to and from the Internet, we will use values :

Plain Text

subnet 0.0.0.0/0
promiscuous false

We disable the promiscuous mode to obtain statistics for our server only. Internet statistics will be recorded because the network ID "0.0.0.0/0" concerns all IP addresses.

To save changes, restart BandwidthD :

Bash

service bandwidthd restart

 

7. Analyze all traffic of your local network (including the Internet)

To obtain statistics for network exchanges performed between different machines on your local network and also to and from the Internet, we will use values :

Plain Text

subnet 0.0.0.0/0
promiscuous true

We enable promiscuous mode to obtain statistics for the entire LAN. Internet statistics will be recorded because the network ID "0.0.0.0/0" concerns all IP addresses.

To save changes, restart BandwidthD :

Bash

service bandwidthd restart

In this example, we see that the IP address 10.0.0.4 of our local network, has downloaded 278.4 MB (10.0.0.4 / Total Received). The IP address 62.4.254.57 (which is a public IP address or an Internet IP) sent 271.1 MB (in this case, it is the 271.1 MB downloaded by the local machine 10.0.0.4). This download was performed over the http protocol.

Share this tutorial

Partager
Tweet

To see also

  • Ubuntu - Define a private static IP address

    Linux 1/11/2014

    Ubuntu - Define a private static IP address

  • Ubuntu - Enable root account

    Linux 1/11/2014

    Ubuntu - Enable root account

  • Ubuntu - Install and secure a SSH server

    Linux 1/11/2014

    Ubuntu - Install and secure a SSH server

  • Ubuntu - Secure your Apache web server (HTTPS)

    Linux 2/13/2014

    Ubuntu - Secure your Apache web server (HTTPS)

Comments

No comment

Share your opinion

Pinned content

  • Software (System admin)
  • Linux softwares
  • Our programs
  • Terms and conditions
  • Share your opinion

Contact

  • Guest book
  • Technical support
  • Contact

® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.

Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.