hoopycat wrote:
Add iptables rules with no actions:
Code:
iptables --append INPUT --destination 192.0.2.0/24 --destination-port 80
iptables --append OUTPUT --source 192.0.2.0/24 --source-port 80
... will catch all traffic involving the local machine talking to web servers in 192.0.2.0/24. Adjust address and ports and --destination-port vs. --source-port accordingly.
Then, "iptables -L -n -v -x" will show the cumulative packet and byte counts for that rule. Sic something like munin on it and you're in the gravy boat.
EDIT: And indeed, if it's only the bandwidth quota you care about, the graphs and counters on the Linode manager already account for this.
For example, linode panel graph shows private out average of 362.23 kb/s for the last 30 days. This is about 120GB. However, I can't tell from that how much of the data ended up leaving the private network. I appreciate that (given my calculation is correct) this is within a 512 node. But the busy period is expected in about 6 weeks.
I'm using ufw to manage my iptables. Presumably ufw will barf any rules added directly via iptables?