Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] Bandwidth Management
@ 2001-04-09  6:53 Lucio Torresin
  2001-10-16 11:24 ` Isak Badenhorst
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Lucio Torresin @ 2001-04-09  6:53 UTC (permalink / raw)
  To: lartc

	I need to limit the bandwidth usage on my network. I read about iproute2+tc
but i think i don't need it yet. I only need to limit bandwidth of certain
network. On this mailing list i've read about the usage of cbq.init scripts
and i have done some to test. My problem now is: how to make my linux box
activate these scripts? i have a Debian potato installation with kernel
2.4.2 and iproute2+tc installed. Where have i to put these scripts to make
them work?

Thanks to everyone who can give me some hints.

Lucio



_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

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

* [LARTC] Bandwidth Management
  2001-04-09  6:53 [LARTC] Bandwidth Management Lucio Torresin
@ 2001-10-16 11:24 ` Isak Badenhorst
  2001-10-16 12:17 ` Isak Badenhorst
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Isak Badenhorst @ 2001-10-16 11:24 UTC (permalink / raw)
  To: lartc

Hi

I am rather new to Linux and QoS etc ....

I spending the last few days reading through all the documentation
available.  I only have on question.  My setup is as follows.

I have a cisco router connected to the internet.  Then I have a linux
machine with two NIC which serves as gateway for my private network.  My
question is if it is possible to limit the bandwidth for mail coming from
the internet on the linux machine or do I have to this on the router.  If so
can the outgoing mail to the internet be shaped on the linux machine.

Isak



_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

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

* RE: [LARTC] Bandwidth Management
  2001-04-09  6:53 [LARTC] Bandwidth Management Lucio Torresin
  2001-10-16 11:24 ` Isak Badenhorst
@ 2001-10-16 12:17 ` Isak Badenhorst
  2001-10-16 12:24 ` Isak Badenhorst
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Isak Badenhorst @ 2001-10-16 12:17 UTC (permalink / raw)
  To: lartc

Hi

I am reading through your documents but maybe in the meantime you can help
me by looking at what I wants tot do.

Ok here we go.

I have a 128kbit line to the internet.  As previously mentioned it is coming
in through a cisco router.  I also have a linux server which has two NIC.
Eth0 is connected to the router and eth1 to the LAN.  I have a few
workstations connected to the LAN.  The linux server do masquerading for the
workstations.  The linux machine also serves as mail server.  I need to
shape the mail that is coming in from the internet to 25% of the bandwidth
available and also wants to shape mail that's being sent out from the
workstations to a maximum of 25% of the bandwidth available.

This is in short the first thing I want to do.

If you need more info would you please let me know.


Thanks

Isak Badenhorst

-----Original Message-----
From: Stef Coene [mailto:stef.coene@docum.org]
Sent: 16 October 2001 13:28
To: Isak Badenhorst
Subject: Re: [LARTC] Bandwidth Management

You can do all this.  I wrote some documentation about it.  You can find it
on docum.org.  Maybe you missed it ;-).

If you didn't missed it, mail some more information to the mailing list and
we will try to help you.


Stef

On Tuesday 16 October 2001 13:24, you wrote:
> Hi
>
> I am rather new to Linux and QoS etc ....
>
> I spending the last few days reading through all the documentation
> available.  I only have on question.  My setup is as follows.
>
> I have a cisco router connected to the internet.  Then I have a linux
> machine with two NIC which serves as gateway for my private network.  My
> question is if it is possible to limit the bandwidth for mail coming from
> the internet on the linux machine or do I have to this on the router.  If
> so can the outgoing mail to the internet be shaped on the linux machine.
>
> Isak
>
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
> http://ds9a.nl/2.4Routing/

--

stef.coene@docum.org        stef.coene@belgacom.net
More QOS info : http://docum.org/
Title : "Using Linux as bandwidth manager"



_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

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

* RE: [LARTC] Bandwidth Management
  2001-04-09  6:53 [LARTC] Bandwidth Management Lucio Torresin
  2001-10-16 11:24 ` Isak Badenhorst
  2001-10-16 12:17 ` Isak Badenhorst
@ 2001-10-16 12:24 ` Isak Badenhorst
  2004-09-03 19:25 ` [LARTC] bandwidth management andybr
  2004-09-03 20:20 ` Leen Besselink
  4 siblings, 0 replies; 6+ messages in thread
From: Isak Badenhorst @ 2001-10-16 12:24 UTC (permalink / raw)
  To: lartc

SORRY
I am using Slackware 8 with kernel 2.4.9.
Hi

I am reading through your documents but maybe in the meantime you can help
me by looking at what I wants tot do.

Ok here we go.

I have a 128kbit line to the internet.  As previously mentioned it is coming
in through a cisco router.  I also have a linux server which has two NIC.
Eth0 is connected to the router and eth1 to the LAN.  I have a few
workstations connected to the LAN.  The linux server do masquerading for the
workstations.  The linux machine also serves as mail server.  I need to
shape the mail that is coming in from the internet to 25% of the bandwidth
available and also wants to shape mail that's being sent out from the
workstations to a maximum of 25% of the bandwidth available.

This is in short the first thing I want to do.

If you need more info would you please let me know.


Thanks

Isak Badenhorst

-----Original Message-----
From: Stef Coene [mailto:stef.coene@docum.org]
Sent: 16 October 2001 13:28
To: Isak Badenhorst
Subject: Re: [LARTC] Bandwidth Management

You can do all this.  I wrote some documentation about it.  You can find it
on docum.org.  Maybe you missed it ;-).

If you didn't missed it, mail some more information to the mailing list and
we will try to help you.


Stef

On Tuesday 16 October 2001 13:24, you wrote:
> Hi
>
> I am rather new to Linux and QoS etc ....
>
> I spending the last few days reading through all the documentation
> available.  I only have on question.  My setup is as follows.
>
> I have a cisco router connected to the internet.  Then I have a linux
> machine with two NIC which serves as gateway for my private network.  My
> question is if it is possible to limit the bandwidth for mail coming from
> the internet on the linux machine or do I have to this on the router.  If
> so can the outgoing mail to the internet be shaped on the linux machine.
>
> Isak
>
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
> http://ds9a.nl/2.4Routing/

--

stef.coene@docum.org        stef.coene@belgacom.net
More QOS info : http://docum.org/
Title : "Using Linux as bandwidth manager"



_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

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

* [LARTC] bandwidth management
  2001-04-09  6:53 [LARTC] Bandwidth Management Lucio Torresin
                   ` (2 preceding siblings ...)
  2001-10-16 12:24 ` Isak Badenhorst
@ 2004-09-03 19:25 ` andybr
  2004-09-03 20:20 ` Leen Besselink
  4 siblings, 0 replies; 6+ messages in thread
From: andybr @ 2004-09-03 19:25 UTC (permalink / raw)
  To: lartc

Hi all,

I have a firewall central which a control the 
download/upload bandwidth with cbq of 9 differents 
networks. Now i need some help from you. I would like 
to use mrtg+snmp to reports these bandwidth to show per 
ip, how? any idea? tips?

Thanks in advance,
Anderson

 
__________________________________________________________________________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] bandwidth management
  2001-04-09  6:53 [LARTC] Bandwidth Management Lucio Torresin
                   ` (3 preceding siblings ...)
  2004-09-03 19:25 ` [LARTC] bandwidth management andybr
@ 2004-09-03 20:20 ` Leen Besselink
  4 siblings, 0 replies; 6+ messages in thread
From: Leen Besselink @ 2004-09-03 20:20 UTC (permalink / raw)
  To: lartc

On Fri, 3 Sep 2004, andybr wrote:

> Hi all,
>
> I have a firewall central which a control the
> download/upload bandwidth with cbq of 9 differents
> networks. Now i need some help from you. I would like
> to use mrtg+snmp to reports these bandwidth to show per
> ip, how? any idea? tips?
>

A simple iptables rule (that doesn't do anything ?) and the small
perl-script below that I made.

2 rules that don't do anything:

iptables -t filter -I FORWARD -s network1/netmask
iptables -t filter -I FORWARD -d network1/netmask

or rules that make all traffic pass a set of rules specifically for that
network:

iptables -t filter -I FORWARD -s network1/netmask -j NET1
iptables -t filter -I FORWARD -d network1/netmask -j NET1

well... that's the simplest (not terrible efficient) way... :-)

#!/usr/bin/perl

$iptables = "/sbin/iptables";   # Adjust these to fit your site
$uptime = "/usr/bin/uptime";
$host = "whitecat";

$chain = ${ARGV[0]};

$_ = `$iptables -t filter -nvxL FORWARD | grep $chain`;
@iets = split ("\n", $_);

foreach $LINE (@iets) {
        # iptables prints source destination (so ip\s+0\/0 means out)

        if ($LINE =~ /[0-9]+\.[0-9]+\s+0\.0\.0\.0\/0/) {
                $LINE =~ s/^\s*\d+\s+(\d+).*$/$1/s;
                $out = $LINE;
                $out .= "\n";
        } else {
                $LINE =~ s/^\s*\d+\s+(\d+).*$/$1/s;
                $in = $LINE;
                $in .= "\n";
        }
}

print ($in.$out);

($uptime = `$uptime`) =~ s/^.*up (.*,[\d: ]+),.*$/$1/s;

print "$uptime\n$host\n";

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

end of thread, other threads:[~2004-09-03 20:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-09  6:53 [LARTC] Bandwidth Management Lucio Torresin
2001-10-16 11:24 ` Isak Badenhorst
2001-10-16 12:17 ` Isak Badenhorst
2001-10-16 12:24 ` Isak Badenhorst
2004-09-03 19:25 ` [LARTC] bandwidth management andybr
2004-09-03 20:20 ` Leen Besselink

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