old-www/HOWTO/Bandwidth-Limiting-HOWTO/index.html

354 lines
4.9 KiB
HTML

<HTML
><HEAD
><TITLE
>Bandwidth Limiting HOWTO</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.63
"><LINK
REL="NEXT"
TITLE="Introduction"
HREF="intro.html"></HEAD
><BODY
CLASS="ARTICLE"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="ARTICLE"
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="TITLE"
><A
NAME="AEN2"
>Bandwidth Limiting HOWTO</A
></H1
><H3
CLASS="AUTHOR"
><A
NAME="AEN4"
>Tomasz Chmielewski</A
></H3
><DIV
CLASS="AFFILIATION"
><DIV
CLASS="ADDRESS"
><P
CLASS="ADDRESS"
>tch@metalab.unc.edu&nbsp;</P
></DIV
></DIV
><DIV
CLASS="REVHISTORY"
><TABLE
WIDTH="100%"
BORDER="0"
><TR
><TH
ALIGN="LEFT"
VALIGN="TOP"
COLSPAN="3"
><B
>Revision History</B
></TH
></TR
><TR
><TD
ALIGN="LEFT"
>Revision 0.9</TD
><TD
ALIGN="LEFT"
>2001-11-20</TD
><TD
ALIGN="LEFT"
>Revised by: tc</TD
></TR
><TR
><TD
ALIGN="LEFT"
COLSPAN="3"
></TD
></TR
></TABLE
></DIV
><DIV
><DIV
CLASS="ABSTRACT"
><A
NAME="AEN16"
></A
><P
></P
><P
>This document describes how to set up your Linux server
to limit download bandwidth or incoming traffic and how to use
your internet link more efficiently.</P
><P
></P
></DIV
></DIV
><HR></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
>1. <A
HREF="intro.html"
>Introduction</A
></DT
><DD
><DL
><DT
>1.1. <A
HREF="intro.html#AEN22"
>New versions of this document</A
></DT
><DT
>1.2. <A
HREF="intro.html#AEN28"
>Disclaimer</A
></DT
><DT
>1.3. <A
HREF="intro.html#COPYRIGHT"
>Copyright and License</A
></DT
><DT
>1.4. <A
HREF="intro.html#AEN34"
>Feedback and corrections</A
></DT
><DT
>1.5. <A
HREF="intro.html#AEN39"
>Thanks</A
></DT
></DL
></DD
><DT
>2. <A
HREF="prep.html"
>Before We Start</A
></DT
><DD
><DL
><DT
>2.1. <A
HREF="prep.html#AEN60"
>What do we need</A
></DT
><DT
>2.2. <A
HREF="prep.html#AEN65"
>How does it work?</A
></DT
></DL
></DD
><DT
>3. <A
HREF="install.html"
>Installing and Configuring Necessary Software</A
></DT
><DD
><DL
><DT
>3.1. <A
HREF="install.html#AEN78"
>Installing Squid with the delay pools feature</A
></DT
><DT
>3.2. <A
HREF="install.html#AEN110"
>Configuring Squid to use the delay pools feature</A
></DT
><DT
>3.3. <A
HREF="install.html#AEN146"
>Solving remaining problems</A
></DT
></DL
></DD
><DT
>4. <A
HREF="cbq.html"
>Dealing with Other Bandwidth-consuming Protocols Using CBQ</A
></DT
><DD
><DL
><DT
>4.1. <A
HREF="cbq.html#AEN235"
>FTP</A
></DT
><DT
>4.2. <A
HREF="cbq.html#AEN266"
>Napster, Realaudio, Windows Media and other issues</A
></DT
></DL
></DD
><DT
>5. <A
HREF="faq.html"
>Frequently Asked Questions</A
></DT
><DD
><DL
><DT
>5.1. <A
HREF="faq.html#AEN287"
>Is it possible to limit bandwidth on a per-user basis with delay pools?</A
></DT
><DT
>5.2. <A
HREF="faq.html#AEN292"
>How do I make <B
CLASS="COMMAND"
>wget</B
> work with Squid?</A
></DT
><DT
>5.3. <A
HREF="faq.html#AEN300"
>I set up my own SOCKS server listening on port 1080, and now I'm not able to connect to
any irc server.</A
></DT
><DT
>5.4. <A
HREF="faq.html#AEN305"
>I don't like when Kazaa or Audiogalaxy is filling up all my upload bandwidth.</A
></DT
><DT
>5.5. <A
HREF="faq.html#AEN312"
>My outgoing mail server is eating up all my bandwidth.</A
></DT
><DT
>5.6. <A
HREF="faq.html#AEN317"
>Can I limit my own FTP or WWW server in a manner similar it is shown in the question above?</A
></DT
><DT
>5.7. <A
HREF="faq.html#AEN327"
>Is it possible to limit bandwidth on a per-user basis with <B
CLASS="COMMAND"
>cbq.init</B
> script?</A
></DT
><DT
>5.8. <A
HREF="faq.html#AEN331"
>Whenever I start <TT
CLASS="FILENAME"
>cbq.init</TT
>, it says <TT
CLASS="FILENAME"
>sch_cbq</TT
> is missing.</A
></DT
><DT
>5.9. <A
HREF="faq.html#AEN338"
>CBQ sometimes doesn't work for no reason.</A
></DT
><DT
>5.10. <A
HREF="faq.html#AEN341"
>Delay pools are stupid; why can't I download something at full speed
when the network is used only by me?</A
></DT
><DT
>5.11. <A
HREF="faq.html#AEN359"
>My downloads break at 23:59 with "acl day time 09:00-23:59" in squid.conf. Can I do
something about it?</A
></DT
><DT
>5.12. <A
HREF="faq.html#AEN364"
>Squid's logs grow and grow very fast, what can I do about it?</A
></DT
><DT
>5.13. <A
HREF="faq.html#AEN381"
>CBQ is stupid; why can't I download something at full speed when the
network is used only be me?</A
></DT
></DL
></DD
><DT
>6. <A
HREF="misc.html"
>Miscellaneous</A
></DT
><DD
><DL
><DT
>6.1. <A
HREF="misc.html#AEN409"
>Useful resources</A
></DT
></DL
></DD
></DL
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="intro.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Introduction</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>