1

When I use firewall-cmd it hangs, I just did a update with yum and got updates for python (2.7.5) and the kernel.

I use CentOS 7, when I do sudo systemctl status firewalld.service I got: Active: active (running).

When I do: ps aux | grep fire it shows:

root     15616  0.0  0.4 249448 20088 ?        Ss   22:18   0:00 /usr/bin/python -Es /usr/sbin/firewalld
root     17687  0.0  0.0 335772   472 ?        Ssl  jul10   0:00 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid

How can I solve the hanging of firewall-cmd?

  • Not any answer by any means, but does firewall-cmd --list-all hang as well? – yetdot Aug 30 '16 at 20:37
  • firewall-cmd -h works fine, but.. firewall-cmd --list-all and adding rules hangs. – Jeroen Steen Aug 30 '16 at 20:45
  • Does the box resolve DNS queries successfully, incase there are delays in name resolution, giving symptoms of a hang. Also, worth looking to see if all the interfaces of the box are up and active. – yetdot Aug 30 '16 at 20:51
  • Can you give examples how I can do that @yetdot? Are you sure the hang isn't related to python? – Jeroen Steen Aug 30 '16 at 21:00
  • It could very well be Python related, seems historically there have been few bugs if you search google. To do the DNS resolution, you can check the file /etc/resolv.conf is have nameserver entry in it, then run the nslookup command with some name eg google.com for example. You should see valid Google public IPs as a result of that. For the network interfaces, you can run the IP command "ip addr". I think there is an ip show dev or show link or something similar might also help. The object of these two was to help troubleshoot if it is indeed network issue rather than related to the yum update. – yetdot Aug 30 '16 at 21:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.