netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Brouting VNC
@ 2010-05-04 15:26 Pavel Mikulka
  2010-05-04 16:02 ` Grant Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Mikulka @ 2010-05-04 15:26 UTC (permalink / raw)
  To: netfilter

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.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-04 16:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-04 15:26 Brouting VNC Pavel Mikulka
2010-05-04 16:02 ` Grant Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).