[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130203223549.GA14927@achernar.madore.org>
Date: Sun, 3 Feb 2013 23:35:49 +0100
From: David Madore <david+ml@...ore.org>
To: netdev@...r.kernel.org
Cc: Lukas Tribus <luky-37@...mail.com>
Subject: Re: assigning an entire subnet of addresses to an interface
On Sun, Feb 03, 2013 at 11:00:57PM +0100, David Madore wrote:
> This is indeed, interesting, and I'm glad you pointed out this
> possibility, because it had escaped my radar. (Note that there are
> two slightly different things, though: the TPROXY iptables/ip6tables
> target which redirects packets to a local socket, and the IP-level
> IP_TRANSPARENT socket option which allows a user application to bind
> to an arbitrary address. The latter is closer to what I was asking.)
Another related and interesting IP-level socket option is IP_FREEBIND.
I suppose the different between IP_FREEBIND and IP_TRANSPARENT is that
the former does not cause any routing changes, but the net effect is
that, after the "ip -6 route add local 2001:db8:f00f::/48 dev lo"
command that I had contemplated, binding with IP_FREEBIND does allow
the socket to obtain packets destined to an arbitrary address inside
the subnet. Without requiring administrator privileges (of course,
they are required to run the ip route command).
But I'd still be happier if there were some way that required
absolutely no modification on the userland side after a few
administrative commands to make the prefix available.
--
David A. Madore
( http://www.madore.org/~david/ )
--
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