Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
hi all. i am going to share my adsl connection with a few people, and i going to be running a squid server. i know how to limit their bandwidth ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! silence's Avatar
    Join Date
    Aug 2006
    Location
    South Africa
    Posts
    16

    Creating a bandwidth cap??


    hi all.
    i am going to share my adsl connection with a few people, and i going to be running a squid server.
    i know how to limit their bandwidth using dela pools.
    But i want to know how to limit their downloading, so that they only can download say for instance one gig a month? i just want to know what program can i use to do that?

    thanks all

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,916
    This is an old question. May I refer you to the previous thread on this topic...

    http://www.linuxforums.org/forum/lin...er-ip-lan.html
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Just Joined! silence's Avatar
    Join Date
    Aug 2006
    Location
    South Africa
    Posts
    16
    oh thank you. i am sorr for asking it agian, but all the searches that i did on the forums and on google told me how to limit the actual line speed not the amount of data. i.e how to bring them down from a 512 line to like a 56 line. but thanx agian. cheers

  4. $spacer_open
    $spacer_close
  5. #4
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,916
    Hmmm yes, you're right. I dont even know where to start with this one; but it has to be possible - most ISPs have the capability to turn your service off after using too much of it, so there has to be a way.
    Linux user #126863 - see http://linuxcounter.net/

  6. #5
    Just Joined! silence's Avatar
    Join Date
    Aug 2006
    Location
    South Africa
    Posts
    16
    yes i saw. there is a program for windows called bandwidth managment by softperfect, and it is just what i wanted. but i don't use windows. there must be somthing for linux. maybe the wording is wrong, seeing as tho "bandwidth" covers such a broad discription. will keep looking, hopefully some1 has an answer.

  7. #6
    Just Joined!
    Join Date
    Sep 2005
    Location
    New delhi
    Posts
    22
    Quote Originally Posted by silence
    i.e how to bring them down from a 512 line to like a 56 line. but thanx agian. cheers
    use
    Code:
    #tc //- show / manipulate traffic control settings
    Here's the man page, for further reference.. http://www.die.net/doc/linux/man/man8/tc.8.html

  8. #7
    Just Joined! silence's Avatar
    Join Date
    Aug 2006
    Location
    South Africa
    Posts
    16
    thanks....but that i know how to do....its the part that i just want to limit a user to say 500mb per month. i know how slow their net down, thats easy with squid.

    but i found this site tell me what u think?

  9. #8
    Just Joined!
    Join Date
    Sep 2005
    Location
    New delhi
    Posts
    22
    Quote Originally Posted by silence
    thanks... i just want to limit a user to say 500mb per month. i know how slow their net down, thats easy with squid.
    With iptables, Instead of user, i think you can limit an ip to any amount of mb per month or per any nos of time. But it will require your shell scripting skills.

    Go through http://www.linux.com/article.pl?sid=05/12/15/177232

  10. #9
    Just Joined! silence's Avatar
    Join Date
    Aug 2006
    Location
    South Africa
    Posts
    16
    Ahhhhh thanx, atleast it is somewhere to start. and my iptables knowledge isn't quite the best so this will be a good start. thx

  11. #10
    Just Joined!
    Join Date
    Nov 2006
    Posts
    3
    Hi,

    I discovered IPCOP which has the Traffic Control & Report mod which claims to do exactly this. problem is that I can't get it to do what it's supposed to do. It picks up total traffic but somehow doesn't want to allocate the traffic to the users. If you can try it out and tell me how you got it to work, I would appreciate it.

    Thanks.

Page 1 of 2 1 2 LastLast

Posting Permissions

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