Skip to contentSkip to conversation

2 ISP NAT configuration

DISCUSSION Alok Nath Upadhyay 2 participants 2 messages Jul 29, 2004 – Jul 30, 2004

lore
Share & tools
lore
#0 lore raw

dear guillaume,
hi.
i am currently working on the same kind of problem. i have three ISP links for connecting to the internet. 2 of these links have dynamic address and remaining one has static address. Now i wanted all of my LAN traffic to these 3 links simultaneously. i.e. in load balancing mode while keeping all links buzzing with traffic. i found a site whih was very useful for me. this is www.linux.com.lb. in the howto section there is a load balancing howto. moreover there is a patch available with netfilter at official site www.netfilter.org. this patch is named as random patch and i am using it to distribute the traffic as 33/33/33 percentagle of the total traffic on various ISP links. try it and i hope your problem will be resolved.

Alok Nath Upadhyay
Suntech (OSM) Team
PC Solutions (P) Limited
12, Sant Nagar, East of Kailash
New Delhi - 110 065.
Tel.: +91-11-2621 3355 / 2621 7766 / 2688 4433 (Ext.: 51) Fax : +91-11-647 6822

--- guillaume <[email protected]> wrote:
Dear All netfilter users and developpers,

This software is an amazing software,
We are are very happy of this solution
for our office.

Now, I need some help to improve our network:

Our office is based in Vietnam, and in this country (for the moment) all internet connections are unstable.

We currently use an ISP with a (slow) connection, but providing real static IP address (6). We want to add a second ISP to our office with non static IP Address. They provide us also a modem/router for NAT.

We already install a GNU/Debian Router with netfiler support (2.6 kernel) in order to manage our first ISP link.

We would like to add a network card in this router and "loadbalance" our internet connection between those two ISPs.

The problem is that some of our internal IP need to be link to a real external IP on the first provider only (For VPN connections).

Is it possible with netfilter to link some internal IP to a "load balancing" between 2 ISPs and some other on just one of those ISP ?

Is there a possibility to detect a "down" line and to use automatically the second line for all our internals IP ?

How can I manage the differents bandwith with "load balancing" ( I mean, my first ISP average is something around 64 kbps and my second is 512
kpbs: How can I said to net filter 20% on this line and 80% on this line)

Is there How to or Dosumentation for this on 2.6 kernel ?

Thank you in advance for your help,

Guillaume

#1 lore raw

Dear Alok (is it your first name ?),

Thank you so much for this link, It will be very useful for me. I'am going to test it ASAP. I currently download the pach.

Do you know if there is a way to detect a down connection ? I am currently using icpld, do I have to build a script to redirect all on the other connection when the first is down ?

Thank you so much,
Guillaume

Quoted 59 lines · Alok Nath Upadhyay

dear guillaume,
hi.
i am currently working on the same kind of problem. i have three ISP links for connecting to the internet. 2 of these links have dynamic address and remaining one has static address. Now i wanted all of my LAN traffic to these 3 links simultaneously. i.e. in load balancing mode while keeping all links buzzing with traffic. i found a site whih was very useful for me. this is www.linux.com.lb. in the howto section there is a load balancing howto. moreover there is a patch available with netfilter at official site www.netfilter.org. this patch is named as random patch and i am using it to distribute the traffic as 33/33/33 percentagle of the total traffic on various ISP links. try it and i hope your problem will be resolved.

Alok Nath Upadhyay
Suntech (OSM) Team
PC Solutions (P) Limited
12, Sant Nagar, East of Kailash
New Delhi - 110 065.
Tel.: +91-11-2621 3355 / 2621 7766 / 2688 4433 (Ext.: 51) Fax : +91-11-647 6822

--- guillaume <[email protected]> wrote:
Dear All netfilter users and developpers,

This software is an amazing software,
We are are very happy of this solution
for our office.

Now, I need some help to improve our network:

Our office is based in Vietnam, and in this country (for the moment) all internet connections are unstable.

We currently use an ISP with a (slow) connection, but providing real static IP address (6). We want to add a second ISP to our office with non static IP Address. They provide us also a modem/router for NAT.

We already install a GNU/Debian Router with netfiler support (2.6 kernel) in order to manage our first ISP link.

We would like to add a network card in this router and "loadbalance" our internet connection between those two ISPs.

The problem is that some of our internal IP need to be link to a real external IP on the first provider only (For VPN connections).

Is it possible with netfilter to link some internal IP to a "load balancing" between 2 ISPs and some other on just one of those ISP ?

Is there a possibility to detect a "down" line and to use automatically the second line for all our internals IP ?

How can I manage the differents bandwith with "load balancing" ( I mean, my first ISP average is something around 64 kbps and my second is 512 kpbs: How can I said to net filter 20% on this line and 80% on this line)

Is there How to or Dosumentation for this on 2.6 kernel ?

Thank you in advance for your help,

Guillaume