ITeye博客

Android No chain/target/match by that name 解决

fonter · 2010-07-04 23:43 · android · 移动开发 · Markdown

当执行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就可以用了,哈哈。

评论(1)

  1. #1 楼 · onezls · 2011-03-26 18:20

    能不能把出现错误的rom改好呢?请问怎么改?

评论功能维护中,当前仅展示历史评论。