A host firewall can allow or block incoming network traffic by properties such as source address, protocol, and destination port. Start by deciding what traffic the service needs.
Linux Hardening · Lesson 5
Host Firewalls
Learn to read a simple host firewall policy and plan checks from the relevant locations.