I Can't reboot my server anymore

Carlton372

Active Member
Dec 18, 2018
2
0
41
56
Hi Everyone,

I'm having a problem, I'm on proxmox 5 on Debian and everything worked perfectly until I decided to remove a port from the configuration and now my server won't reboot. I can access it via rescue mode. Can someone please help understand what is wrong with? I changed the IP address with XXX


Code:
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage part of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
        address  91.XXX.XXX.XXX
        netmask  255.255.255.0
        gateway  91.XXX.XXX.254
        broadcast  91.XXX.XXX.255
        bridge-ports eth0
        bridge-stp off
        bridge-fd 0
        network 91.XXX.XXX.0

auto vmbr1
iface vmbr1 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 MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '192.168.0.0/24' -o vmbr0 -j MASQUERADE
        post-up iptables -t nat -A POSTROUTING -o vmbr0 ! -p esp -j SNAT --to-source 91.XXX.XXX.XXX
        post-down iptables -t nat -D POSTROUTING -o vmbr0 ! -p esp -j SNAT --to-source 91.XXX.XXX.XXX
        post-up iptables -A INPUT -p esp -j ACCEPT
        post-down iptables -D INPUT -p esp -j ACCEPT


        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 10022 -j DNAT --to 192.168.0.100:22
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 10022 -j DNAT --to 192.168.0.100:22
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 80 -j DNAT --to 192.168.0.100:80
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 80 -j DNAT --to 192.168.0.100:80
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 443 -j DNAT --to 192.168.0.100:443
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 443 -j DNAT --to 192.168.0.100:443
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 2082 -j DNAT --to 192.168.0.100:2082
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 2082 -j DNAT --to 192.168.0.100:2082
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 2083 -j DNAT --to 192.168.0.100:2083
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 2083 -j DNAT --to 192.168.0.100:2083
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 2086 -j DNAT --to 192.168.0.100:2086
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 2086 -j DNAT --to 192.168.0.100:2086
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 2087 -j DNAT --to 192.168.0.100:2087
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 2087 -j DNAT --to 192.168.0.100:2087
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 2095 -j DNAT --to 192.168.0.100:2095
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 2095 -j DNAT --to 192.168.0.100:2095
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 2096 -j DNAT --to 192.168.0.100:2096
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 2096 -j DNAT --to 192.168.0.100:2096
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 995 -j DNAT --to 192.168.0.100:995
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 995 -j DNAT --to 192.168.0.100:995
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 993 -j DNAT --to 192.168.0.100:993
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 993 -j DNAT --to 192.168.0.100:993
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 465 -j DNAT --to 192.168.0.100:465
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 465 -j DNAT --to 192.168.0.100:465


        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 10122 -j DNAT --to 192.168.0.101:22
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 10122 -j DNAT --to 192.168.0.101:22
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 8080 -j DNAT --to 192.168.0.101:8080
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 8080 -j DNAT --to 192.168.0.101:8080
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 8181 -j DNAT --to 192.168.0.101:8181
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 8181 -j DNAT --to 192.168.0.101:8181
        
         post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 10222 -j DNAT --to 192.168.0.102:22
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 10222 -j DNAT --to 192.168.0.102:22
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 1194 -j DNAT --to 192.168.0.102:1194
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 1194 -j DNAT --to 192.168.0.102:1194
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p udp --dport 1194 -j DNAT --to 192.168.0.102:1194
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p udp --dport 1194 -j DNAT --to 192.168.0.102:1194
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 943 -j DNAT --to 192.168.0.102:943
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 943 -j DNAT --to 192.168.0.102:943
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 1723 -j DNAT --to 192.168.0.102:1723
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 1723 -j DNAT --to 192.168.0.102:1723
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p udp --dport 1701 -j DNAT --to 192.168.0.102:1701
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p udp --dport 1701 -j DNAT --to 192.168.0.102:1701


        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 10322 -j DNAT --to 192.168.0.103:22
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 10322 -j DNAT --to 192.168.0.103:22
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 8080 -j DNAT --to 192.168.0.103:8080
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 8080 -j DNAT --to 192.168.0.103:8080

        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 10422 -j DNAT --to 192.168.0.104:22
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 10422 -j DNAT --to 192.168.0.104:22
it?
 
Does not reboot or you don't have access via network any more?

If the latter, check ip configuration which is in effect after connecting by
Code:
ip addr
and correct it.

If it really does not boot any more have a look at the console what is reported in the startup process.
 
Hi Richard,
Thank you for your reply, It didn't ping via IP and I had to had it reset (Kimsufi Server) in Rescue mode, It finally booted via HDD. But I never understood what the problem was. This thread can be closed now
 

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!