From: Kyle Moffett <mrmacman_g4@mac.com>
To: djones@rossove.com
Cc: LKML Kernel <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
netdev@vger.kernel.org
Subject: Re: Scaling Max IP address limitation
Date: Sun, 24 Jun 2007 15:08:37 -0400 [thread overview]
Message-ID: <D6003DDE-0C36-437B-B70A-D422DFE153D0@mac.com> (raw)
In-Reply-To: <467EA7C1.4080006@rossove.com>
On Jun 24, 2007, at 13:20:01, David Jones wrote:
> Hi, I am trying to add multiple IP addresses ( v6 ) to my FC7 box
> on eth0. But I am hitting a max limit of 4000 IP address . Seems
> like there is a limiting variable in linux kernel (which one? )
> that prevents from adding more IP addresses than 4096. What do I
> need to change in Linux kernel ( and then recompile ) to be able
> to add more IP addresses than 4K addresses per system? ..
Do you really need that many IP addresses? When somebody finally
gets around to implementing REDIRECT support for ip6tables then you
could just redirect them all to the same port on the local system.
Then with a happy little getsockopt() you can find out the original
IP address for use in whatever application you are running. That's
likely to be a thousand times more efficient than binary searching
through 5000+ mostly-sequential IP addresses per received packet.
<Unrelated wishful thinking>
I keep having hopeful dreams that one day netfilter will grow support
for cross-protocol NAT (IE: NAT a TCPv4 connection over TCPv6 to the
IPv6-only local web server, or vice versa). It would seem that would
require a merged "xtables" program.
Having routing table operations, IPsec transformations, etc just be
another step in the firewall rules would also be useful. It would be
handy to be able to "-j ROUTE", then "-j IPSEC", then "-j ROUTE"
again, to re-route the now-encapsulated IPsec packets to their proper
destination. That would also eliminate the sort-of-hacky problems
with destination network interface in the bridging code: "-j BRIDGE"
might be another step in the process, and conceivably you could have
independent bridge MAC tables too. You'd probably also want "-j
BRIDGE_TEST" and "-j ROUTE_TEST" to compute the output network
interface without actually modifying the addresses.
That would also appear to get rid of the need for all tables other
than "filter" and all predefined chains other than "INPUT" and
"OUTPUT". Default rules would be these:
nettables -A INPUT -j CONNTRACK
nettables -A INPUT -j LOCALMATCH
nettables -A INPUT --for-this-host -j ACCEPT
nettables -A INPUT -j OUTPUT
nettables -A OUTPUT -j ROUTE
nettables -A OUTPUT -j TRANSMIT
Forwarded packets would be sent right into the OUTPUT chain from the
INPUT chain by appropriate rules. Instead of turning off
ip_forwarding in /proc/sys, you could just change the "-j OUTPUT" in
the INPUT chain to "-j ACCEPT", and it would be impossible to forward
packets. I can't see any functionality that we have today which a
mechanism like this wouldn't support, aside from the fact that it
hands the admin a loaded nuclear missile aimed at their foot
(Flushing the INPUT chain would basically be analogous to committing
network suicide, although there exist other ways to do that with
netfilter today.
</Unrelated wishful thinking>
Cheers,
Kyle Moffett
next prev parent reply other threads:[~2007-06-24 19:08 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-24 17:20 David Jones
2007-06-24 18:02 ` Andrew Morton
2007-06-24 19:59 ` Robert Iakobashvili
2007-06-25 0:03 ` David Jones
2007-06-25 8:47 ` Robert Iakobashvili
2007-06-25 9:30 ` Jan Engelhardt
2007-06-25 9:41 ` Robert Iakobashvili
2007-06-25 12:38 ` Jan Engelhardt
2007-06-25 12:44 ` Robert Iakobashvili
2007-06-25 17:26 ` David Jones
[not found] ` <7e63f56c0706260756q504bc4c2sa8905fbaeed4308d@mail.gmail.com>
2007-06-26 14:58 ` Robert Iakobashvili
2007-06-24 20:19 ` Robert Iakobashvili
2007-06-24 19:08 ` Kyle Moffett [this message]
2007-06-24 19:54 ` David Stevens
2007-06-24 19:58 ` Jan Engelhardt
2007-06-24 20:44 ` david
2007-06-24 20:52 ` Jan Engelhardt
2007-06-24 21:51 ` Kyle Moffett
2007-06-25 9:36 ` Patrick McHardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D6003DDE-0C36-437B-B70A-D422DFE153D0@mac.com \
--to=mrmacman_g4@mac.com \
--cc=akpm@linux-foundation.org \
--cc=djones@rossove.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®