LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Mobile (https://www.linuxquestions.org/questions/linux-mobile-81/)
-   -   incomplete iptables implemented in android jellybean 4.1.1? (https://www.linuxquestions.org/questions/linux-mobile-81/incomplete-iptables-implemented-in-android-jellybean-4-1-1-a-4175474281/)

monergy 08-22-2013 09:21 AM

incomplete iptables implemented in android jellybean 4.1.1?
 
Hi,

We wanted to redirect traffic in our android device (rooted) to another host(the device is a manufactured screen so there are no brand names). To do it, we have the following command below.

Code:

iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination*74.54.111.227:80
iptables -t nat -A POSTROUTING -p tcp --dport 8080 -j MASQUERADE

The problem however is that the iptables is giving this error
Code:

"protoent* getprotobynumber(int)(3) is not implemented"
.
It seems that there is a missing kernel module or unimplemented function.

My idea now is that I would have to recompile the android kernel with the option
Code:

"CONFIG_NETFILTER_XT_MATCH_OWNER=m "
to make this work. I am not sure though if that is the right approach to enable the missing module in iptables, I am worried I may ruin the device.

Hopefully someone can help me how to solve the*
Code:

"protoent* getprotobynumber(int)(3) is not implemented"
, or maybe there is a different way to go?

Thank you!


All times are GMT -5. The time now is 01:01 AM.