Is it allowed to manually edit the Bandwidth Usage Table?

Report issues relating to bandwith monitoring, bandwidth quotas or QoS in this forum.

Moderator: Moderators

Post Reply
lollapalooza
Posts: 122
Joined: Mon Jun 09, 2014 12:53 pm

Is it allowed to manually edit the Bandwidth Usage Table?

Post by lollapalooza »

Is it possible to manually edit the values in the bandwith usage table?

The values are stored in bin files, so a text editor is not an optionb.

I found the commands bw_get and bw_set, but that seems not to be very clear if that's their purpose, or how to use them.

TIA

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Is it allowed to manually edit the Bandwidth Usage Table?

Post by Lantis »

Yes that is what they are used for, but no it isn't supposed to be user friendly.

You would need to craft a very specific binary file in order to do this, which is well beyond the scope of what this forum can assist with.
You need a complete understanding of the save_history_to_file function in ipt_bwctl. This is used by bw_get, which is of course the inverse of bw_set.

Reading one by hand is incredibly slow and painful. I just tried it out of interest and there are bits that i don't understand completely either.

You also need to keep in mind the endianness of your router, and also the fact that ip addresses in the file appear to be stored in network byte order.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

lollapalooza
Posts: 122
Joined: Mon Jun 09, 2014 12:53 pm

Re: Is it allowed to manually edit the Bandwidth Usage Table?

Post by lollapalooza »

Ok, I'll give up :-(
In any case, thanks a lot for your answer.

I wish you a nice day.

Post Reply