def verify_iptables(self):
        """
        Verify there is no firewall rule in the iptables blocking the Syslog daemon or agent incoming ports
        """
        command_name = "verify_iptables_policy_permissive"
        command_to_run = "sudo iptables -S | grep \\\\-P | grep -E 'INPUT|OUTPUT'"
        result_keywords_array = ["DROP", "REJECT"]
        policy_command_object = CommandVerification(command_name, command_to_run, result_keywords_array)
        policy_command_object.run_full_test(exclude=True)
        if policy_command_object.is_successful == "Skip":
            print_warning(policy_command_object.command_result_err)
            return True
        command_name = "verify_iptables_rules_permissive_514"
        command_to_run = "sudo iptables -S | grep -E '514' | grep INPUT"
        rules_command_object = CommandVerification(command_name, command_to_run, result_keywords_array)
        rules_command_object.run_full_test(exclude=True)
        if (not rules_command_object.is_successful or (not policy_command_object.is_successful and (
                not rules_command_object.is_successful or rules_command_object.command_result == ""))):
            print_warning(self.IPTABLES_BLOCKING_TRAFFIC_ERROR_MESSAGE.format('514'))
        if IS_AGENT_VERSION_UPDATED:
            command_name = "verify_iptables_rules_permissive_28330"
            command_to_run = "sudo iptables -S | grep -E '28330' | grep INPUT"
            rules_command_object = CommandVerification(command_name, command_to_run, result_keywords_array)
            rules_command_object.run_full_test(exclude=True)
            if (not rules_command_object.is_successful or (not policy_command_object.is_successful and (
                    not rules_command_object.is_successful or rules_command_object.command_result == ""))):
                print_warning(self.IPTABLES_BLOCKING_TRAFFIC_ERROR_MESSAGE.format('28330'))

        Verify there is no firewall rule in the iptables blocking the Syslog daemon or agent incoming ports
        
DataConnectors/Syslog/Sentinel_AMA_troubleshoot.py