Copying between OVZ/LXC Public IP - same behaviour with KVM?

Afox

Renowned Member
Dec 18, 2014
257
14
83
Hello,

I found that if I address the public IP of an OpenVZ container from another OpenVZ container, there is no outgoing traffic (which is exactly what I want) and routing is made internally.

Before I migrate to KVM, will this also work with KVM-machines?

Also I only tested with containers on the same node - If the containers are populating different nodes, will this behaviour also occur (with OVZ/LXC and maybe KVM)?

Thanks and regards,

Afox
 
Last edited:
I guess you want toö enable ip_forward

# echo 1 > /proc/sys/net/ipv4/ip_forward

To make that permanent edit /etc/sysctl.conf
 
hi, thanks for your reply. Copying between 2 VMs is working well and with no outgoing traffic.

But I can´t manage to access the node itself from a VM/LXC without going over the hardware-switch which means traffic goes from VM to Switch and then to Node. It worked with Proxmox 3 where I accessed the Node from an OpenVZ Container. I tried both KVM and LXC Container.
 
could there be a solution in building an OVS bridge and adding an OVS IntPort to the node? And then adding all the VMs to the bridged OVS network?

Edit: I answer myself: yes, this works!
 
Last edited: