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
Have a good day,
Thomas
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
Have a good day,
Thomas