Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Bandwidth limiting by day
Results 1 to 5 of 5

Thread: Bandwidth limiting by day

  1. #1

    Bandwidth limiting by day

    How can I limit the amount of bandwidth I use by the day? For example, let's say I only want to be able to use 750 Mbytes (incoming + outgoing) of bandwidth within a 24 hour time period. Is there a way of issuing "ifconfig <interface> down" if it hits this limit?

  2. #2

    Re:Bandwidth limiting by day

    I dunno if this would help, but there's mod_bandwidth for apache, if you're looking to limit bandwidth on an http server.

  3. #3

    Re:Bandwidth limiting by day

    I don't know of an existing tool but one could be written. Something that does a ifconfig eth0, grabs the "RX bytes:270258278 (257.7 Mb) TX bytes:120446255 (114.8 Mb)" line, then if it's in X range, ifconfig eth0 down. The only possible challenge would be resetting the numbers each day. (unload/reload module at worst)

  4. #4

    Re:Bandwidth limiting by day

    [quote author=gorn link=board=4;threadid=9707;start=0#msg88172 date=1093222782]
    I don't know of an existing tool but one could be written. Something that does a ifconfig eth0, grabs the "RX bytes:270258278 (257.7 Mb) TX bytes:120446255 (114.8 Mb)" line, then if it's in X range, ifconfig eth0 down. The only possible challenge would be resetting the numbers each day. (unload/reload module at worst)
    [/quote]
    That would work, but the problem is that it's reactive and will likely not issue a shut down command until afterwards.

    Anyway, I got a tip from another place to check out the QUOTA module for netfilter/iptables

  5. #5

    Re:Bandwidth limiting by day

    Great! once you get it working tell us how you did it!

Similar Threads

  1. Using a linux box for bandwidth limiting.
    By Joe_90 in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 08-15-2005, 10:05 PM
  2. bandwidth limiting
    By gorn in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 08-12-2003, 07:55 PM
  3. Limiting bandwidth use in Bit Torrent
    By trickster in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 07-03-2003, 12:11 AM
  4. Bandwidth limiting
    By flashingcurser in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 05-23-2003, 09:53 PM
  5. limiting a directory size
    By krinkstar in forum Linux - General Topics
    Replies: 2
    Last Post: 01-27-2002, 05:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •