Magamnak egyszer már megcsináltam, használd egészséggel. https://github.com/abalage/blocklist-firewalld