TrafIP provides a small solution for monitoring traffic and bandwith.. #Monitoring traffic #Monitoring bandwidth #Monitor connection #TrafIP #Monitor #Traffic
TrafIP provides a small solution for monitoring traffic and bandwith.
TrafIP - it's a small solution(3 files) for monitoring your traffic and bandwidth. It's available for using with PHP and Linux(or any type of unix/bsd etc).
Unlike other programs you will have all data updated at 6 seconds. The graphs are generated when you access them. Oh, it's FREE!
Options:
� the name of file wich contains colected data � ip address filtered/of interface � the maximum speed than the line can download in 6 seconds. if you see black lines without interface to be down, then increase this value, it is just to detect line up/down � the color for upload traffic � the color for download traffic � image type png recomended for small size and look(can be png, gif or jpg)
Installation is easy. Just add those lines to your firewall or put somewhere to start allways.
After this modify the collect.sh script with the result from your iptables -L -n. And of course put the .php files somewhere to access via www :) and make the directory writeable. The output file must be in the directory where are the php files. By default without selecting anything will show last hour traffic. It's pretty live(update at 6 seconds, not like other programs).
Quick example: [root@lair trafip]# iptables -A OUTPUT -s 0.0.0.0/0 -d 127.0.0.1 [root@lair trafip]# iptables -A INPUT -d 0.0.0.0/0 -s 127.0.0.1 [root@lair trafip]# iptables -L -n|grep 127|grep -v ACCEPT|grep -v LOG|grep -v DROP all -- 127.0.0.1 0.0.0.0/0 all -- 0.0.0.0/0 127.0.0.1
Get the strings "127.0.0.1 0.0.0.0/0" and "0.0.0.0/0 127.0.0.1" and put in collect.sh. Must be exact like iptables shows(better you copy paste that part). The script collect.sh must be allways running to count. In img.php modify:
$target variable with the name where you redirect the output from collect.sh(ex: $target="local";) $ip variable with the IP(ex: $ip="127.0.0.1";) $maxspeed variable with the maximum maxim traffic can be done in 6 seconds(ex: $ip="115200";). If you have black lines on your graph without stopping the interface/traffic the increase the value. $upload variable with red or green(ex: $upload="red";) $download variable with red or green(ex: $download="green";) $imagetype variable with png, gif or jpg, if for output format of graph(ex: $imagetype="gif")
The output file must be something like: 11/12/02 05:57:26 10782702 149477806 11/12/02 05:57:32 10783170 149489806 11/12/02 05:57:38 10783810 149509426 (format: month/day/year[space]hour:minutte:second[space]INPUT_counter[space]OUTPUT_counter
What's New in This Release:
� New output formats � an interface to see detailed traffic.
TrafIP 3.3
add to watchlist add to download basket send us an update REPORT- runs on:
- Linux
- main category:
- Internet
- developer:
- visit homepage
ShareX 16.0.1
Bitdefender Antivirus Free 27.0.35.146
7-Zip 23.01 / 24.04 Beta
4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655
calibre 7.9.0
IrfanView 4.67
Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work
Zoom Client 6.0.3.37634
Windows Sandbox Launcher 1.0.0
Context Menu Manager 3.3.3.1
- Zoom Client
- Windows Sandbox Launcher
- Context Menu Manager
- ShareX
- Bitdefender Antivirus Free
- 7-Zip
- 4k Video Downloader
- calibre
- IrfanView
- Microsoft Teams