Linux netfilter/iptables split access with multiple ISPs | Linux Today

Linux netfilter/iptables split access with multiple ISPs

Written By
Web Webster
Web Webster
Mar 3, 2010

[ Thanks to Adam
Palmer
for this link. ]

“Quite a while back, I posted article
http://www.adamsinfo.com/extending-tc-and-iproute2-linux-routing-split-access-multiple-uplinks-multiple-isps-iptables-masquerading/

“The article focuses on using the standard iproute2 tool to
allow the box to attempt to balance traffic over multiple uplinks
with multiple default routes. While relatively easy to set up, it
has a few problems:

1. Routes are cached, meaning that once the balancer has decided
on a route to a certain IP for the first time, it will continue to
use this route for a while.
2. There is no real control over which packets end up over which
route, other than some basic metrics such as source IP and
destination IP.
3. Certain long established TCP connections such as MSN or IRC die
after the route cache expires and the packets begin being routed
over the other connection. Logically, there should be a fix for
this or theres a bug in my script, either way I gave up digging
after a while, and just forced connections to given IPs over the
same route each time.

“I’ve recently decided to give this a go in netfilter purely. My
environment is a router with a number of LAN devices, with eth0
being the LAN interface (192.168.1.0/24), while eth1 and eth2 are
separate ISP links with public IPs.”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.