CentOS에서 Firewalld가 시작되지 않습니다.

CentOS에서 Firewalld가 시작되지 않습니다.

최근에 yum-update를 실행한 CentOS 서버가 있는데 유일한 업데이트는 centos-release였습니다. 업데이트를 적용했는데 그 이후로 FirewallD에서 오류가 발생했습니다.

방금 구성이 손상되었을 수도 있다고 생각하여 패키지를 제거하고 다시 설치했지만 이제 서비스 명령으로 FirewallD를 시작하려고 할 때마다 서비스가 실패했다는 메시지가 표시되고 다음 출력이 표시됩니다.

Dec 17 15:54:57 DMZ01 systemd[1]: Starting firewalld - dynamic firewall daemon...
-- Subject: Unit firewalld.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit firewalld.service has begun starting up.
Dec 17 15:54:57 DMZ01 systemd[1]: firewalld.service: main process exited, code=exited, status=1/FAILURE
Dec 17 15:54:57 DMZ01 systemd[1]: Failed to start firewalld - dynamic firewall daemon.
-- Subject: Unit firewalld.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit firewalld.service has failed.
-- 
-- The result is failed.
Dec 17 15:54:57 DMZ01 systemd[1]: Unit firewalld.service entered failed state.
Dec 17 15:54:57 DMZ01 systemd[1]: firewalld.service failed.

명령 을 실행하면 firewall-cmdFirewalld가 실행되고 있지 않다는 메시지만 표시됩니다.

결과는 cat /etc/centor-release다음과 같습니다.CentOS Linux release 7.9.2009 (Core)

firewalld인수 를 사용하여 명령을 실행하면 --debug서버에 대한 연결이 즉시 종료되고 들어오는 모든 연결이 잠깁니다. 항목을 다시 얻으려면 서버를 수동으로 다시 시작해야 합니다.

디버그 명령의 출력은 다음에서 덤프되며 /var/log/firewalld여기에서 볼 수 있습니다. https://pastebin.com/N81tWkhj

출력/etc/firewalld/zones/public.xml

<?xml version="1.0" encoding="utf-8"?>
<zone target="default">
  <short>Public</short>
  <description>For use in public areas. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted.</description>
  <port protocol="tcp" port="21"/>
  <port protocol="tcp" port="60000-65335"/>
</zone>

관련 정보