LinuxQuestions.org
Help answer threads with 0 replies.
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 01-18-2005, 03:33 PM   #1
<Ol>Origy
Member
 
Registered: Aug 2003
Location: Slovenia
Distribution: Arch, Debian, Embedded
Posts: 136

Rep: Reputation: 15
Question Limiting bandwidth on a linux router


Hello everyone!

I have some questions about linux networking and I wish for some answers. It's just that I have the need to limit the amount of packets that go through my linux router. I have searched these forums for answers but I can't seem to come up with a solution that would fit my system as I am just too uncertain.

Here's how my network is like:
I am using an old P2 300 MHz PC with two network cards and Red Hat 9 as my router. One network card is connected to an ADSL modem which has a static IP while the other one is connected to a switch and has an internal IP of 192.168.10.1 which is the gateway for all other computers connected to that switch. I am using an iptables firewall + masquerade server to allow internal computers to access the internet via the router. It was just a bunch of rules I needed to add to enable IP forwarding and it works fine so far.

Now suddenly I have the need to limit bandwidth to all internal PC's as sometimes one PC (usually my sisters) consumes almost all upload leaving others laggy and stuck. I need to limit the internet bandwidth to all internal PC's while still being able to use the connection between any internal PC and the router itself or the router and the internet itself with full speed. I only wish to limit the speed for connections from any internal PC to the internet. I wish to limit the upload only to a certain amount for all internal PC's (any port, any IP, protocols).

Do you have any suggestions that would fit my configuration?
Can I limit the upload with my currently installed iptables?
Should I install and use a third-party bandwidth limiting utility? Which one and why?

Warning: I'm not very good at installing new programs on linux - new to it.


Thanks for your time and any suggestions.
~Ol
 
Old 01-18-2005, 06:26 PM   #2
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
At the following location you can find a lot of information, have a look at monowall.

http://www.voip-info.org/wiki-VOIP+Routers
 
Old 01-18-2005, 06:28 PM   #3
emu_123
Member
 
Registered: Oct 2003
Location: Australia
Distribution: LFS unstable and Mandrake 10.1
Posts: 54

Rep: Reputation: 15
I am having the same problem however its my brothers computer running kazaa that sucks up all the bandwidth.

My thoughts on how to limit the bandwidth are to install a different packer scheduler on the router to give my computer priority on sending packets instead of FIFO which is IIRC the default scheduler. I haven't finished compiling all the packages on my router as yet though so beyond the thoughts, not much has happened so I cannot tell you if it'll actually would work.

Once I get it done, I will help if you need it. If you find out some other way to limit the bandwidth please do tell.
 
Old 01-20-2005, 12:39 AM   #4
<Ol>Origy
Member
 
Registered: Aug 2003
Location: Slovenia
Distribution: Arch, Debian, Embedded
Posts: 136

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by arno
At the following location you can find a lot of information, have a look at monowall.

http://www.voip-info.org/wiki-VOIP+Routers
"m0n0wall is probably the first UNIX system that has..."
Ugh... I don't like the sound of that.

Here's one particulary interesting document I found.
http://www.ibiblio.org/pub/Linux/doc...ent-HOWTO.html
I still can't seem to understand how to limit all kinds of traffic (any protocol, any port) for any PC on the subnet from this article. I'll have to study it a bit more.
 
Old 01-26-2005, 12:36 AM   #5
emu_123
Member
 
Registered: Oct 2003
Location: Australia
Distribution: LFS unstable and Mandrake 10.1
Posts: 54

Rep: Reputation: 15
Quote:
Here's one particulary interesting document I found.
http://www.ibiblio.org/pub/Linux/doc...ent-HOWTO.html
Thanks for that link, that is exactly the type of thing that I was planning to do. This will definitely save me a lot of time poring through the kernel network configuration and documention.

Thanks

emu_123
 
Old 01-26-2005, 02:51 AM   #6
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

I recently (last week) enabled QoS on my linux router.

Quote:
I still can't seem to understand how to limit all kinds of traffic (any protocol, any port) for any PC on the subnet from this article. I'll have to study it a bit more.
Here http://www.prout.be/qos/QoS-connecti...OWTO.html#toc4 They explain how to use MANGLE iptables's rules to mark any packet. You then apply your QOS policies to the marked packets.

So with the iptables rules, you should be able to specify all IPs / ports you want.

Hope this helps...
 
Old 01-26-2005, 04:06 PM   #7
<Ol>Origy
Member
 
Registered: Aug 2003
Location: Slovenia
Distribution: Arch, Debian, Embedded
Posts: 136

Original Poster
Rep: Reputation: 15
I will look into this in the near future and post questions here if I have any.
Thanks.
 
  


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
limiting bandwidth Ammad Linux - General 1 10-06-2005 05:38 AM
LImiting bandwidth per-host...with a NAT router burntoutjoy Linux - Networking 1 11-10-2003 04:59 PM
Bandwidth limiting dunkyb Linux - Networking 3 09-17-2003 04:36 AM
Bandwidth limiting turb0freak Linux - Networking 10 08-15-2003 10:29 PM
bandwidth limiting karunesh Linux - Networking 5 11-09-2002 02:28 AM


All times are GMT -5. The time now is 08:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration