Linux IPTables load balancing with multiple DSL lines
I have the below structure in my linux box.
Note : My DSL lines are having DHCP IP's
I need to distributes the requests through all the DSL lines as round-Robin with IP tables or any open source solutions.
Also i need a option to stop sending requests if any DSL line not working..
Thanks a lot in advance for your help on this request.
I`m not sure, but I suppose it should look like this:
Thanks a lot friend.
Sorry i could not understand the second code.
Could you please give me details that second code will do?
According to man iptables that stuff could be used for balancing outgoing connections depending on bandwidth. It compares lines rates and marks packets if 1st line rate is greater than of the second one. But it's when all lines are working. I don't know whether it can be used for checking not working DSL line... I've never been asked to do that before... so cant say for sure... Sorry... It's obvious that you need to separate working IPs from not working with update option, and if there is no response, then packet should be forwarded to the next line... Firstly I thought to solve this with "-m recent" key...
Anyway the question is very interesting and I hope to find some time later to think about it. Post your solution if you'd find it before that :)
|All times are GMT -5. The time now is 07:49 PM.|