[<prev] [next>] [day] [month] [year] [list]
Message-ID: <AANLkTik7NTl3VfJ1Bj84crVZPLQCHrX79WSddzqP2nHM@mail.gmail.com>
Date: Fri, 11 Jun 2010 06:41:50 -0400
From: Andrew Lutomirski <luto@....edu>
To: netdev@...r.kernel.org
Subject: Source address selection vs. policy routing?
The docs seem rather vague
(http://linux-ip.net/html/routing-saddr-selection.html) and I'm about
to set up a system with two different internet connections, so I'll
ask here:
If I use policy routing (ip rule) based on the src selector and a
local application calls connect without first calling bind, how is the
source address selected? (Just reading the docs naively gives a
circular answer: the routing table is chosen based on source address
and then the source address is influenced by the src field on the
chosen route.)
Similarly, how does masquerade choose its source address?
I took a look at the code, but all the fast paths, slow paths, and
flow structures are a bit confusing to the uninitiated.
Thanks,
Andy
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists