LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Problems doing load balance (https://www.linuxquestions.org/questions/linux-networking-3/problems-doing-load-balance-819704/)

landysaccount 07-13-2010 09:43 PM

Problems doing load balance
 
Hello.

I have two dsl connections 5Mbps each wich I use on our network in order to balance our traffic. I'm using the techniques from a tutorial at: http://blog.taragana.com/index.php/a...il-on-failure/ which uses a script that checks if a line is active or not... Well, I noticed that all the customers are now complaining that their messenger keeps disconecting and reconnecting. That's probably due to packets going in different dsl lines from time to time. I tested without using the gwping script but it still doing the same.

I would like to know if there's a way to have a connection from a customer to internet keep the same trajectory, for example: If I make an ssh connection to a remote server to alway use the same dsl line it went out through? Can this be done with iptables?

Any idea on how can I improve or fix the inconvenience we're currently having?

10.0.0.0/24 dev eth0 proto kernel scope link src 10.0.0.254
10.10.10.0/24 dev eth2 proto kernel scope link src 10.10.10.2
172.16.0.0/16 dev eth1 proto kernel scope link src 172.16.0.1
default
nexthop via 10.0.0.1 dev eth0 weight 1
nexthop via 10.10.10.1 dev eth2 weight 1


Thanks in advanced for your help.

andywebsdale 07-14-2010 04:25 PM

If you look at the article you link to, there's a link to an earlier article. There's loads of comments at the end, & people are discussing this very issue. The author mentions using Shorewall ( a firewall/router) for preferential routing in the 2nd comment. Various solutions are suggested, including firewall(or router) configuration, packet marking, scripts and so on. (I often find the comments after technical blogs are as useful to me as the article itself)
Regards, Andy


All times are GMT -5. The time now is 07:35 AM.