New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
View Poll Results: Do you really want netfilter?
Definitely ! 211 73.52%
No need 14 4.88%
Whatever... 7 2.44%
What the heck is netfilter? 55 19.16%
Voters: 287. You may not vote on this poll

 
Post Reply+
Tip us?
 
doixanh
Old
(Last edited by doixanh; 20th April 2011 at 01:19 PM.)
#1  
Recognized Developer - OP
Thanks Meter 4718
Posts: 1,247
Join Date: Jan 2011

 
DONATE TO ME
Default [DEV] netfilter for x8

Well, another module. A guy called me a module man

If we can compile this module we can (hopefully) have native usb/wifi tether on our phone.

Other benefits:
- Firewall apps
- Transparent proxies
- NAT

I'll start trying to make this work on our current kernel. Contribution is appreciated.

Github repo is here : https://github.com/doixanh/X8Features

PLEASE DON'T SPAM THIS DEV THREAD WITH UNCONTRIBUTED POSTS
IScreamDX v004 | GingerDX v028 | GingerDX v015 for GT-I9000 | LinuxDX v004 | FroyoBread v023b FINAL | X8Gesture v007
X8Overclock v004 | X8Undervolt v001 | X8MDDI v001 | X8Kconfig v001 | X8Netfilter dev | FroyoBeam dev | X10MPMultitouch

shakira/gdx31stock - best experience ever | galaxysmtd/slimbean | p1/cm | anzu/slimbean | maguro/slimbean
The Following 32 Users Say Thank You to doixanh For This Useful Post: [ Click to Expand ]
 
LFSPovo
Old
#2  
LFSPovo's Avatar
Member
Thanks Meter 19
Posts: 95
Join Date: Jan 2011
Location: Dublin
Once again, great work!

Continue with the modules, you are solving many things extremely fast!

Big thank you from me for contributing to the X8 community!
Sony Ericsson Xperia PLAY
Running 2.3.7 TrueAncestor ROM
Clocked @ 1.0 gHz
8GB SDHC Card + Sennheiser CX 200 Street II in-earphones

Android phone history:
SE Xperia X8 -> Chinese Android L601 -> SE Xperia PLAY
The Following User Says Thank You to LFSPovo For This Useful Post: [ Click to Expand ]
 
nobodyAtall
Old
#3  
nobodyAtall's Avatar
Recognized Developer
Thanks Meter 18459
Posts: 1,501
Join Date: Jan 2008
Location: Patras

 
DONATE TO ME
All u need to do is implement the needed hooks missing from the stock kernel for iptables to attach on.

Sent from my GB MiniCM
The Following User Says Thank You to nobodyAtall For This Useful Post: [ Click to Expand ]
 
He3aBuCuM
Old
#4  
Junior Member
Thanks Meter 2
Posts: 18
Join Date: Feb 2011
Location: Sofia
Hello. If this module get worked, will be able the reverse usb tether(PC -> phone). I.e to have internet on my phone from the computer via USB.
 
Drakenfall
Old
#5  
Senior Member
Thanks Meter 20
Posts: 186
Join Date: Jun 2010
Can someone explain what is this?
 
Doomguy
Old
#6  
Doomguy's Avatar
Member
Thanks Meter 4
Posts: 54
Join Date: Dec 2010
Great job! I use third-party programs, but is good to have native tether. One question. Will I need drivers for PC with native tether?
 
andrej456
Old
#7  
andrej456's Avatar
Member
Thanks Meter 90
Posts: 71
Join Date: Feb 2011
http://www.google.com/url?sa=t&sourc...g537lg&cad=rja
maybe it help
 
treebill
Old
#8  
treebill's Avatar
Senior Member
Thanks Meter 350
Posts: 1,430
Join Date: Jan 2011
Quote:
Originally Posted by He3aBuCuM View Post
Hello. If this module get worked, will be able the reverse usb tether(PC -> phone). I.e to have internet on my phone from the computer via USB.
no this would allow your phone to become a wifi hot spot, why would you need it the other way? if you have no wifi network you can download APK's to your computer and move to phone and install from your SD card

it would also allow you to use firewall apps to block all apps but the ones you want from connecting to your mobile internet to save you money.
HTC one x CyanogenMod 10.1, XM #188v4

@vorticalbox
 
doixanh
Old
(Last edited by doixanh; 13th April 2011 at 03:56 PM.)
#9  
Recognized Developer - OP
Thanks Meter 4718
Posts: 1,247
Join Date: Jan 2011

 
DONATE TO ME
So far, I managed to compile and insmod "netfilter.ko" with no error. But whenever I try to insmod iptable_filter.ko, I got a kernel crash.

The following modules has been insmoded - ordered to solve module dependencies.
insmod netfilter.ko
insmod x_tables.ko
insmod xt_tcpudp.ko
insmod nf_sockopt.ko
insmod ip_tables.ko
insmod ipt_addrtype.ko
insmod iptable_filter.ko <--- crashed here

Kernel crash message:
Code:
[  466.135716] [<bf06b354>] (nf_register_hook+0x0/0x90 [netfilter]) from [<bf06b408>] (nf_register_hooks+0x24/0x64 [netfilter])
It seems the our nf_register_hook is not working.

Some logs:
Code:
[  163.394843] nf_register_hook reg=BF059844
[  163.395055] mutex locking
[  163.395905] list for each entry pf=2, hooknum=1
<1>Unable to handle kernel NULL pointer dereference at virtual address 00000000
IScreamDX v004 | GingerDX v028 | GingerDX v015 for GT-I9000 | LinuxDX v004 | FroyoBread v023b FINAL | X8Gesture v007
X8Overclock v004 | X8Undervolt v001 | X8MDDI v001 | X8Kconfig v001 | X8Netfilter dev | FroyoBeam dev | X10MPMultitouch

shakira/gdx31stock - best experience ever | galaxysmtd/slimbean | p1/cm | anzu/slimbean | maguro/slimbean
 
nobodyAtall
Old
#10  
nobodyAtall's Avatar
Recognized Developer
Thanks Meter 18459
Posts: 1,501
Join Date: Jan 2008
Location: Patras

 
DONATE TO ME
Could u share sources for those? Thanks.

Sent from my X10mini using XDA App