Iptables 1.4.11 on Android

I downloaded the Android sources from http://source.android.com/source/building-kernels.html

Then I started the emulator and wanted to play with iptable rules, but I got the following error. Is the iptable package fully installed? why is there no NAT table?

I initially started following http://randomizedsort.blogspot.de/2011/03/porting-iptables-1410-to-android.html#comment-form_8482839589527760177 to install iptables, but when I saw iptablesv1.4.11.1 on the adb shell, I left an idea. Has anyone tried porting iptables to new Android kernel sources?

 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.

Please advise!

+2
source share
1 answer

(-p 6) (-p tcp):

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

. : getprotobyname error iptables

+1

All Articles