LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-28-2006, 04:14 PM   #1
yahooadam
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Rep: Reputation: 0
Setting Up a linux router - with load balancing ?


Ok guys, i am very sorry if this has been posted many times (i looked in the tutorial section for help with this)
Firstly when it comes to linux, im a

i know a fair bit about networking and stuff, but nothing at the level of what im about to ask, so please bear with me if im being dumb

Also i couldnt find the search button at the top to search for stuff allready posted on the forum

Ok heres my situation
Currently i have a network with 5 computers (for eg) all these run on DHCP and there is a router connected to the internet

Currently the router is, well pretty crap, for eg, while using bittorent, even if the download speed is only 500 kb/s (10 kb/s up) it locks up the router, and no-one in the house can use the internet (its a 1mb connection, 256kb/s up)

Ok, so i would like to set up a computer as a linux router, so what would happen is that would sit between the router and the rest of the network (unfortunetly i dont have a BB modem at the moment, but if this works i can get one)

Ok so now we have router - > linux computer - > network

I need the linux computer to be a DHCP server (sure thats easy )

and it needs some kind of firewall to keep the network safe

Here comes the tricky part though

i would like to reserve a certain amount of bandwidth for 1 computer, so that all the other computers can use the pool of bandwidth thats left, but this 1 computer allways has a dedicated 10 kb/s (for eg) connection to the internet, which the others cannot use up

ok, i think that bits easy enough (if you know how to do it)

Now the tricky bit - i want that pool to be reserved only when the computer is on, when its turned off i would like that reserved bandwidth to go back to being availible to the rest of the network

Also i would like the linux computer to accept VPN connections (but that can be another time when it works)

If there are any guides that cover this, that would be great, i havent been able to find any (that arent either outdated to the max, or are so compicated its like reading french)

(oh and if theres a good one explaining how you install linux properly, that would be cool)

Thanks for any help
Yahooadam

p.s. Im downloading fedora core 4 to do this, and i have a knoppix live CD
pp.s. im a newb with linux, and will play around with knoppix a bit to get to know it
 
Old 01-28-2006, 07:57 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
welcome to LQ!!!

well, you definitely want to give the Linux Advanced Routing & Traffic Control paper a read, specifically the section entitled Queueing Disciplines for Bandwidth Management... then you could tweak a prefabricated script such as The Wonder Shaper to your liking...

another way you could tackle this is by using a proxy server... Squid comes with a feature called Delay Pools which you might want to look into...

as for the thing about changing the rules when the PC is turned-off, that's really easy... you just need a script on the linux box that pings the PC every minute or so and whenever it doesn't get a reply it executes the script which changes the rules (and vice versa)... i remember i participated in a thread here at LQ where something like this was written a long time ago...

just my ...
 
Old 01-29-2006, 06:22 AM   #3
yahooadam
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Original Poster
Rep: Reputation: 0
wow that looks really really complicated

so i dont understand why i would want squidd ATM ....

ill have a look at that other guide when i have 2 hours lol

i read 2 pages but its just like

info
^
^
^
^
My head
 
Old 01-29-2006, 11:45 AM   #4
kellinjar
Member
 
Registered: Mar 2004
Location: South Korea
Posts: 103

Rep: Reputation: 15
Another thing to keep in mind is that its likely not your router that is causing the bandwidth issue. Many BT trackers are under attack and have been under attack for some time. Using any of the less than reputable ones will about 90% of the time result in Denial of Service attacks being hurled at you. This is a known issue if you visit some of the BT forums.
 
Old 01-30-2006, 02:46 AM   #5
yahooadam
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Original Poster
Rep: Reputation: 0
yeh thats very possible

I think its prolly alot more work then i thought to do this

i might just get a good linksys router instead of this crappt "BT" one (British telecom)(actually made by 2-wire)
 
Old 01-30-2006, 09:37 AM   #6
kellinjar
Member
 
Registered: Mar 2004
Location: South Korea
Posts: 103

Rep: Reputation: 15
I have a linksys befsx41 and still suffer slow downs. At least I don't get disconnects like I did with my Dlink DI604.

Try to pick your trackers carefully. If you use on ethat doesn't cause slow downs try to remember it. If you want to test to see if it is the tracker and not just BT, Nasa is sharing some fo their high res images on BT now (do a google search for Nasa images torrent and you should come across it.) They have some images that'll take about 15 minutes with BT and that should tell you. I was getting 280KB/sec with no slow downs there, yet on unreputable trackers I'd get 50k, and couldn't use the internet on any other machine.
 
  


Reply



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
A cheap load balancing router or switch tangle Linux - Hardware 6 01-10-2010 01:02 PM
Load Balancing matux Linux - Networking 0 01-05-2005 10:59 AM
load balancing on rh ntaizi Linux - Software 0 12-17-2003 06:41 AM
Firewall/Router+Load Balancing anyone? Pentagon Linux - Security 4 09-22-2003 03:00 PM
Load Balancing Linux Router Setup remigus Linux - Networking 2 12-02-2002 09:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:12 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration