All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Huhardeaux <tech@tootai.net>
To: Netfilter list <netfilter-devel@vger.kernel.org>
Subject: DNAT and source IP
Date: Tue, 20 Oct 2009 10:16:23 +0200	[thread overview]
Message-ID: <4ADD71D7.7090502@tootai.net> (raw)

Hello everybody,

I'm running few virtual machines (kvm+libvirt) on a server (Debian Lenny 
+ backport kernel 2.6.30) with one public IP and having IP private range 
10.99.0.1 for host, one for mail and web VM (10.99.0.13), another for 
telephony VM (10.99.0.11).

Everything is working well (DNAT) but something is disturbing me: for 
instance, on smtp server, all incoming tcp packets are marked with 
10.99.0.1 source IP and I would like to have "transparent DNAT" which 
keep the original IP.

I also tried with xinetd and his redirect feature, same problem. For 
telephony, using udp, it's also a problem.

My question is: is there a way to achive my needs with iptables (other 
solution?) or is bridging the only way?

Thanks for any feedback/idea

-- 
Daniel

             reply	other threads:[~2009-10-20  8:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-20  8:16 Daniel Huhardeaux [this message]
2009-10-20 10:13 ` DNAT and source IP Jan Engelhardt
2009-10-20 14:17   ` Daniel Huhardeaux
2009-10-20 14:50   ` Daniel Huhardeaux

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=4ADD71D7.7090502@tootai.net \
    --to=tech@tootai.net \
    --cc=netfilter-devel@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.