Allow or block ports with custom firewall rules