Reboot fails after yum upgrade on 20-Dec

Support for security such as Firewalls and securing linux
Post Reply
aCID
Posts: 7
Joined: 2016/05/11 13:08:13

Reboot fails after yum upgrade on 20-Dec

Post by aCID » 2016/12/23 18:44:51

After the yum upgrade, FTP transfers failed and I tried a soft reboot and the server did not respond to pings. Kimsufi/OVH support put the server into rescue mode.

After looking at the logs and the following topics :
viewtopic.php?f=50&t=60487
viewtopic.php?f=51&t=60586

I guess that there is some issue with firewalld upgrade. I disabled firewalld and fail2ban services and the server rebooted successfully.

However, if the firewalld is enabled at startup, then boot fails.

The current OS version is CentOS 7.3-1611.

Following are some entries in /var/log/firewalld

2016-12-20 08:21:58 ERROR: UNKNOWN_INTERFACE: 'eth0' is not in any zone
2016-12-20 08:26:53 ERROR: COMMAND_FAILED
2016-12-20 08:26:55 WARNING: '/usr/sbin/iptables-restore -n' failed:
2016-12-20 08:26:55 WARNING: '/usr/sbin/ip6tables-restore -n' failed:
....
2016-12-23 09:03:39 WARNING: '/usr/sbin/iptables-restore -n' failed:
2016-12-23 09:03:39 WARNING: '/usr/sbin/ip6tables-restore -n' failed:
2016-12-23 09:03:39 ERROR: COMMAND_FAILED

I am not an expert and need help in rebooting the server with the firewalld and fail2ban services enabled at startup.

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Reboot fails after yum upgrade on 20-Dec

Post by hunter86_bg » 2016/12/23 19:49:14

Can you try again after editing ifcfg-eth0 file and adding (where "your_zone" is the name of the zone this interface belongs)

Code: Select all

ZONE=your_zone

aCID
Posts: 7
Joined: 2016/05/11 13:08:13

Re: Reboot fails after yum upgrade on 20-Dec

Post by aCID » 2016/12/26 05:35:01

It worked. Server is up. Thanks. I set

Code: Select all

ZONE=trusted
However the firewalld still logs the error

Code: Select all

ERROR: COMMAND_FAILED

Blacky
Posts: 26
Joined: 2013/12/15 07:28:43

Re: Reboot fails after yum upgrade on 20-Dec

Post by Blacky » 2017/01/31 11:42:50

I have the same issue. I have Centos installed on Amazon EC and after the latest update I couldn't login to my instance. After some work I managed to track the problem to firewalld. So I chrooted and disabled firewalld services. Now I can connect but I am not happy to have firewalld disabled.

My problem is the same, ip6tables-restore -n failed.
My network device is set in the proper zone, but that doesn't seem to help.

oriprice
Posts: 1
Joined: 2017/02/28 11:47:20

Re: Reboot fails after yum upgrade on 20-Dec

Post by oriprice » 2017/02/28 18:57:10

any update on the issue? i am having the same problem

Post Reply