Strange network issue with openvz containers

Sempiterna

Active Member
Feb 2, 2014
17
3
43
I just moved 2 openvz containers to my new proxmox server, but eventhough everything works (people can connect, see a website, etc), connecting with ssh from that container to the outside world shows the IP address of the host node instead of the IP of the container. The same thing happens when mail is sent out from the container. The receiving mailserver sees the IP address of the host node instead of the container's IP address. I am thinking I may have a problem with the networking setup on the host, but can't seem to find what it is exactly.

The networking configuration as it is now:

---
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 178.xx.xx.31
netmask 255.255.255.192
pointopoint 178.xx.xx.1
gateway 178.xx.xx.1
post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp

auto vmbr1
iface vmbr1 inet static
address 10.10.10.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0

auto vmbr2
iface vmbr2 inet static
address 178.xx.xx.31
netmask 255.255.255.255
pointopoint 178.xx.xx.1
gateway 178.xx.xx.1
bridge_ports eth0
bridge_stp off
bridge_fd 1
bridge_hello 2
bridge_maxage 12

iface vmbr2 inet6 static
address 2a01:xxx:xxx:4488::2
netmask 64
gateway fe80::1
pre-up modprobe ipv6
pre-up echo 0 > /proc/sys/net/ipv6/conf/eth0/autoconf
post-up echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
post-up ip -6 neigh add proxy 2a01:xxx:xxx:4488::3 dev eth0
---

What this setup allows is: openvz (routed) (vmbr2), bridged KVM (vmbr2), and a NAT (vmbr1) that i connect to using port forwarding. Is there something wrong with this config?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!