Linux Netfilter discussions
 help / color / mirror / Atom feed
* Controlling bandwith rate on port 80
@ 2002-02-11 20:27 iptables
  2002-06-11 20:10 ` Tony Earnshaw
  0 siblings, 1 reply; 5+ messages in thread
From: iptables @ 2002-02-11 20:27 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 216 bytes --]

Im using debian unstable, kernel 2.4.18, iptables 1.2.6a. My max upload bandwith is 30kb, i want to limit the traffic on port 80 to around 25kb. Is this possible and how? any HOWTO's on this subject?`

From terr1

[-- Attachment #2: Type: text/html, Size: 622 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Controlling bandwith rate on port 80
  2002-02-11 20:27 Controlling bandwith rate on port 80 iptables
@ 2002-06-11 20:10 ` Tony Earnshaw
  2002-06-11 20:35   ` George Georgalis
  0 siblings, 1 reply; 5+ messages in thread
From: Tony Earnshaw @ 2002-06-11 20:10 UTC (permalink / raw)
  To: iptables; +Cc: netfilter

[-- Attachment #1: Type: text/plain, Size: 720 bytes --]

man, 2002-02-11 kl. 21:27 skrev iptables:
> Im using debian unstable, kernel 2.4.18, iptables 1.2.6a.
>  My max upload bandwith is 30kb, i want to limit the traffic
> on port 80 to around 25kb. Is this possible and how? any HOWTO's on
> this subject?`

Definitely. But not with iptables.

http://www.tldp.org/HOWTO/Adv-Routing-HOWTO.html

You might wish to bookmark this site. It's where many HOWTOs are at.

Tony

-- 

Tony Earnshaw

e-post:		tonni@billy.demon.nl
www:		http://www.billy.demon.nl
gpg public key:	http://www.billy.demon.nl/tonni.armor

Telefoon:	(+31) (0)172 530428
Mobiel:		(+31) (0)6 51153356

GPG Fingerprint = 3924 6BF8 A755 DE1A 4AD6 FA2B F7D7 6051 3BE7 B981
3BE7B981



[-- Attachment #2: Dette er en digitalt signert meldingsdel --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Controlling bandwith rate on port 80
@ 2002-06-11 20:22 Hard__warE
  2002-06-11 20:35 ` Eric Daigneault
  0 siblings, 1 reply; 5+ messages in thread
From: Hard__warE @ 2002-06-11 20:22 UTC (permalink / raw)
  To: netfilter

yes it can be done with IPTables just not alone ..

you will need to complie your kernel with the IPTABLES MARK / TOS / U32
classifiers / CBQ  ect  set to M..

now that we have the support we can use

a Token Bucket Filter or CBQ  to limit the packet rate Per interface both in
up or down

to do this correcty you will need to set a ToS MARK value on all PORT 80
traffic

leaving the BOX (or however you need it) with IPTABLES the

in your Pcaket Shaping CBQ script you can search for those marked packets
and stick them in a Low Priorty Que

or a QUE that has a set amount of bandwidth allocation ect ...

If you know nothing of these go Search for Advanced Routing & TOS / MARK as
well as CBQ & TBF

have Fun cause it can be a pain in the ass ...

If you need more help just send me an Email . .. :D

See yas .. :D



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Controlling bandwith rate on port 80
  2002-06-11 20:10 ` Tony Earnshaw
@ 2002-06-11 20:35   ` George Georgalis
  0 siblings, 0 replies; 5+ messages in thread
From: George Georgalis @ 2002-06-11 20:35 UTC (permalink / raw)
  To: Tony Earnshaw; +Cc: iptables, netfilter


On Tue, Jun 11, 2002 at 10:10:03PM +0200, Tony Earnshaw wrote:
>man, 2002-02-11 kl. 21:27 skrev iptables:
>> Im using debian unstable, kernel 2.4.18, iptables 1.2.6a.
>>  My max upload bandwith is 30kb, i want to limit the traffic
>> on port 80 to around 25kb. Is this possible and how? any HOWTO's on
>> this subject?`
>
>Definitely. But not with iptables.
>
>http://www.tldp.org/HOWTO/Adv-Routing-HOWTO.html
>
>You might wish to bookmark this site. It's where many HOWTOs are at.
>


Not iptables but you probably want the apache mod_throttle for that.
google says:
http://www.snert.com/Software/mod_throttle/

// George



-- 
GEORGE GEORGALIS, System Admin/Architect    cell: 347-451-8229 
Security Services, Web, Mail,            mailto:george@galis.org 
File, Print, DB and DNS Servers.       http://www.galis.org/george 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Controlling bandwith rate on port 80
  2002-06-11 20:22 Hard__warE
@ 2002-06-11 20:35 ` Eric Daigneault
  0 siblings, 0 replies; 5+ messages in thread
From: Eric Daigneault @ 2002-06-11 20:35 UTC (permalink / raw)
  To: netfilter

If you want to make it easy..... take a look at SQUID.... should help a lot !!!

--- off topic, I know !!! :-)

At 06:22 2002-06-12 +1000, you wrote:
>yes it can be done with IPTables just not alone ..
>
>you will need to complie your kernel with the IPTABLES MARK / TOS / U32
>classifiers / CBQ  ect  set to M..
>
>now that we have the support we can use
>
>a Token Bucket Filter or CBQ  to limit the packet rate Per interface both in
>up or down
>
>to do this correcty you will need to set a ToS MARK value on all PORT 80
>traffic
>
>leaving the BOX (or however you need it) with IPTABLES the
>
>in your Pcaket Shaping CBQ script you can search for those marked packets
>and stick them in a Low Priorty Que
>
>or a QUE that has a set amount of bandwidth allocation ect ...
>
>If you know nothing of these go Search for Advanced Routing & TOS / MARK as
>well as CBQ & TBF
>
>have Fun cause it can be a pain in the ass ...
>
>If you need more help just send me an Email . .. :D
>
>See yas .. :D

------------------------------------
Eric Daigneault
Administrateur Système
Vacances Air Canada
------------------------------------



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-06-11 20:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-11 20:27 Controlling bandwith rate on port 80 iptables
2002-06-11 20:10 ` Tony Earnshaw
2002-06-11 20:35   ` George Georgalis
  -- strict thread matches above, loose matches on Subject: below --
2002-06-11 20:22 Hard__warE
2002-06-11 20:35 ` Eric Daigneault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox