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
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