Restart failed after network configuration

BobLamarley

New Member
Apr 4, 2017
5
0
1
29
Hi,
I have some trouble with my Proxmox and i don't know why, this network configuration was set on my previous Proxmox and worked perfectly.
I had buy a dedicated server at OVH, I install Proxmox 4.4 on it, my server has one public IP and no failover IP so i decided to do port forwarding with NAT. This is my configuration in /etc/network/interfaces :

auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
address 51.255.80.74
netmask 255.255.255.0
gateway 51.255.80.254
broadcast 51.255.80.255
bridge_ports eth0
bridge_stp off
bridge_fd 0
network 51.255.80.0


auto vmbr2
iface vmbr2 inet static
address 192.168.0.254
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0

post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o vmbr0 -j SNAT --to 51.255.80.74
post-down iptables -t nat -D POSTROUTING -s 192.168.0.0/24 -o vmbr0 -j SNAT --to 51.255.80.74

#grafana
post-up iptables -A FORWARD -p tcp -d 192.168.0.1 --dport 3000 -j ACCEPT
post-down iptables -A FORWARD -p tcp -d 192.168.0.1 --dport 3000 -j ACCEPT
#Influxdb
post-up iptables -A FORWARD -p tcp -d 192.168.0.2 --dport 8086 -j ACCEPT
post-down iptables -A FORWARD -p tcp -d 192.168.0.2 --dport 8086 -j ACCEPT

#Grafana
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 3000 -j DNAT --to-destination 192.168.0.1:3000
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 3000 -j DNAT --to-destination 192.168.0.1:3000

#InfluxDB
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 8086 -j DNAT --to-destination 192.168.0.2:8086
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 8086 -j DNAT --to-destination 192.168.0.2:8086


When i save my configuration and i restart my Proxmox, the dedicated server stay unreachable by ping and by the web ui, my only option is to reset the dedicated server and reinstall Proxmox, and i tried 3 times already with the same behaviour.
If anyone can help me, it would be so nice :rolleyes:
Have a good day,
Thomas
 
make sure that you don't have VMs connected to the vmbr0 bridge, all the nics of your VMs should be in the vmbr2 bridge
if you put VMs on vmbr0 and they try to reach the internet without having their mac address registered in the OVH management interface, OVF will shutdown your network ( IIRC)
see https://pve.proxmox.com/wiki/Network_Model lookl for "hosting providers" in the article

if you don't touch the vmbr0 stanza ( and you should not need it to touch it for the setup you describe) I don't see any reason the pve node would not be available

probably OVH has a kind of rescue console to access the system (serial console) even when the system is down ?
you should try to use it this it would spare you the multiple reinstalls because of a wrong network configuration
 

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!