redirecting arbitrary tcp/udp in kvm

Posted by jbfink on Server Fault See other posts from Server Fault or by jbfink
Published on 2011-01-17T17:17:50Z Indexed on 2011/01/17 17:55 UTC
Read the original article Hit count: 138

Filed under:
|
|

I've got a server with KVM on it, and multiple guest VMs. I'd like a way to redirect traffic from the host server to the VMs. Like, say, forward all traffic on port 2222 on the host to 22 on a guest VM for ssh. This would have to be done either through virt-manager or libvirt XML config files -- I've found multiple references to doing it through qemu (like http://forums.fedoraforum.org/showthread.php?t=237969) but absolutely nothing that I can see related to either libvirt or virt-manager. Do you know how I can do this?

© Server Fault or respective owner

Related posts about ssh

Related posts about redirect