def iptables_call_output(*args):
    cmd = ["iptables", "-n"] + list(args)
    try:
        output = subprocess.check_output(cmd)
        return output.decode().split("\n")
    except subprocess.CalledProcessError as err:
        error = "Problem calling '%s'" % " ".join(cmd)
        if err.returncode == 3:
            raise InsufficientPermissionsError(error)
        raise BlockadeError(error)
dataset/ETHPy150Open dcm-oss/blockade/blockade/net.py/iptables_call_output/original