Is there software I can install to enable me to monitor inbound and outbound internet traffic for security reasons?
I recently installed ubuntu and loving it because of speed and interface. I want to do what I can to make this the greatest OS I've ever worked with. Can you provide suggestions as to what I should install or do?
I personally use vnstat which works quite nicely as it just sits in the background. You can query it for hourly, daily, monthy stats and there's a nice web based frontend to it called jvnstat.
Here's some examples from my website:-
vnstat is in the repositories and takes just a moment to setup. There's a nice guide on the debian administration website:-
http://www.debian-administration.org/articles/330
Network analyser tools:
I suggest you to install iptraf commandline tool.
That is a question requiring a very nontrivial answer. The following tools could all be useful to deflect an attack:
These tools give you a lot of control if you know how to use them and will require some good "hobby time" to learn.
If your only interessted in how much traffic there is (not its destination) you could use a commandline tool called bmon.
Cacti
Cacti is a complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with hundreds of devices.
Installation:
Click this to read about Cacti features
Bandwidthd
BandwidthD tracks usage of TCP/IP network subnets and builds html files with graphs to display utilization. Charts are built by individual IPs, and by default display utilization over 2 day, 8 day, 40 day, and 400 day periods. Furthermore, each ip address's utilization can be logged out at intervals of 3.3 minutes, 10 minutes, 1 hour or 12 hours in cdf format, or to a backend database server. HTTP, TCP, UDP, ICMP, VPN, and P2P traffic are color coded.
Download from here.
Read more about here
speedometer
If you need a live monitoring of the inbound and outbound traffic rate across a network interface you can try speedometer. I found this command-line based tool very user-friendly.
Install speedometer:
Use the
-rx
and-tx
options to display bytes received and transmitted on network interface. For example, if your network interface card name iseth0
use the following command:A live graph like the one shown blow will be displayed in the terminal window. By default, the graph is updated every second. You can change update intervals if you wish.
For more information read the man pages using
man speedometer
after installing.As far as your first question is concerned you can use wireshark network analyser to monitor traffic on your network interfaces. some tutorials are here
http://www.wireshark.org/docs/