sbm: monitor network traffic

$ sbm -i wlp2s0 -c 10
wlp2s0:   0.00  bps Rx   0.00  bps Tx     0 pps Rx     0 pps Tx
wlp2s0:   5.54 kbps Rx  18.94 kbps Tx     6 pps Rx     8 pps Tx
wlp2s0:   2.78 Mbps Rx 122.69 kbps Tx   256 pps Rx   141 pps Tx
wlp2s0: 433.54 kbps Rx  45.22 kbps Tx    55 pps Rx    35 pps Tx
wlp2s0: 528.00  bps Rx 752.00  bps Tx     1 pps Rx     1 pps Tx
wlp2s0:  10.94 kbps Rx   5.50 kbps Tx     6 pps Rx     4 pps Tx
wlp2s0:   0.00  bps Rx   0.00  bps Tx     0 pps Rx     0 pps Tx
wlp2s0:  13.34 kbps Rx  26.10 kbps Tx    11 pps Rx    13 pps Tx
wlp2s0: 384.64 kbps Rx  57.70 kbps Tx    57 pps Rx    49 pps Tx
wlp2s0: 553.67 kbps Rx  51.35 kbps Tx    69 pps Rx    56 pps Tx

sbm (Simple Bandwidth Monitor) is a tiny utility to track your network traffic. It’s similar to slurm in functionality but shows a continuous log of transfer rates (upstream and downstream). The best use-case is the situation in which you want to figure out how much data an application transmits in isolation. With constant monitoring, you can also figure out easily if any application is sending information home. Continue reading sbm: monitor network traffic

WireGuard: simpler, faster VPN tunnel

WireGuard

OpenVPN is a very familiar name to those using VPN on Linux. While it’s old and tested, there’s no way an individual can audit the code and confirm there are no security loopholes. This is a major problem if you consider the fact that newer and deadlier ways to breach security are being developed actively everyday. In areas of networking and security, simpler but more robust alternatives are always welcome. WireGuard is a secure under-development VPN tunneling utility with a refined approach. Continue reading WireGuard: simpler, faster VPN tunnel

TCPTuner: congestion control utility

TCPTuner is a kernel module with a userspace GUI to control TCP congestion using different parameters. It is the result of a research by Kevin Miller and Luke W. Hsiao from Stanford University. The congestion control parameters exposed can fine-tune the TCP CUBIC algorithm, currently used in the Linux kernel. Continue reading TCPTuner: congestion control utility

ProxyChains: per-app proxy

p2p_network_compUpdate: tsocks seems to be a better alternative when multiple applications are involved, i.e., one invokes another.

While there is a Tor-specific utility torify to route per-application traffic anonymously, the utility doesn’t provide any option to use custom proxies. ProxyChains fills in the gap by providing a similar but more flexible utility. It supports tor too. ProxyChains is extrremely useful when a program doesn’t handle proxies by itself. ProxyChains adds the functionality by intercepting the TCP calls. Continue reading ProxyChains: per-app proxy

Constant BSSID for a familiar WiFi connection

ubuntu_logo_81x81BSSID (Basic Service Set Identifier) defines the most basic infrastructure mode network, a BSS of a WAP and one or more wireless nodes. The scheme is so simple that the BSSID is left as the MAC address of the WAP. WiFI scanning tools scan the network very frequently. However, you can reduce that using a permanent BSSID. Continue reading Constant BSSID for a familiar WiFi connection

Persistent network interface names in Ubuntu 15.10 & later

ubuntu_logo_81x81One of the changes introduced in Ubuntu Wily Werewolf is persistent stateless names. It means your network interfaces in ifconfig output will no longer follow the ethX pattern. This solves major problems with predictability of an interface name on Ubuntu if you have multiple cards. This applies to ethernet, WLAN and WWAN interfaces. Continue reading Persistent network interface names in Ubuntu 15.10 & later

Save battery on Intel Linux

tux_compYou’ll find several threads on how Linux drains your battery on Google. While many of the issues might be hardware specific, there are some ways to enhance your battery life in addition to the standard TLP and powertop utilities. This article deals with some advanced mechanisms and utilities to go deeper into power management. Continue reading Save battery on Intel Linux