* Need urgent help on NAT/load sharing
@ 2004-02-05 17:24 Saeed Zamani
2004-02-06 3:36 ` William Stearns
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Saeed Zamani @ 2004-02-05 17:24 UTC (permalink / raw)
To: netfilter
Hi all,
I am new to list and have a basic nat question on Redhat Linux 9. I
have to translate my local IP ( 192.168.1.0/24 ) to two different public
IP given by two different ISP ( IPE1 & IPE2 ) at a specified rate. For
example for every 4 received packet, one have to translate to IPE1 and
other three to IPE2. I need this for load balacing the internet traffic
between two isp. At the end, it is excellent if there is an option that
If one the ISP gateway is dead, all packets have to translate to other
public IP. Please help me.
Thanks,
Saeed Zamani,
Technical Manager,
Concept FZ LLC.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Need urgent help on NAT/load sharing
2004-02-05 17:24 Need urgent help on NAT/load sharing Saeed Zamani
@ 2004-02-06 3:36 ` William Stearns
2004-02-06 7:51 ` Olexandr O. Galay
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: William Stearns @ 2004-02-06 3:36 UTC (permalink / raw)
To: Saeed Zamani; +Cc: ML-netfilter, William Stearns
Good morning, Saeed,
On Thu, 5 Feb 2004, Saeed Zamani wrote:
> I am new to list and have a basic nat question on Redhat Linux 9. I
> have to translate my local IP ( 192.168.1.0/24 ) to two different public
> IP given by two different ISP ( IPE1 & IPE2 ) at a specified rate. For
> example for every 4 received packet, one have to translate to IPE1 and
> other three to IPE2. I need this for load balacing the internet traffic
> between two isp. At the end, it is excellent if there is an option that
> If one the ISP gateway is dead, all packets have to translate to other
> public IP. Please help me.
I don't know the answer off the top of my head, but you might want
to take a look at the Linux Advanced Routing and Traffic Control HOWTO at
http://www.lartc.org/ .
Cheers,
- Bill
---------------------------------------------------------------------------
"All programs evolve until they can send email."
-- Richard Letts
"Except Microsoft Exchange."
-- Art
(found on the Snort web site)
--------------------------------------------------------------------------
William Stearns (wstearns@pobox.com). Mason, Buildkernel, freedups, p0f,
rsync-backup, ssh-keyinstall, dns-check, more at: http://www.stearns.org
--------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Need urgent help on NAT/load sharing
2004-02-05 17:24 Need urgent help on NAT/load sharing Saeed Zamani
2004-02-06 3:36 ` William Stearns
@ 2004-02-06 7:51 ` Olexandr O. Galay
2004-02-06 10:29 ` Marc Fargas
2004-02-06 12:58 ` Alexis
3 siblings, 0 replies; 5+ messages in thread
From: Olexandr O. Galay @ 2004-02-06 7:51 UTC (permalink / raw)
To: netfilter
Hello, Saeed!
Replying to your letter:
S> Hi all,
S> I am new to list and have a basic nat question on Redhat Linux 9. I
S> have to translate my local IP ( 192.168.1.0/24 ) to two different public
S> IP given by two different ISP ( IPE1 & IPE2 ) at a specified rate. For
S> example for every 4 received packet, one have to translate to IPE1 and
S> other three to IPE2. I need this for load balacing the internet traffic
S> between two isp. At the end, it is excellent if there is an option that
S> If one the ISP gateway is dead, all packets have to translate to other
S> public IP. Please help me.
S> Thanks,
S> Saeed Zamani,
S> Technical Manager,
S> Concept FZ LLC.
I think, you can balance when you are connecting to another ports
So, if you are connecting to port 80, you can NAT packets to IPE1, and
another packets to IPE2
iptables -t nat -A POSTROUTING -p tcp --dport 80 -j SNAT
--to-destination ipe1.ip.address
iptables -t nat -A POSTROUTING -j SNAT --to-destination
ipe2.ip.address
--
Best Regards, Saeed!
Friday, February 6, 2004, 9:49
Olexandr O. Galay
mailto:root@e-mail.te.ua
http://www.macros.org.ua
ICQ: 29292281
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Need urgent help on NAT/load sharing
2004-02-05 17:24 Need urgent help on NAT/load sharing Saeed Zamani
2004-02-06 3:36 ` William Stearns
2004-02-06 7:51 ` Olexandr O. Galay
@ 2004-02-06 10:29 ` Marc Fargas
2004-02-06 12:58 ` Alexis
3 siblings, 0 replies; 5+ messages in thread
From: Marc Fargas @ 2004-02-06 10:29 UTC (permalink / raw)
To: netfilter
The Linux Advanced Routing Howto makes a point on it, take a look at
www.lartc.org specifically:
http://lartc.org/howto/lartc.rpdb.multiple-links.html
You'll only have to change the weight on the lines. Also note that you can
onlky balance outgoing connections that way, not inbound ones.
Hope this helps you ;)
-----Mensaje original-----
De: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org] En nombre de Saeed Zamani
Enviado el: jueves, 05 de febrero de 2004 18:25
Para: netfilter@lists.netfilter.org
Asunto: Need urgent help on NAT/load sharing
Hi all,
I am new to list and have a basic nat question on Redhat Linux 9. I
have to translate my local IP ( 192.168.1.0/24 ) to two different public
IP given by two different ISP ( IPE1 & IPE2 ) at a specified rate. For
example for every 4 received packet, one have to translate to IPE1 and
other three to IPE2. I need this for load balacing the internet traffic
between two isp. At the end, it is excellent if there is an option that
If one the ISP gateway is dead, all packets have to translate to other
public IP. Please help me.
Thanks,
Saeed Zamani,
Technical Manager,
Concept FZ LLC.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Need urgent help on NAT/load sharing
2004-02-05 17:24 Need urgent help on NAT/load sharing Saeed Zamani
` (2 preceding siblings ...)
2004-02-06 10:29 ` Marc Fargas
@ 2004-02-06 12:58 ` Alexis
3 siblings, 0 replies; 5+ messages in thread
From: Alexis @ 2004-02-06 12:58 UTC (permalink / raw)
To: netfilter
you need iproute2 to use both providers links.
----- Original Message -----
From: "Saeed Zamani" <szamani@concept.ae>
To: <netfilter@lists.netfilter.org>
Sent: Thursday, February 05, 2004 2:24 PM
Subject: Need urgent help on NAT/load sharing
> Hi all,
> I am new to list and have a basic nat question on Redhat Linux 9. I
> have to translate my local IP ( 192.168.1.0/24 ) to two different public
> IP given by two different ISP ( IPE1 & IPE2 ) at a specified rate. For
> example for every 4 received packet, one have to translate to IPE1 and
> other three to IPE2. I need this for load balacing the internet traffic
> between two isp. At the end, it is excellent if there is an option that
> If one the ISP gateway is dead, all packets have to translate to other
> public IP. Please help me.
> Thanks,
> Saeed Zamani,
> Technical Manager,
> Concept FZ LLC.
>
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-02-06 12:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-05 17:24 Need urgent help on NAT/load sharing Saeed Zamani
2004-02-06 3:36 ` William Stearns
2004-02-06 7:51 ` Olexandr O. Galay
2004-02-06 10:29 ` Marc Fargas
2004-02-06 12:58 ` Alexis
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.