Changes

Jump to: navigation, search

Traffic accounting with iptables

51 bytes added, 20:30, 25 November 2006
Scripting
cp /dev/null $trafficlog
# start a php script to store the traffic in a MySQL Database on the HOST-TO-SHOW-THE-TRAFFIC-TO-THE-USERS
# please mind to use .htaccess to secure this
wget -q http://HOST-TO-SHOW-THE-TRAFFIC-TO-THE-USERS/login/traffic-read.php?HN=$HOSTNAME -O /dev/null
</pre>
}
fclose($handle);
?>
</pre>
22
edits

Navigation menu