Some Computer Hints

Ubuntu Networking

To list all network interfaces in the system:

# lshw -class network

To get information about IP addresses and network statistics:

$ ip a
$ ifconfig

To do easy IP filtering (network firewall) use ufw. Some examples:

# ufw allow proto tcp from any to any port 13,22,25,80,443,587,995
# ufw allow from any to any port 53 comment NameServer
# ufw enable
# ufw status verbose
# ufw status numbered
# ufw insert 1 deny proto tcp from x.x.x.x to any port 80,443
# ufw delete 1

To find which processes are using the most network bandwidth run:

# nethogs -v 3