container don't use outbound public ip but proxmox public ip

hzanibel

New Member
Oct 22, 2014
2
0
1
Hello,

I have an issue after migration of an openvz container to a newserver. The outbound ip of the container is the server ip and not the public ip assign in proxmox.
No issue in inbound traffic.
The hosting datacenter use failover ip but i don't think that's cause the issue.

Certainely need change some sysctl but all testing failed

Any idea ?

Thanks

--
from container :
netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 venet0

venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:<public ip>




from proxmox :
netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
<public ip> 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
0.0.0.0 <datacenter gw> 0.0.0.0 UG 0 0 0 vmbr0

sysctl :
net.ipv4.ip_forward = 1
 
Last edited:

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!