From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Gaiarin Date: Thu, 17 Dec 2015 08:43:30 +0000 Subject: Re: setup network priority then routing to multiple providers Message-Id: <20151217084330.GD3328@sv.lnf.it> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: lartc@vger.kernel.org Mandi! SteamedFish In chel di` si favelave... > I don’t have a clue how to set this up. You have to mix two things (really, three): 1) http://lartc.org/howto/lartc.rpdb.multiple-links.html, as you correctly say. 2) connmark save/restore, eg the ability to ''save'' iptables marks between connection, and obviously build your rules of iptables to mark packets. My hint: use a mask to distinguish marks used for routing from other marks if you use just use that. 3) mark-based routing, eg using rules like: ip rule add fwmark $MARK/$MASK table $NAME Note that this is a ''route based balancing'', not a real packet based balancing, but works without needing the ISP/operator help. -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.sv.lnf.it/ Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/25/index.php/component/k2/item/123 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)