All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bryan Rittmeyer <bryan@ixiacom.com>
To: linux-kernel@vger.kernel.org
Subject: conducting TCP sessions with non-local IPs
Date: Tue, 06 Mar 2001 12:30:58 -0800	[thread overview]
Message-ID: <3AA54902.AFF8550@ixiacom.com> (raw)

Hello linux-kernel,

Is there any way to conduct TCP sessions (IE have a userland process
connect out, or accept connections) using non-local IPs? By "non-local"
I just mean IPs that aren't assigned to an interface, but do fall into
the network range of a running interface (so netmask, gateway, etc are
"known").

For example, I want to bring up an interface for 10.0.0.0/255.255.255.0
and assign it IP 10.0.0.1 Then, I want a process to accept TCP
connections on, say, 10.0.0.2:1234 or 10.0.0.200:4567 even though these
IPs are not assigned to any interface. Also, I want to be able to
connect out with source IP 10.0.0.2 or 10.0.0.200, etc. I will need to
be able to do this for potentially all IPs in the network, so bringing
up a new IP-aliased interface (eth0:0, eth0:1, etc) is not feasible.
Compound that with the fact that I could need to do this for many
networks, and clearly doing an "ifconfig up" on all possible IPs is not
a very efficient option.

I have tried enabling "ip_nonlocal_bind" and that prevents a bind call
to a non-local IP from failing. However, I don't think that's sufficient
to conduct full TCP/IP sessions from any IP on the network.

This is a really wierd question, but I'm curious if its possible with
current 2.4.X kernels and, if it's not, how difficult would it be to add
support for. What areas of the network stack would require modification?

Thanks!

Regards,

Bryan Rittmeyer

-- 
Bryan Rittmeyer
mailto:bryan@ixiacom.com
Ixia Communications
26601 W. Agoura Rd.
Calabasas, CA 91302

             reply	other threads:[~2001-03-06 20:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-06 20:30 Bryan Rittmeyer [this message]
2001-03-06 22:05 ` conducting TCP sessions with non-local IPs Gregory Maxwell
2001-03-07  1:46   ` Mike Fedyk
2001-03-07  1:55     ` Gregory Maxwell
2001-03-07  2:15     ` Jeremy Jackson
  -- strict thread matches above, loose matches on Subject: below --
2001-03-07  3:59 Bryan Rittmeyer
2001-03-07  4:00 Bryan Rittmeyer
2001-03-07  6:50 ` David

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=3AA54902.AFF8550@ixiacom.com \
    --to=bryan@ixiacom.com \
    --cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.