Primeiro, você deve saber que o openvz é mal suportado no Ubuntu. O Ubuntu usa o LXC (para melhor ou pior). Se você quiser usar o openvz, eu recomendo strongmente que você use um sistema .rpm já que o patch do kernel é escrito para um kernel do RHEL / Fedora e pode ou não ter problemas em kernels do Debian em Debian.
Até certo ponto, o openvz é depreciado em hosts Debian / Ubuntu.
Segundo, como você sabe que o iptables está funcionando?
Terceiro, se o iptables funcionar, eu usaria o iptables em vez do UFW.
Se você precisar de ajuda com o UFW / iptables, precisará postar todas as suas regras e qualquer informação adicional que você possa me dar depois de ler as páginas do meu blog.
Veja link
link
Qual sistema operacional host? Você tem acesso root no host?
Qual kernel você está executando? Que patch openvz - link