Configuring multiple LXC / multiple IP's

cyrmac

New Member
Sep 23, 2016
1
0
1
46
Hi,

I am currently installing a proxmox server, which I want to :
- host multiple LXC for backup needs
- those LXC should join internet (it is not the case actually)
- those LXC's should be accessible from outside proxmox gui (not the case)
- those LXC's should ping the Host (not the case)
- The Host should ping de LXC's (not the case)
- the LXC should ping each other (not the case)

I tried many confs. I hope to find a solution quickly. Here is my host interface conf :

source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
iface eth1 inet manual
auto vmbr0
iface vmbr0 inet static
address X.X.X.100
netmask 255.255.255.0
gateway X.X.X.1
bridge_ports eth0
bridge_stp off
bridge_fd 0

auto vmbr1
iface vmbr1 inet static
address X.X.244.129
netmask 255.255.255.255
bridge_ports none
bridge_stp off
bridge_fd 0
bridge_vlan_aware yes
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s 'X.X.244.128/32’ -o eth0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s 'X.X.244.128/32' -o eth0 -j MASQUERADE

Many thanks
 

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!