People,
From machine B (10.1.1.14) I can ssh to machine A (10.1.1.10) that hosts a Virtual Machine (192.168.122.216) and from there I can ssh to the VM. However it would be nice if I could ssh directly from B to the VM. I have set up a static route on the router (10.1.1.1) to send traffic for 192.168.122.x to 10.1.1.10 but I presume I need to also set up a rule with iptables on A? - I can use tcpdump to see that the ssh request does make it to A but the request is refused.
Thanks,
Phil.
People,
On 2012-07-06 16:57, Philip Rhoades wrote:
People,
From machine B (10.1.1.14) I can ssh to machine A (10.1.1.10) that hosts a Virtual Machine (192.168.122.216) and from there I can ssh to the VM. However it would be nice if I could ssh directly from B to the VM. I have set up a static route on the router (10.1.1.1) to send traffic for 192.168.122.x to 10.1.1.10 but I presume I need to also set up a rule with iptables on A? - I can use tcpdump to see that the ssh request does make it to A but the request is refused.
To answer my own question - I found this "hack" that at least works:
http://wiki.libvirt.org/page/Networking#NAT_forwarding_.28aka_.22virtual_net...
Thanks,
Phil.
On Fri, Jul 06, 2012 at 04:57:53PM +1000, Philip Rhoades wrote:
People,
From machine B (10.1.1.14) I can ssh to machine A (10.1.1.10) that hosts a Virtual Machine (192.168.122.216) and from there I can ssh to the VM. However it would be nice if I could ssh directly from B to the VM. I have set up a static route on the router (10.1.1.1) to send traffic for 192.168.122.x to 10.1.1.10 but I presume I need to also set up a rule with iptables on A? - I can use tcpdump to see that the ssh request does make it to A but the request is refused.
It's going to be far simpler to set up a shared physical device.
I can't get to the libvirt wiki right now, but I think the right page is:
http://wiki.libvirt.org/page/Networking
Rich.