load balancing

Taking care of your Linux box.

load balancing

Postby cyph3r » Sun Mar 28, 2010 3:49 pm

eth1 = Wan1 (Fiber)
eth2 = Wan2 (DSL)
eth0 = Lan


mujha load balancing karni hai web sites ki,
eth2(dsl) is per mai youtube.com or facebook.com chalana chahta hoon,
or eth1 per all site except facebook and youtube.com


how can i do this ????
Regards,
Mehmood Ahmed |cyph3r|
(+92)345-2835810
E-mail:cyph3r.07@hotmail.com
cyph3r
Lance Naik
 
Posts: 46
Joined: Tue Jan 22, 2008 1:27 am
WLM: cyph3r.07@hotmail.com

Postby AamirAkbar » Mon Mar 29, 2010 1:55 pm

You mean to use all three in parallel.
Br
Aamir(MS iiu islambad.)
Back Office Engineer
http://www.nsn.com/
(+ 92 345 200 1132)
AamirAkbar
Lance Naik
 
Posts: 33
Joined: Mon Sep 09, 2002 12:53 am
Website: http://www.nsn.com/
WLM: aamirakbar@hotmail.com
Yahoo Messenger: aamirakbarmughal@yahoo.com
Location: Islamabad

Postby cyph3r » Thu Apr 01, 2010 5:08 pm

yes parallel
Regards,

Mehmood Ahmed |cyph3r|

(+92)345-2835810

E-mail:cyph3r.07@hotmail.com
cyph3r
Lance Naik
 
Posts: 46
Joined: Tue Jan 22, 2008 1:27 am
WLM: cyph3r.07@hotmail.com

Postby compucated » Tue Apr 06, 2010 10:15 pm

4.2. Routing for multiple uplinks/providers
http://lartc.org/howto/lartc.rpdb.multiple-links.html
compucated
Naik
 
Posts: 75
Joined: Mon Oct 13, 2003 5:06 am
WLM: compucated(at)msn(dot)com
Yahoo Messenger: activatedpower(at)yahoo(dot)com
Location: Karachi, Pakistan

Postby syedbilalmasaud » Sun Apr 11, 2010 5:56 pm

you need to do policy based routing with ip route and define the destications for youtube and facebook or whatever you want it will go from DSL interface and rest of all traffic will go from fiber, for IP route please visit as above http://www.lrtc.org
Cheers :)

:D B I L A L :D
syedbilalmasaud
Naib Subedar
 
Posts: 347
Joined: Thu Aug 18, 2005 9:25 am
WLM: bm1984@hotmail.com
Yahoo Messenger: syedbilalmasaud@yahoo.com
Location: Attock

Postby cyph3r » Tue Apr 13, 2010 10:52 am

yes bilal
i want to do this ,as u say !!!!
and give me example
but ur link is wrong ,
plzz correct it :)
Regards,

Mehmood Ahmed |cyph3r|

(+92)345-2835810

E-mail:cyph3r.07@hotmail.com
cyph3r
Lance Naik
 
Posts: 46
Joined: Tue Jan 22, 2008 1:27 am
WLM: cyph3r.07@hotmail.com

Postby syedbilalmasaud » Tue Apr 13, 2010 11:47 am

Cheers :)



:D B I L A L :D
syedbilalmasaud
Naib Subedar
 
Posts: 347
Joined: Thu Aug 18, 2005 9:25 am
WLM: bm1984@hotmail.com
Yahoo Messenger: syedbilalmasaud@yahoo.com
Location: Attock

Postby mudasir » Sun Apr 18, 2010 2:32 pm

AOA,

Dear if even you are able to set routing table properly, how will you differ the traffic, you should know complete IP's of both facebook and YouTube.

You can use content filtering with IPTABLES, it might be able to help you out. SET MARK on every packet containing content facebook and youtube, it might work.

Have not tried it yet, but it might.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
mudasir
Captain
 
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Website: http://www.crystalnetworks.org
Location: Dubai

Postby cyph3r » Mon Apr 19, 2010 3:42 am

nice !!

can u plzz give me some examples ????
i havent try this !
Regards,

Mehmood Ahmed |cyph3r|

(+92)345-2835810

E-mail:cyph3r.07@hotmail.com
cyph3r
Lance Naik
 
Posts: 46
Joined: Tue Jan 22, 2008 1:27 am
WLM: cyph3r.07@hotmail.com

Postby mudasir » Mon Apr 19, 2010 5:11 am

AOA,

Something like this might work

Code: Select all

iptables -A INPUT -i $NETWORK -m string --string "facebook" -j MARK --set-mark 1
iptables -A INPUT -i $NETWORK -m string --string "youtube" -j MARK --set-mark 2


Then route specific fwmark to specific routing table.
Again it is just an example, i have not tried it anywhere, you can use google for this.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
mudasir
Captain
 
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Website: http://www.crystalnetworks.org
Location: Dubai

Postby nasacis » Thu May 06, 2010 12:06 pm

use PFSense
Nafees Ahmed
Cell: +92.300.8653568
UAN: 041-111432432
Nexlinx Faisalabad
www.nexlinx.net.pk
nafees29@gmail.com
nasacis
Battalion Havaldaar Major
 
Posts: 269
Joined: Sat Dec 13, 2003 3:58 pm
ICQ: 22342780
Website: http://www.homepages.com.pk/nafeesahmed
WLM: nafees21
Yahoo Messenger: n_ahmad.rm
Location: Faisalabad


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 0 guests

cron