mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Brad Hards <bhards@bigpond.net.au>
To: root@chaos.analogic.com, Tomas Szepe <szepe@pinerecords.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: [OT] ipv4: how to choose src ip?
Date: Fri, 6 Dec 2002 07:56:31 +1100	[thread overview]
Message-ID: <200212060756.31469.bhards@bigpond.net.au> (raw)
In-Reply-To: <Pine.LNX.3.95.1021205152058.18105A-100000@chaos.analogic.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 6 Dec 2002 07:37, Richard B. Johnson wrote:
> > I'm not interested in rewriting the source address with netfilter based
> > on destination and/or service;  What I'm looking for is rather a way to
> > initiate two connections to the same destination host using the two
> > different source IP addresses.
>
> The simple answer is that if you need a specific IP address
> associated with a "multi-honed" host, that has only one interface,
> then something is broken. And you get to keep the pieces.

There are some reasons why you might like to use a specific address on a 
machine that is multi-homed, although normally the logic in the kernel works 
fine. I won't try to explain it in detail at this stage, but link-local is a 
personal favourite.

Probably all you want is to use the SO_BINDTODEVICE socket option.

Brad
- -- 
http://linux.conf.au. 22-25Jan2003. Perth, Aust. I'm registered. Are you?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9771/W6pHgIdAuOMRAjZGAKC8anD6rum/sEuYJRX2XZNEtEOG2gCdFBUq
SOK8RUP9Ub2hX1HGej9vxhU=
=KHOl
-----END PGP SIGNATURE-----


  reply	other threads:[~2002-12-05 21:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-05 19:00 Tomas Szepe
2002-12-05 20:37 ` Richard B. Johnson
2002-12-05 20:56   ` Brad Hards [this message]
2002-12-05 21:38   ` Tomas Szepe
2002-12-06  4:25   ` Ben Greear
2002-12-06  9:06     ` Andrew McGregor
2002-12-06 15:13   ` Richard B. Johnson
2002-12-05 20:58 ` Willy Tarreau
2002-12-05 21:39   ` Tomas Szepe
2002-12-06 15:27 ` Mark Frazer

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=200212060756.31469.bhards@bigpond.net.au \
    --to=bhards@bigpond.net.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=root@chaos.analogic.com \
    --cc=szepe@pinerecords.com \
    /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®