Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android上的iptables 1.4.11_Android_Iptables - Fatal编程技术网

Android上的iptables 1.4.11

Android上的iptables 1.4.11,android,iptables,Android,Iptables,我已经从下载了Android内核源代码 然后,我启动了emulator,并希望使用iptable规则,但出现以下错误。iptable软件包是否未完全安装?为什么NAT表丢失了 最初我开始安装iptables,但在adb shell上看到iptablesv1.4.11.1后,我放弃了这个想法。有人尝试过在新的android内核源上移植iptables吗 adb shell # su root # iptables -t nat -A OUTPUT -p tcp --dport 8000 -j

我已经从下载了Android内核源代码

然后,我启动了emulator,并希望使用iptable规则,但出现以下错误。iptable软件包是否未完全安装?为什么NAT表丢失了

最初我开始安装iptables,但在adb shell上看到iptablesv1.4.11.1后,我放弃了这个想法。有人尝试过在新的android内核源上移植iptables吗

 adb shell
# su root

# iptables  -t nat -A OUTPUT -p tcp --dport 8000 -j REDIRECT --to-port 8080

FIX ME! implement getprotobyname() bionic/libc/bionic/stubs.c:450
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.
请告知

使用协议编号(
-p6
)代替名称(
-pTCP
):


iptables-tnat-A输出-p6-dport8000-j重定向-到端口8080

有关更多信息,请参阅此答案:

由于实际错误隐藏在未修剪的不相关项下,因此陈述不当。更清晰的声明在()但是,即使这不应该作为一个问题发布,因为它已经被一个关于这个问题的网络搜索很好地覆盖了。Hello,即使现在使用Android 4.2,我也有同样的问题。你找到解决办法了吗?