Re: Need urgent help on NAT/load sharing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx
http://www.macros.org.ua
ICQ: 29292281



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux