From: Patrick Schaaf Subject: Re: policy routing on locally generated packets Date: Mon, 25 Aug 2003 21:07:51 +0200 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <20030825190750.GH423@oknodo.bof.de> References: <1061813400.1289.36.camel@drs0.manchotnetworks.net> <3F4A01BE.1090805@trash.net> <3F4A2795.3030805@trash.net> <1061837608.1333.9.camel@drs0.manchotnetworks.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Patrick McHardy , netfilter-devel Return-path: To: "lartc@manchotnetworks.net" Content-Disposition: inline In-Reply-To: <1061837608.1333.9.camel@drs0.manchotnetworks.net> Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org > This would provide a way to fiddle with the packet properties without > the neccesity of changing bind() in a specific application ... or would > it? Regarding this path, two comments: 1) you can most easily LD_PRELOAD a small bit of library which replaces bind() and friends, and does the thing you want. 2) the chbind functionality of http://www.solucorp.qc.ca/miscprj/s_context.hc is a somewhat more / somewhat less intrusive method. What about mangle/PREROUTING? Doesn't it / shouldn't it sit before a routing decision for locally generated packets? best regards Patrick