Solved

linux as loabalance

Posted on 2006-07-06
2
243 Views
Last Modified: 2010-04-20
can linux work as load balance  My company have 2 adsl company connect to in ternet can i PUt  2 adsl company in to one linux box then distribute inter net to 10 computers to computer in my office
0
Comment
Question by:teera
2 Comments
 
LVL 16

Accepted Solution

by:
xDamox earned 225 total points
ID: 17048987
Hi,

Yes Linux can be a load balancer:

if you want to balance the load to the 3 addresses 10.0.0.5, 10.0.0.6 and 10.0.0.7, then you can do as follows :

# iptables -t nat -A POSTROUTING -o eth0 -m nth --counter 7 --every 3 --packet 0 -j SNAT --to-source 10.0.0.5
# iptables -t nat -A POSTROUTING -o eth0 -m nth --counter 7 --every 3 --packet 1 -j SNAT --to-source 10.0.0.6
# iptables -t nat -A POSTROUTING -o eth0 -m nth --counter 7 --every 3 --packet 2 -j SNAT --to-source 10.0.0.7

Of course you need to compile the nth extention module into the iptables.
0
 
LVL 22

Assisted Solution

by:pjedmond
pjedmond earned 225 total points
ID: 17062393
You could also look at a number of the software solutions for this type of thing which would include 'fail-over' etc:

http://lcic.org/load_balancing.html

http://linas.org/linux/load.html

also has some useful info.

(   (()
(`-' _\
 ''  ''
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now