Answering my own question for future inquirers - After successfully testing an lxc container as a NAT gateway, I resumed testing on openvz. I remembered there was some sort of setting to enable iptables in a container, and eventually found it:
# prlctl set MyCT --netfilter full Of course, fighting with firewalld is a whole different set of problems, but with firewalld off, it works perfectly. I'll either find the magic tweak that makes firewalld allow the forwarding, or I'll live without firewalld for now. Jake On Tue, Dec 20, 2022 at 2:21 PM jjs - mainphrame <j...@mainphrame.com> wrote: > I've been on a hardware consolidation and virtualization kick, and have > been converting physical hosts in the office to openvz VMs. > > I have a couple of physical boxes each connecting to an internet provider, > and acting as a firewall/gateway, among other things. I was able to convert > these to VMs, after adding the interfaces and creating the bridges and > networks, and it works as expected. > > I thought it would be more efficient to use a container, and have been > testing with a container connected to an internal bridge, and an external > bridge. I haven't yet been able to figure out why it won't forward traffic > from the internal interface to the external interface, even though it's > connected to the same networks as the VM which is successfully doing so. > > Is it possible to use a container for this, or am I trying to make a > container do something it was designed not to do? > > Jake > > >
_______________________________________________ Users mailing list Users@openvz.org https://lists.openvz.org/mailman/listinfo/users