LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-18-2003, 05:37 AM   #1
acdc
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.

Regards
 
Old 09-20-2003, 03:01 PM   #2
peter_robb
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 03:03 PM.
 
  


Reply



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 01:52 PM
Controlling My Console ? JinBaba Programming 1 07-25-2005 03:35 PM
controlling a touchpad justagirl Linux - Laptop and Netbook 4 12-15-2004 10:42 AM
Bandwidth controlling acdc Linux - Networking 1 09-19-2003 07:58 AM
Controlling apps in X j1mmyd Linux - General 0 03-13-2001 12:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:54 AM.

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