LinuxQuestions.org
Visit Jeremy's Blog.
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-05-2005, 09:53 PM   #1
zhex900
LQ Newbie
 
Registered: Nov 2004
Posts: 16

Rep: Reputation: 0
Download Limit


Current I have a NAT running on Mandrake 10.2 with Shorewall & Squid.

Is there away to set download limit per client (base on IP or MAC)?

i.e. Say for the period of a 4 weeks, a client will be allocated with 1 G of download usage. If any time within the 4 weeks, the client excess the 1G download limit, some action will be taken like, redirect to an error message web page, or limit download rate. Of course the idea, is that the 1G limit will be reset at the beginning of every 4 weeks.

Is there any tool that can be configured to achieve this?

After alot of searching, all I can find is statically restrict client excess the internet. Like manaully define in the Squid or Shorewall to deny IP or MAC.

I want something like.

If 192.168.0.100's current download count >= 192.168.0.100' DOWNLOAD LIMIT

//Take Action
foward all http to port
drop everything else

end if

If 192.168.0.100 used time so far == 192.168.0.100's PERIOD

/Reset download counter
192.168.0.100's download counter = 0

end if
 
Old 09-06-2005, 04:01 PM   #2
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
http://www.netfilter.org/patch-o-mat...pom-base-quota

Have you checked this ?

it is a quota match module for netfilter/iptables
maybe it does what you want.
 
Old 09-06-2005, 07:06 PM   #3
zhex900
LQ Newbie
 
Registered: Nov 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Thank you for your help.

Actually I find another solution (maybe it is a over kill) for my problem. Since I only have a small network with 10 machines.

http://www.cse.unsw.edu.au/~ipq/doc/

Now, I just have to read the documentation, and try to install & configure it on my machine.
 
  


Reply


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
download limit in squid prasanta Linux - Networking 2 11-21-2005 12:13 PM
How do I create a download limit (bittorrent)? aargh Linux - Networking 1 09-04-2004 02:54 PM
make download and upload limit intellscreen Linux - Newbie 1 10-30-2003 10:23 AM
How do ISPs limit download rate per user? ganninu Linux - Networking 2 10-22-2003 12:13 PM
Bandwidth Download limit XCaLiBrE Linux - Networking 1 12-01-2002 11:37 AM

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

All times are GMT -5. The time now is 06:43 PM.

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