Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Ramin Dousti <ramin@cannon.eng.us.uu.net>
To: Stephen Bylo <stephenbylo@yahoo.com.sg>
Cc: Ramin Dousti <ramin@cannon.eng.us.uu.net>, netfilter@lists.netfilter.org
Subject: Re: DNAT/SNAT & existing connections
Date: Thu, 17 Jul 2003 08:29:07 -0400	[thread overview]
Message-ID: <20030717122907.GA30482@cannon.eng.us.uu.net> (raw)
In-Reply-To: <20030717021443.65646.qmail@web13104.mail.yahoo.com>

On Thu, Jul 17, 2003 at 10:14:43AM +0800, Stephen Bylo wrote:

> If I want *existing* UDP connections to be diverted, I
> need to change both the NAT table *and* the connection
> tracking table, is this right? Can somebody tell me if
> this can be done with iptables?  Do I have to hack the
> code? I may do so if need be. Is there another NAT
> sollution out there that can do what I need?
> Is using a NAT to divert existing UDP streams
> technically possible?

I think one way of doing this is to reduce the conntrack timeout for
UDP to almost nihil so that you see the effect of adding 2 to the nat
immidiately. But in that case UDP returns would not benefit from the
implicit conntrack structure and you need to allow the return traffic
explicitly.

Ramin

> 
> Thanx for your help.
> Steve


  reply	other threads:[~2003-07-17 12:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-15 10:01 DNAT/SNAT & existing connections Stephen Bylo
2003-07-15 14:04 ` Ramin Dousti
2003-07-16  2:12   ` Stephen Bylo
2003-07-16  2:50     ` Ramin Dousti
2003-07-16  5:25       ` Stephen Bylo
2003-07-16 14:06         ` Ramin Dousti
2003-07-17  2:14           ` Stephen Bylo
2003-07-17 12:29             ` Ramin Dousti [this message]
2003-07-18  1:09               ` Stephen Bylo
2003-07-18 13:59                 ` Ramin Dousti

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=20030717122907.GA30482@cannon.eng.us.uu.net \
    --to=ramin@cannon.eng.us.uu.net \
    --cc=netfilter@lists.netfilter.org \
    --cc=stephenbylo@yahoo.com.sg \
    /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