def METHOD_NAME(ips, exclude):
    """
    Filter IP addresses according to an exclude list
    @param ips: list of IP addresses
    @type ips: list
    @param exclude: IP addresses exclude list
    @type exclude: str
    @returns: filtered IP addresses list
    @rtype: list
    """
    exclude = processIPListFromConfig(exclude)
    ret = []
    for ip in ips:
        filtered = False
        for ex in exclude:
            if ip == ex:
                # This IP is filtered
                filtered = True
                break
            elif type(ex) == tuple:
                if ipInRange(ip, ex[0], ex[1]):
                    # This IP is filtered
                    filtered = True
                    break
        if not filtered:
            ret.append(ip)
    return ret