All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Surda <shurdeek@routehat.org>
To: netfilter-devel@lists.netfilter.org
Subject: Re: REDIRECT changes DST address of the packet
Date: Thu, 30 Jun 2005 12:11:24 +0200	[thread overview]
Message-ID: <2005530121124577@mail.routehat.org> (raw)
In-Reply-To: <Pine.LNX.4.62.0506301007180.22412@bizon.gios.gov.pl>

On Thu, 30 Jun 2005 10:08:55 +0200 (CEST) Krzysztof Oledzki <olenf@ans.pl>
wrote:

>> If I lose original DST address, how can I persist
>> that value in that packet.
>Please use getsockopt() with SO_ORIGINAL_DST.
Hehe you were faster than me :-).

Nari, if you don't understand how to do this, check out the source of some
transparent proxies (squid, p3scan) for examples (as Krzysztof said, grep for
SO_ORIGINAL_DST). I think it's straightforward, I even managed to reproduce this
in perl without using any C.

>Best regards,
> 				Krzysztof Olędzki
Yours sincerely,
Peter

  reply	other threads:[~2005-06-30 10:11 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-30  7:27 REDIRECT changes DST address of the packet Venkata Narayana
2005-06-30  8:08 ` Krzysztof Oledzki
2005-06-30 10:11   ` Peter Surda [this message]
2005-07-02  4:15     ` Venkata Narayana
2005-06-30 11:09 ` Jan Engelhardt
2005-07-25  4:54   ` Venkata Narayana
2005-07-25 23:59     ` Patrick McHardy
2005-07-26  0:20       ` Patrick McHardy
2005-07-26  8:27         ` Venkata Narayana
2005-07-26  9:31         ` KOVACS Krisztian
2005-07-26  9:51           ` Patrick McHardy
2005-07-26 10:06             ` KOVACS Krisztian
2005-08-01 14:24             ` Venkata Narayana
2005-07-23  4:55 ` Rate limit Venkata Narayana
2005-07-23  7:17   ` Netfilter Hook Venkata Narayana
2005-07-23 11:14   ` Rate limit Jan Engelhardt
2005-07-25  5:55 ` UDP Transparent Proxy Venkata Narayana
  -- strict thread matches above, loose matches on Subject: below --
2005-06-30  7:29 REDIRECT changes DST address of the packet Venkata Narayana
2005-06-30  7:46 ` George Alexandru Dragoi
2005-07-05 15:46 ` Jason Lunz
2005-06-30  7:07 Venkata Narayana

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=2005530121124577@mail.routehat.org \
    --to=shurdeek@routehat.org \
    --cc=netfilter-devel@lists.netfilter.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.