You need to set up a shared folder to store the log and the necessary files for the IPTables Bandwidth Monitor package. You can use flash memory, but for simplicity, you can start with CIFS Client first. You create a shared folder on a computer in the local network, granting write access to a username on the computer. Then use the username and password to declare in the CIFS Client section . The UNC path should use the hostname according to the IP address, in the form: xxx.xxx.xxx.xxxsharedfolder . If you do it right, after clicking Save and waiting for Tomato to restart the necessary services, Total / Free Size will show the maximum and available space of the above shared folder.
Next, download the IPTables Bandwidth Monitor package from here and extract the ipt-parse.7z file to get the folder called tomato_files . Copy the contents of this folder into the above shared folder.
On Mark Vejvoda's wiki page, there are two ways to guide: using logfile or using SQLITE database . This article only mentions the second way. Go to Scripts under the Administration section, select the Firewall tab and type the following command into the empty box: / cifs1 / ipt-parse 6 .
Click Save and let Tomato restart the necessary service. Then go to Scheduler , select Custom 1 , click Enable. Choose Time as ' Every 15 minutes ' and make sure you choose Everyday in the Days section. In the Command box, type the following command lines:
cd / cifs1
./ipt-parse 2 BANDWIDTH "iptables -L traffic_all -vnx" "iptables -Z traffic_all"
./ipt-parse 4 today today BANDWIDTH flags = morehostinfo> dailybandwidthlive.html
./ipt-parse 4 today-7 today BANDWIDTH flags = morehostinfo> weeklybandwidthlive.html
(You can go to Mark Vejvoda's wiki page to copy and paste the command line)
Click Save and wait for Tomato to restart the service. If you get it right, and the username to access in CIFS Client is sufficient, after 15 minutes in the shared folder, there will be 2 files with the .html extension with information on the bandwidth usage of each IP address. You have declared in Static Lease of DHCP.
If successful and still want to explore more, the wiki has instructions on how to put the above 2 report pages on the router. At that time, you will access those two pages according to the address of the router as follows: http://xxx.xxx.xxx.xxx/ext/dailybandwidthlive.asp with the letter x is the IP address of the router. Or you can directly insert the contents of the tomato_files folder into flash memory, no need to use shared folders.
QoS
Tomato provides the following interfaces for you to manage the translation quality of bandwidth traffic on the network. As mentioned above, View Details section is very useful for you to know who-what-is-doing on your network. From there you can adjust, or even restrict, rules in the Access Restriction section.
However, Robson 's Script Generator gives you more power than Tomato's available features. (See picture)
You can specify to each IP address, or range of IP addresses, or ports, or even a range of ports with own bandwidth, how many connections . Even prioritize a certain type of traffic.
Script Generator simply writes the Linux command on your behalf, after you've set up rules that serve your needs, follow its instructions. It will then export to the command line. You just copy and paste them into Scripts section, in the Firewall tab. Save and if possible, restart the router.