[SOLVED] Ubuntu LXC container with multiple gateway

s1dh

Active Member
Aug 2, 2019
3
0
41
47
New to Proxmox , I recently installed on a OVH's dedicated server a 5.4-13 (zfs) Proxmox VE.

I needed to have one LXC container with 1 unused public IP (IP failover) and 1 LAN IP (for connecting with other LAN-only containers).

I used the set up described by OVH (ovh mac address , fail-over IP with /32 CIDR, and main.ip.254 as gateway).

Here is my tests results :

- With Ubuntu 18.04 LTS and 18.10 I never succeed to join the container from outside using the failover IP. Once you remove the LAN interface, it is OK.

- With Debian 9 LXC, IP failover + IP LAN works flawessy

- With Ubuntu 19.04, It was not working as the previous versions until I enabled IP-forwarding (echo 1 > /proc/sys/net/ipv4/ip_forward), then it started to work and I could SSH the Ubuntu container from outside.

If you know how to set up public IP and LAN IP on a Ubuntu 18.04 LTS LXC container properly, please let me know ;)

Regards,
 
Ok just reply to myself :

Once I delete the LAN default gw (only the WAN default gw remains), one can ssh the lxc on its fail-over IP