lkml.org 
[lkml]   [2002]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH] new sysctl net/ipv4/ip_default_bind
On Thu, Jan 17, 2002 at 11:27:13PM +0100, Mark Frazer wrote:
> The following patch applies against 2.4.17 and creates a new sysctl
> node /proc/sys/net/ipv4/ip_default_bind. The purpose of the control
> is to allow a default IP address to be selected by the sysadmin for
> outgoing connections. That is, for sockets which do not bind(2) the
> local end of the socket before calling connect(2).

You can already do that using the 'from' attribute in iproute2
aka prefered source address per route. Just set it for your default
route.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:15    [W:0.039 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site