You are not logged in.

#1 2013-05-03 20:30:01

juanp_1982
Member
From: Halifax, Nova Scotia, Canada
Registered: 2012-09-02
Posts: 69

tethering internet from my Android device doesn't work

Hi Everybody!

I'm trying to tether internet from my phone, everything seems to be OK, you can see it in this screeshot :
Do not post full size images -- Inxsible

IP address, DNS server are ok, but I don't have internet , what am I missing? I even recompile my kernel follow Geentoo wiki

any Idea or hint?

thanks!

Last edited by Inxsible (2013-05-03 22:07:52)

Offline

#2 2013-05-03 21:07:08

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: tethering internet from my Android device doesn't work

Do you know that this is an Arch problem?  I suspect it is an Android problem, in all likeliness, a problem deliberately created by your phone carrier.

Be that as it may, does tether work on other OSes?  Also, to get my Android to tether (both USB and wireless), I had to change the iptables on the phone to allow it to route correctly from the wlan to the 3g network:

# uname -a
Linux localhost 2.6.37.6-cyanogenmod+ #6 PREEMPT Mon Jan 23 23:31:52 PST 2012 armv7l GNU/Linux
# cat /data/local/userinit.sh
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -P FORWARD ACCEPT
iptables -t nat -A POSTROUTING -o rmnet0 -j MASQUERADE


# 

Make a file like that, reboot, and check your iptables config.  [In case it is not obvious, I am talking of the phone itself]

Last edited by ewaller (2013-05-03 21:08:50)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2013-05-03 21:45:53

juanp_1982
Member
From: Halifax, Nova Scotia, Canada
Registered: 2012-09-02
Posts: 69

Re: tethering internet from my Android device doesn't work

a couple of month I was able to tether without a problem, I think the only difference is that I'm using cyanogenmod 10-1 and before was cyanogenmod 10-0, because of this I was thinking it was a arch/linux problem. I even called my phone service provider and it was alright.

I created userinit.sh with the information that you gave me, but I don't know how to write on /data/local/, could you tell me how? please

Offline

#4 2013-05-03 22:01:39

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: tethering internet from my Android device doesn't work

Yeah, this is turning to an Android tread, so we will keep it quick.

ewaller$@$odin ~ 1004 %pacman -Qo $(which adb)
/opt/android-sdk/platform-tools/adb is owned by android-sdk-platform-tools r16.0.2-1
ewaller$@$odin ~ 1005 %adb shell
# 
# bash
localhost / # uname -a
Linux localhost 2.6.37.6-cyanogenmod+ #6 PREEMPT Mon Jan 23 23:31:52 PST 2012 armv7l GNU/Linux
localhost / # which vi
/system/xbin/vi
localhost / # 

Install the android package, tell the phone to allow ADB debugging, and use a shell


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB