Bandwidth Management
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
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:[email protected]]
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
Quoted 13 lines · you
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.
Quoted 8 lines
Isak
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
http://ds9a.nl/2.4Routing/
--
[email protected] [email protected]
More QOS info : http://docum.org/
Title : "Using Linux as bandwidth manager"
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
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:[email protected]]
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
Quoted 13 lines · you
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.
Quoted 8 lines
Isak
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
http://ds9a.nl/2.4Routing/
--
[email protected] [email protected]
More QOS info : http://docum.org/
Title : "Using Linux as bandwidth manager"
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
[LARTC] bandwidth management
In reply to Lucio TorresinHi 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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] bandwidth management
In reply to Lucio TorresinQuoted 8 lines · andybr
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/