Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-18-2003, 06:37 AM   #1
LQ Newbie
Registered: Sep 2003
Posts: 28

Rep: Reputation: 15
Bandwidth controlling

Hello out there everyone. I need a small help. I am using a cable modem ISP. I am allocated a download limit of 300 megabytes per month only. Beyond this and i have to pay per extra mb downloaded. This is really irritating as I get huge bills every month.

NOW the help that i want is to know how to control the bandwidth usage with linux.

I am having a network of 10 computers. Redhat linux 8 is the gateway. I am using NAT - IP Masquerading implemented through IPTABLES for sharing the internet connection. I want only 10mb to be used everyday so that in a month the limit is not exceeded.

So how do i do this so only upto 10mb is used in a given day.

Old 09-20-2003, 04:01 PM   #2
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Because there are so many different ways of downloading info, chat, browsing, dns etc and they all count towards the volume, I would suggest a kernel module for netfilter (iptables) called quota.

You can then use iptables to fine tune the quotas against protocols, destinations, sources etc...

You will need to get this from the patchomatic download and apply this to your kernel sources and recompile your kernel.
You will have a new QUOTA option to select when you do Make menuconfig.
quotas are set by byte values and are valid for as long as the rule exists, so if you want a daily quota, restart the rules daily etc...

Last edited by peter_robb; 09-20-2003 at 04:03 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vsftpd - how to limit download bandwidth but unlimited upload bandwidth? mpls mikeg Linux - Software 3 08-13-2005 02:52 PM
Controlling My Console ? JinBaba Programming 1 07-25-2005 04:35 PM
controlling a touchpad justagirl Linux - Laptop and Netbook 4 12-15-2004 11:42 AM
Bandwidth controlling acdc Linux - Networking 1 09-19-2003 08:58 AM
Controlling apps in X j1mmyd Linux - General 0 03-13-2001 01:15 PM

All times are GMT -5. The time now is 10:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration