On Tue, 2013-07-16 at 00:23 -0300, Ricardo Klein wrote: > I think IPRoute is the one who should make the magic, but, if anyone > can help me here, even pointing me in the right way.... > > I know I can split my 2 connections in a static way, making lan subnet > A go trough uplink 1 and lan subnet B trough uplink2, but, there is > any way to make this "automatic" like "Hey iproute2, use the least > used uplink to let users fly" > > I know, if user A is using uplink1 it should go trough that link until > the end of the navigation, but, later in new requests he should be > able to start the connection using uplink 2 if uplink 1 is starving. > > Is there any way to reach that with Linux? AFAIK, there is no "automagic" way of doing exactly what you want. However, I have had good experience with just randomly splitting new connections between 2 uplinks (or more accurately splitting every other new connection between each link). Depending on your number of users, as a general rule this will share equally between links (certainly a lot better than doing it between subnets). This is a tutorial I have used: http://www.sysresccd.org/Sysresccd-Networking-EN-Iptables-and-netfilter-load-balancing-using-connmark And this is my project: http://andybev.com/index.php/PortalShaper Andy -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html