It is true that in order to use iptables on Emulator you will need to generate a custom kernel with the netfilter options enabled. As for real devices, you may be able to find devices on the market with netfilter enabled kernel. As far as i remember, the Galaxy S used to ship with netfilter support. Despite those issues with the kernel, it seems that you are trying to execute an invalid binary for your architecture. I suggest you to get an application like DroidWall and try it in your platform. It has more than one version pre-compiled iptables in it, and it can choose which one is proper for your architecture.
Rodrigo. On Wed, Apr 13, 2011 at 12:30 PM, biAji <[email protected]> wrote: > > > On Apr 11, 2:01 am, Alex Castilio dos Santos <[email protected]> > wrote: > > Hi people, > > > > I have a university project using Android. I need iptables on Android > emulator, so I can test my project program on the PC. But I'm having some > trouble with that. I'll explain what I have done. > > > > I remounted / using "mount -o remount, rw rootfs /" and than I pushed > iptables to /sbin/iptables and then chmod 777 iptables. > > > > The problem comes now. When I try to "iptables -L" the following message > is shown: "iptables v1.3.7: can't initialize iptables table `filter': > iptables who? (do you need to insmod?) > > > There is no netfilter support in your emulator's kernel. you should > make your own kernel instead of that. > > -- > unsubscribe: [email protected] > website: http://groups.google.com/group/android-kernel > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-kernel
