ssh into kvm-clients

brizly vaan van Ulciputz brizly at freenet.de
Mon May 31 20:33:43 UTC 2010


Am Montag, den 31.05.2010, 10:48 -0600 schrieb Phil Meyer:
> I think that the rule set qemu uses is called DNAT by default, so we add:
> 
> -A PREROUTING -i eth0 -p tcp -m tcp -d <IP> --dport 22 -j DNAT 
> --to-destination <VMIP>
> 
> For each VM.
> 

At the end i would like to connect to the kvm-guests by their openvpn-ip
(as all other openvpn-clients, too, by enabling client-to-client, no
matter if it's an kvm-client, real host, or remote notebook...).

So i would use this rule [on the kvm-host] <IP> as the IP in OpenVPN?
-A PREROUTING -i eth0 -p tcp -m tcp -d <openVpnIp> --dport 22 -j DNAT
--to-destination <VMIP>

and that works?
crazy, i will give it a try, just too late for today.

> Hopefully, this is enough of a pointer to be of some help.

if that works, you make my day :-)

_____
Luck up
brizly




More information about the users mailing list