From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Rabbitson Date: Thu, 25 Oct 2007 17:03:48 +0000 Subject: Re: [LARTC] One machine, two net feeds, outbound route selection Message-Id: <4720CC74.2090102@rabbit.us> List-Id: References: <59f980d60710241725p5ca9cca2ueb5edc12675f62e3@mail.gmail.com> In-Reply-To: <59f980d60710241725p5ca9cca2ueb5edc12675f62e3@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Ben Scott wrote: > Now, for the sake of knowledge, let us say that a piece of needed > software didn't have an option to bind to a specific interface. Would > it be possible to control the outgoing route/interface anyway, by > using iptables or some other mechanism external to the software? For > example, what if Sendmail didn't have a ClientPortOptions directive > (heh, I know, use Postfix, but work with me here)? > Unfortunately not easy without doing local NAT (from the local interface to another local interface). The problem lies in how the kernel sends packets without a specified source. I wrote an explanation some time ago: http://mailman.ds9a.nl/pipermail/lartc/2007q2/020941.html _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc