TrafIP

TrafIP provides a small solution for monitoring traffic and bandwith.
Download

TrafIP Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • TrafIP Developer
  • Publisher web site:
  • http://trafip.securityorg.net/

TrafIP Tags


TrafIP Description

TrafIP provides a small solution for monitoring traffic and bandwith. 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:# iptables -A OUTPUT -s 0.0.0.0/0 -d 127.0.0.1# iptables -A INPUT -d 0.0.0.0/0 -s 127.0.0.1# 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.1Get 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 14947780611/12/02 05:57:32 10783170 14948980611/12/02 05:57:38 10783810 149509426(format: month/day/yearhour:minutte:secondINPUT_counterOUTPUT_counterWhat's New in This Release:· New output formats· an interface to see detailed traffic.


TrafIP Related Software