Some network services should only be exposed to other computers on the same trusted network. Here is how you set that up with trusted zones in FirewallD for centOS, Fedora, and RHEL. Tutorial for the new firewallctl interface as well as the classic firewall-cmd interface.