All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jesse Gordon" <jesseg@nikola.com>
To: Nikolai Georgiev <voyager123bg@gmail.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: Unmatchable packet?
Date: Tue, 22 Nov 2005 17:46:36 -0800	[thread overview]
Message-ID: <078401c5efcf$bd9eb210$5e00800a@printserver> (raw)
In-Reply-To: 4383BBE0.2020504@gmail.com

----- Original Message ----- 
From: "Nikolai Georgiev" <voyager123bg@gmail.com>
To: "Jesse Gordon" <jesseg@nikola.com>
Cc: <netfilter@lists.netfilter.org>
Sent: Tuesday, November 22, 2005 4:46 PM
Subject: Re: Unmatchable packet?


> Jesse Gordon wrote:
>
>> ----- Original Message ----- From: "Jesse Gordon" <jesseg@nikola.com>
>>
>>> My box is running a TCP service. When another box tries to my box, my
>>> box
<snip>
>>>
>>> Should I expect such a feat to be possible?
>>>
>>> Thanks!
>>>
>>> -Jesse
>>>
>>>
>>>
>>
> I think you are looking for DNAT. Yep, you want to make DNAT. Lets
> suppose you have 3 machines: A,B,C; A is behind B and you are on C. You
> would want to make a DNAT rule on B to A in order to initiate
> connections from C to A...

Thanks for your response!

You are correct as to how I would go about forwarding ports to publish an 
internal server -- but forwarding ports isn't my goal.

Incidently I didn't explain well I guess.

Note that what I'm trying to describe is not a normal thing to do; It's not 
something that will make sense. Once you understand what I'm trying to say, 
you'll want to ask me "But why on earth would you even want to do that?" (My 
goal does have a use in the real world, but the real world is a much more 
complicated scenerio to set up.)

I actually want to rewrite the source IP of TCP packets that exit a given 
ethernet card -- even (especially) if they are generated as responses to 
incoming connections to the box.

 Lets say I have 2 machines: S, and C;
S is the server, and I am on C[lient]. Both machines are sitting on a simple 
isolated flat LAN.

Normally, when C connects to S, S replies with it's own source address. This 
is normal operation, and is what I want to alter.
I wish for the replies from S to be to reach C with an arbitrarly assigned 
source address.
(And I want the source address rewrite to be performed inside S)

I hope I was more concise this time.

Thanks again!

-Jesse

>
>>
>>
>>
>
> 




  reply	other threads:[~2005-11-23  1:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-22 20:58 Unmatchable packet? Jesse Gordon
2005-11-22 21:28 ` Jesse Gordon
2005-11-23  0:46   ` Nikolai Georgiev
2005-11-23  1:46     ` Jesse Gordon [this message]
2005-11-23  6:05       ` Philip Craig
2005-11-23  7:03         ` Jesse Gordon
2005-11-23  7:19           ` Philip Craig
2005-11-24 11:48             ` Jesse Gordon
2005-11-24 14:29               ` Robert Nichols
2005-11-25  1:11               ` Philip Craig
2005-11-28 19:11                 ` Jesse Gordon

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='078401c5efcf$bd9eb210$5e00800a@printserver' \
    --to=jesseg@nikola.com \
    --cc=netfilter@lists.netfilter.org \
    --cc=voyager123bg@gmail.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 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.