【问题标题】:how can i solve the following issue in android regarding "iptables"?我如何解决android中有关“iptables”的以下问题?
【发布时间】:2013-10-30 17:39:01
【问题描述】:

这是我在 logcat 中遇到的错误:

runIptablesCmd(): failed /system/bin/iptables -t raw -A bw_raw_PREROUTING ! -i lo+ -m owner --socket-exists res=768

发出strace -c netd 后,我得到了以下内容。请建议我继续。

iptables v1.4.11.1: can't initialize iptables table `raw': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.4.11.1: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

【问题讨论】:

    标签: android iptables


    【解决方案1】:

    这似乎是一个ramdisk 问题。

    检查并确保您的ramdisk (mainly init.rc) 具有mdns 服务的必要部件。你可以看到herenetd 服务(Jellybean 之前的 Android 版本中没有这些 mdns 服务)添加了 mdns,并且在 @ 的底部还有一个 mdns 服务987654326@我之前链接过。

    将这两个部分添加到init.rc,看看是否可以解决问题。

    【讨论】:

    • 我有 mdns 服务。我在虚拟盒子(NAT)上运行 android。
    猜你喜欢
    • 1970-01-01
    • 2021-08-19
    • 2021-03-04
    • 1970-01-01
    • 2014-05-03
    • 1970-01-01
    • 1970-01-01
    • 2011-12-01
    • 2023-01-23
    相关资源
    最近更新 更多