Repository navigation
v3.34.0
Firewall fixes now work on firewalld, the default firewall on Fedora, RHEL,
Rocky and Alma, and not only on ufw. Until now every firewall finding on
those systems came with no fix. Testing on a real Fedora host also found the
firewall reading wrong in two places, and both are fixed.
Features
- check:
firewall.inactive,firewall.default-allow,
ports.exposed-datastoreandports.exposed-admincan now be fixed on
firewalld. Each fix allows the SSH port first and then changes the policy,
the same order as on ufw. An exposed port is closed with a firewalld rule
that takes precedence over the zone's own open ports. These fixes run
commands and have no rollback checkpoint, so each one is offered for
review, and the preview shows the commands that undo it.
Bug Fixes
- check: a port that firewalld already refused was reported as
reachable from the network, with advice to enable ufw. hostveil now reads
firewalld's default zone and only drops the finding when it understood
every rule that could open the port. - check: with firewalld stopped, a scan reported "cannot read firewall
state — re-run with sudo", even when run as root, and never reported
firewall.inactive. hostveil now recognises firewalld's "not running"
answer.
한국어
이제 방화벽 수정이 ufw뿐 아니라 firewalld에서도 동작합니다. firewalld는
Fedora, RHEL, Rocky, Alma의 기본 방화벽입니다. 지금까지 이런 시스템에서는
방화벽 발견 항목에 수정이 하나도 없었습니다. 실제 Fedora 호스트에서 시험하다가
방화벽 상태를 잘못 읽는 문제도 두 가지 찾았고, 모두 고쳤습니다.
새 기능
- check: 이제 firewalld에서도
firewall.inactive,firewall.default-allow,
ports.exposed-datastore,ports.exposed-admin을 고칠 수 있습니다. ufw와
같은 순서로 SSH 포트를 먼저 허용한 뒤 정책을 바꿉니다. 노출된 포트는 zone이
열어 둔 포트보다 먼저 적용되는 firewalld 규칙으로 닫습니다. 명령을 실행하는
수정이라 롤백 체크포인트가 없습니다. 그래서 모두 검토를 거쳐 적용하며,
미리보기에서 되돌리는 명령을 함께 보여 줍니다.
버그 수정
- check: firewalld가 이미 막고 있는 포트를 네트워크에서 접근할 수 있다고
보고했습니다. 안내도 ufw를 켜라는 내용이었습니다. 이제 firewalld의 기본
zone을 읽습니다. 포트를 열 수 있는 규칙을 모두 이해했을 때만 발견 항목을
지웁니다. - check: firewalld가 멈춰 있으면 root로 스캔해도 "방화벽 상태를 읽을 수
없으니 sudo로 다시 실행하라"고 보고했고,firewall.inactive는 끝내 나오지
않았습니다. 이제 firewalld가 "실행 중이 아님"이라고 답하는 것을 알아듣습니다.