On Tue, Jun 20, 2006 at 11:30:56AM +0700, m3 wrote: > >> yah semacam ini, tapi alarm nya ke admin, bukan si user > >> kalo bs, user tetep bs download tp sbg admin kita tau siapa yg sedang > >> download besar2an > >> > > > >Bottom reply please... > > > >Hmm... mungkin yang laen bisa ngasih solusi > > > >btw, jadi berandai-andai, jika bisa di set alarm, berarti bisa juga di > >shutdown > >jadi user yg download melebihi kuota, langsung shutdown ;-) > > > >-- > >Regards, > > > > > >-inv- @ http://archives.web.id > > > > emank spt itu mau nanti, > bisa gag yah? saya pakai switch catalyst neh, > teman2 yg lain ada tools nya gag?
Mungkin bisa pakai trafic control dengan module connbytes dari netfilter http://www.netfilter.org/patch-o-matic/pom-extra.html#pom-extra-connbytes Sesuai penjelasan dr pembuatnya dijelaskan: The connbytes match is used to match many bytes or packets a connection (or one of the two flows constituting the connection) have tranferred so far. The counters are 64bit and are thus not expected to overflow ;) The primary use is to detect long-lived downloads and mark them to be ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ scheduled using a lower priority band in traffic control. The transfered bytes per connection can also be viewed through /proc/net/ip_conntrack and accessed via ctnetlink Usage: [!] --connbytes FROM:[TO] [--direction original|reply|both] [!] --connpkts FROM:[TO] [--direction original|reply|both] [!] --connavgpkt FROM:[TO] [--direction original|reply|both] will match packets from a connection which transfered more than FROM and less than TO bytes/packets. if TO is omitted only FROM check is done. "!" is used to match packets not falling in the range. Example: iptables .. -m connbytes --connbytes 10000:100000 ... Saya sendiri belum coba, kemarin dah berhasil patch kernel & iptables dg patch-o-matic, tapi belum masukkan module ini (connbytes). Salam, ~yudi -- FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab Unsubscribe: kirim email ke [EMAIL PROTECTED] Arsip dan info milis selengkapnya di http://linux.or.id/milis