Do you know how to use iptables?
If so, then use the following rules
-A INPUT -s $ip -m quota --quota $size -m time --timestart $hh:$mi --timestop $hh:$mi --days $day1,$day2,$day,$... -j ACCEPT
-A INPUT -j DROP
Last edited by Agrouf; 02-26-2009 at 09:54 AM.
|