All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Pavel Mikulka" <pavel@mikulka.info>
To: netfilter@vger.kernel.org
Subject: Brouting VNC
Date: Tue, 4 May 2010 17:26:46 +0200	[thread overview]
Message-ID: <003601caeb9e$35bb2de0$a13189a0$@info> (raw)

Hello everyone,

I have topology with virtual machines running on KVM like this:

eth0 (ip 1.1.1.1)
eth1 --\
	  > --> bond0 (ip 1.1.1.2) --> br0 --> Virtual Machine with ip
1.1.1.3
eth2 --/

I would have a RDP available from outside at the ip address of virtual
machine. I try to configure ebtables/iptables to redirect VNC from ebtables
to iptables and then to ip address of host 1.1.1.1(or localhost) with no
luck. 

ebtables -t broute -A BROUTING -i bond0 -p IPv4 --ip-protocol 6
--ip-destination-port 5900 -j redirect --redirect-target DROP
iptables -t nat -A PREROUTING -p tcp  -d 1.1.1.3 --dport 5900 -j DNAT --to
1.1.1.1:5900
 
Any help will be appreciated. Thanks

P.




             reply	other threads:[~2010-05-04 15:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-04 15:26 Pavel Mikulka [this message]
2010-05-04 16:02 ` Brouting VNC Grant Taylor

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='003601caeb9e$35bb2de0$a13189a0$@info' \
    --to=pavel@mikulka.info \
    --cc=netfilter@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.