Hi Proxmox community,
I'm facing an asymmetric routing issue.
Each host have public and private network.
Public network : vmbr0
Private network : vmbr2
Postrouting rule on HOST A :
iptables -t nat -A PREROUTING -i vmbr0 -s xxxx -p tcp --dport 10636 -j DNAT --to 172.25.2.19:636
172.25.2.19 = virtual ip master
HOST A / VM A with master IP HOST B / VM B slave
virtual ip : 172.25.2.19 ip : 172.25.2.2
ip : 172.25.2.1
When i switch the Master IP on VM B, i can't connect to 636.
Under Proxmox / Openvz, i was using "VE_ROUTE_SRC_DEV=vmbr2" parameter in vz.conf in order to work.
VE_ROUTE_SRC_DEV="device"
This parameter specifies the network device name which IP address will be used as the source IP. This is helpful in case more than one network interface is configured on HN and there is a need to specify the source IP address. Default is the first device in the network device list.
Do you know how to configure this under Proxmox 5 / LXC ?
Regards.
I'm facing an asymmetric routing issue.
Each host have public and private network.
Public network : vmbr0
Private network : vmbr2
Postrouting rule on HOST A :
iptables -t nat -A PREROUTING -i vmbr0 -s xxxx -p tcp --dport 10636 -j DNAT --to 172.25.2.19:636
172.25.2.19 = virtual ip master
HOST A / VM A with master IP HOST B / VM B slave
virtual ip : 172.25.2.19 ip : 172.25.2.2
ip : 172.25.2.1
When i switch the Master IP on VM B, i can't connect to 636.
Under Proxmox / Openvz, i was using "VE_ROUTE_SRC_DEV=vmbr2" parameter in vz.conf in order to work.
VE_ROUTE_SRC_DEV="device"
This parameter specifies the network device name which IP address will be used as the source IP. This is helpful in case more than one network interface is configured on HN and there is a need to specify the source IP address. Default is the first device in the network device list.
Do you know how to configure this under Proxmox 5 / LXC ?
Regards.