I have tried to use this command of iptables on android emulator from
adb shell:
"iptables -I INPUT -j QUEUE"
But my shell hungs.
Where is the problem?
If i try to put the protocol by option -p tcp I get error FIXME
getprotobyname().
anyone knows how to implement getprotobyname() function?
I fo
rce
destination
Chain OUTPUT (policy ACCEPT 599 packets, 31860 bytes)
pkts bytes target prot opt in out source
destination
On 29 Nov, 16:04, Antonio Conforti wrote:
> Because I have to create a separate table.
> However I managed to run my module.
> now everything seems to wo
e?
>
> On Nov 28, 9:48 am, Antonio Conforti wrote:
>
>
>
> > After compile my iptables i try to insert my simple netfilter target.
> > All goes right, but when i try to start my module iptables says :
>
> > # iptables -I INPUT -j HELLO
> > iptables: Inval
After compile my iptables i try to insert my simple netfilter target.
All goes right, but when i try to start my module iptables says :
# iptables -I INPUT -j HELLO
iptables: Invalid argument
I have insert libipt_HELLO.c into /iptables/extensions and recompiled
iptables(I have also modified Andro
ically.
> Just make sure that all necessary modules are insmodded in the right
> order.
>
> On Nov 25, 4:22 pm, Antonio Conforti wrote:
> > I still have the same error ... I do not understand one thing: when I
> > download into a folder and there is a file Android.mk, how do I
ts were
> > dropping the ADB packets as well!
> > Must use it carefully :)
>
> > Cheers,
> > Earlence
>
> > On Nov 9, 2:16 pm, Antonio Conforti wrote:
> >> Thanks for you quickly answer...but did you download your source using
> >> re
ly when I try to reject all packets that were
> > sent out.
> > eg: iptables -A OUTPUT -j DROP
> > also hangs.
> > Any idea why?
>
> > Cheers,
> > Earlence
>
> > On Nov 9, 10:29 am, Antonio Conforti wrote:
>
> > > I h
gt; used.
> My guess is that its a simple conversion from a protocol name to an
> internal number used to identify the protocol. Again, just
> speculation, but worth checking out.
>
> Cheers,
> Earlence
>
> On Nov 8, 3:42 pm, Antonio Conforti wrote:
>
>
>
>
Good work Earlence.
I got your same problem. I have tried to compile kernel with
CONFIG_NETFILTER_XT_MATCH_OWNER, but didn't happen nothing. I get this
error:
FIX ME! implement getprotobyname() bionic/libc/bionic/stubs.c:378
this is the command:
# iptables -A INPUT -p tcp --dport 80 -j ACCEPT
FIX
that the emulator was offline.
>
> So I think there is some problem with my customized 2.6.32 kernel, and
> it is incompatible with the emulator which originally runs the
> goldfish 2.6.29 kernel.
>
> Any suggestions on getting 2.6.32 kernel running on emulator?
>
> Thanks!
&
e iptables via NDK-build, I had to create a folder "jni" and
move into it all the files of iptables.
Is this procedure correct?
On Oct 26, 9:22 pm, Antonio Conforti wrote:
> I change permission of /system from ro to rw as follow:
> ./adb shell
> #su
> #mount or #cat /proc
If you want to use adb shell first you have to start server for adb as
follow:
./adb start-server
The you can start shell :
./adb shell
PS. First to execute "adb shell" you have already started the emulator
On Oct 26, 7:56 pm, Yudong wrote:
> I used:
>
> emulator -avd Android2.2avd -kernel /p
t; Hamilton Vera
>
>
>
> On Tue, Oct 26, 2010 at 7:40 AM, Antonio Conforti wrote:
> > Thanks Brad and Hamilton for your answers. I have lunched iptables.
> > But I have other doubts:
> > I have compiled my iptables source obtaining two folder(one called
> > libs a
ill need to add Linux userspace programs to your build.
>
> > > > > On Oct 12, 11:17 am, cox85 wrote:
>
> > > > > > I want to create a netfilter kernel module and I am new in android
> > > > > > world.
> > > > > > I have downloaded android kernel and I have make my own kernel, but
> > > > > > I
> > > > > > can't found in ADB shell iptables command.
> > > > > > I use android goldfish because i have only the emulator
> > > > > > What I have to do to enabling iptables command?
> > > > > > Antonio Conforti- Hide quoted text -
>
> > > - Show quoted text -
--
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel
r
> ./net/ipv4/netfilter
> ./net/bridge/netfilter
> ./net/netfilter
> ./net/decnet/netfilter
> ./net/ipv6/netfilter
>
>
>
> On Thu, Oct 21, 2010 at 6:27 AM, Antonio Conforti wrote:
> > My goldfish kernel hasn't iptables inside. I try to make new kernel
ni/extensions/
libipt_ULOG.c
Compile thumb : ext <= /home/antonio/iptables/jni/extensions/
initext.c
make: *** No rule to make target `/home/antonio/iptables/obj/local/
armeabi/libc.a', needed by `/home/antonio/iptables/obj/local/armeabi/
libext.a'. Stop.
On 21 Ott, 10:27, Antonio Conf
droid uses Android.mk files instead of Makefile, but the compilation
> process itself is the same. In my environment the iptables binary is
> built under /system/bin/iptables, check in you FS for this file.
>
> []'s
>
> Hamilton Vera
>
>
>
> On Wed, Oct 20,
I have download android-NDK and I have compile my iptables by this
command:
./ndk-build in the folder of iptables where there is the file
Android.mk.
Now I get an error: extensions/initext.c:1:25: error: gen_initext.c:
No such file or directory
what does it mean?
Antonio Conforti
On 20 Ott, 16
How I Have to write my Makefile? In the folder of iptables source
there is a file called Android.mk and other files.
How can I compile my source? I need more detail
Thanks
Antonio Conforti
On 19 Ott, 19:26, Brad Davis wrote:
> If you have the Android kernel tree from "git" you can
19 matches
Mail list logo