Re: [android-kernel] Re: Iptables

2011-04-13 Thread biAji
I believe most froyo device have at least partial netfiler mod built-in. Or there is no way to enable tether feature. ^_^ On Apr 14, 2011 12:24 AM, "Rodrigo Chiossi" wrote: > > It is true that in order to use iptables on Emulator you will need to generate a custom kernel with the netfilter option

Re: [android-kernel] Re: Iptables

2011-04-13 Thread Rodrigo Chiossi
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

[android-kernel] Re: Iptables

2011-04-13 Thread biAji
On Apr 11, 2:01 am, Alex Castilio dos Santos 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 "mo

[android-kernel] Re: Iptables

2011-04-12 Thread Earlence
hone. > > Thank you for the suggestions. > > > Date: Tue, 12 Apr 2011 13:02:20 -0700 > > Subject: [android-kernel] Re: Iptables > > From: earlencefe...@gmail.com > > To: android-kernel@googlegroups.com > > > you need to build an emulator kernel image wit

RE: [android-kernel] Re: Iptables

2011-04-12 Thread Alex Castilio dos Santos
tphone, will I need to do that to? I would like the simplest solution so I will not have problem to do it again in a real smartphone. Thank you for the suggestions. > Date: Tue, 12 Apr 2011 13:02:20 -0700 > Subject: [android-kernel] Re: Iptables > From: earlencefe...@gmail.com >

[android-kernel] Re: Iptables

2011-04-12 Thread Earlence
you need to build an emulator kernel image with netfilter support. there have been many threads dealing with that on this group, search for them. -Earlence On Apr 12, 8:03 pm, Glauco Junquera wrote: > What Android version are you using on emulator? > I had a similar problem with Android 2.3 > >

[android-kernel] Re: iptables

2010-11-26 Thread Earlence
try to get its code from another distribution and replace. see what happens. On Nov 26, 3:31 pm, Antonio Conforti wrote: > I understand that function getprotobynumber hasn't been implemented, how can > I replace this function into iptables.c? > > 2010/11/25 Earlence > > > you do not need to down

Re: [android-kernel] Re: iptables

2010-11-26 Thread Antonio Conforti
I understand that function getprotobynumber hasn't been implemented, how can I replace this function into iptables.c? 2010/11/25 Earlence > you do not need to download any other distribution of iptables, > Use the version provided with the source code. It get compiled > automatically. > Just mak

[android-kernel] Re: iptables

2010-11-25 Thread Earlence
you do not need to download any other distribution of iptables, Use the version provided with the source code. It get compiled automatically. 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

[android-kernel] Re: iptables

2010-11-25 Thread Antonio Conforti
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 compile it?If I try make I get an error. Thanks On 15 Nov, 09:33, hedwin wrote: > With iptables you can make different rules per interface thuse > allowing you to

Re: [android-kernel] Re: iptables

2010-11-15 Thread hedwin
With iptables you can make different rules per interface thuse allowing you to use ADB but keep the other interfaces in tight control. 2010/11/9 Earlence : > yes. I just followed the instructions on the web page. nothing else. > > To add to my previous post: > iptables was not hanging, adding the

Re: [android-kernel] Re: iptables on msm2.6.29 (donut)

2010-11-11 Thread radovan lekanovic
Hi Erlance, You can add them to the init.rc script then init will do it each time you boot up. Here is some info on how this is done: http://www.kandroid.org/android_pdk/bring_up.html Good luck BR Lekanovic 2010/11/11 Earlence > I found the p

[android-kernel] Re: iptables on msm2.6.29 (donut)

2010-11-11 Thread Earlence
I found the problem. None of the modules were loaded. So I insmod'd all based on the modules.order from the build. Is there anyway to get this done automatically at boot up? Also, none of the modules existed in the device. I manually transferred them to the sdcard and insmod'd from there. Solution

[android-kernel] Re: iptables

2010-11-09 Thread Earlence
yes. I just followed the instructions on the web page. nothing else. To add to my previous post: iptables was not hanging, adding the command to drop all packets were dropping the ADB packets as well! Must use it carefully :) Cheers, Earlence On Nov 9, 2:16 pm, Antonio Conforti wrote: > Thanks

[android-kernel] Re: iptables

2010-11-09 Thread Antonio Conforti
Thanks for you quickly answer...but did you download your source using repo command like this: repo init -u git://android.git.kernel.org/platform/manifest.git ? On Nov 9, 1:40 pm, Earlence wrote: > I think this is because, ADB itself operates over a network connection > with the emulator. > Ad

[android-kernel] Re: iptables

2010-11-09 Thread Earlence
I think this is because, ADB itself operates over a network connection with the emulator. Adding that command drops everything, including ADB packets! Cheers, Earlence On Nov 9, 1:23 pm, Earlence wrote: > You must download the android platform source and build > > source.android.com > > after su

[android-kernel] Re: iptables

2010-11-09 Thread Earlence
You must download the android platform source and build source.android.com after successful download and env setup, you can do something like: $ source build/envsetup.sh $ lunch full_sapphire-userdebug $ make -j6 After some time, in the out/.../sapphire/ you will get all the necessary images. T

[android-kernel] Re: iptables

2010-11-09 Thread Antonio Conforti
I have build my android goldfish downloading git clone git://android.git.kernel.org/project/kernel/common.git then I have downloaded iptables and compiled it!!! I am interested in building an AOSP. Did you download from "http:// android.git.kernel.org/" all project or only some parts? I remember to

[android-kernel] Re: iptables

2010-11-08 Thread Earlence
AOSP = android open source project. I built a complete release version. all packages included (for HTC sapphire) I think you should refer to this: http://www.linuxquestions.org/questions/linux-kernel-70/kernel-iptables-problem-520723/ Also, use the make menuconfig option when building the kernel.

[android-kernel] Re: iptables

2010-11-08 Thread Antonio Conforti
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

[android-kernel] Re: iptables

2010-11-08 Thread Earlence
HTC phone: I have not tried it yet. As I said, I have used goldfish, which is the emulator. On Nov 8, 9:07 am, Earlence wrote: > that option is needed if you want the owner match extension. > to compile: google a bit! there are lots of good resources. you will > find previous threads on this foru

[android-kernel] Re: iptables

2010-11-08 Thread Earlence
that option is needed if you want the owner match extension. to compile: google a bit! there are lots of good resources. you will find previous threads on this forum itself On Nov 7, 3:35 pm, billmeteor chen wrote: > Is that need to compile the kernel? > > How to do that by your steps? > > Can I

[android-kernel] Re: iptables

2010-11-07 Thread billmeteor chen
Is that need to compile the kernel? How to do that by your steps? Can I work it on the HTC phone? On 11月6日, 下午7時12分, Earlence wrote: > correct. > that option should be configured, along with other extensions you may > need. > > Cheers, > Earlence > > On Nov 6, 6:04 am, "wilsonny...@gmail.com

[android-kernel] Re: iptables

2010-11-06 Thread Earlence
correct. that option should be configured, along with other extensions you may need. Cheers, Earlence On Nov 6, 6:04 am, "wilsonny...@gmail.com" wrote: > Is that because the linux kernel was not compiled with > CONFIG_NETFILTER_XT_MATCH_OWNER option so that the netfilter cannot do > anything wi

Re: [android-kernel] Re: iptables

2010-11-05 Thread wilsonny...@gmail.com
Is that because the linux kernel was not compiled with CONFIG_NETFILTER_XT_MATCH_OWNER option so that the netfilter cannot do anything with OWNER option ? Wilson 2010/11/6 billmeteor chen > Can you tell me how to solve this problem? > > FIX ME! implement getprotobynumber() bionic/libc/bionic/

[android-kernel] Re: iptables

2010-11-05 Thread billmeteor chen
Can you tell me how to solve this problem? FIX ME! implement getprotobynumber() bionic/libc/bionic/stubs.c:384 I have the same problem like this. On 11月6日, 上午3時00分, Earlence wrote: > I got it! > > a crucial netfilter config was missing > > CONFIG_NETFILTER_XT_MATCH_OWNER=m > > Once that was

[android-kernel] Re: iptables

2010-11-05 Thread Earlence
I got it! a crucial netfilter config was missing CONFIG_NETFILTER_XT_MATCH_OWNER=m Once that was in, everything worked like a charm! Cheers, Earlence On Nov 4, 8:03 pm, Earlence wrote: > Hi, > > I modified the goldfish defconfig to allow netfilter support. > I also built the full AOSP. > The