D
D
Dmitry2014-12-05 13:00:12
linux
Dmitry, 2014-12-05 13:00:12

OpenVPN under OpenVZ - access to the network?

Hello.
There is an OpenVZ server inside the network. OS - Linux CentOS 6.5
There is a need to make a virtual container with OpenVPN on it.
Raised OpenVPN in an OpenVZ container. Added tun device, enabled ip_forward, disabled iptables.
The client connects, sees the server. Everything seems to be fine.
BUT! For some reason, the server does not allow the client to leave the virtual network, to the physical network. The goal is remote client access to the network.
On a non-OpenVZ kernel (even with a simple reboot to normal), everything magically works.
On the OpenVZ kernel, it doesn't matter whether the virtual machine or the host machine itself simply does not route. And it's not about the reverse route - I observe this, for example, with a sniffer on the target host - on the one I'm accessing. Packages are not received.
The question is - is this a feature of OpenVZ, or was it necessary to include something else, some additional option in sysctl.conf, for example?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kerzhner, 2014-12-05
@kerzhner

How is the network organized on vps, venet or veth?
If veth, then check proxy_arp and forwarding on the physical and virtual network interface of the host system.
What routes are registered on the host system and vps?
What pushes openvpn?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question