---
title: "Android No chain/target/match by that name 解决"
author: "fonter"
date: "2010-07-04T23:43:55Z"
tags: []
categories: ["移动开发"]
slug: "android-no-chain-target-match-by-that-name"
draft: false
lastmod: "2010-07-04T23:46:15Z"
id: 705507
url: "https://fonter.iteye.com/blog/705507"
---

**当执行iptables 时，抛出No chain/target/match by that name这个错误，在命令正确无误时提示这个错误，一般是你的系统不支持netfilte/iptables，需重新刷一个新的rom。如现在一个叫droidwall的开源防火墙在一些系统运行时会出现这个错误，就是你的系统不支持。**

**支持的ROM 如：cm-4.2.15.1**

**但CM的ROM也有不带iptables的，刷时要看看system/bin里有没有这个文件。要是刷后想知新系统支不支持。可用下面的命令**

```
iptables -t filter -A OUTPUT -o tiwlan+  -m owner --uid-owner 10030 -j DROP 
```

 

**执行后看看会不会提示“No chain/target/match by that name”，没有表示新ROM一切正常**

**最后要用**iptables -F**清空哦**

```
iptables -F
```

 

**这样你的droidwall就可以用了，哈哈。**