Network traffic control

Hello . I want to calculate the total data consumption of the router in a certain time period. and transfer the output to another site through api. What package should I use?

try vnstat.

1 Like

thanks . its work