alex1491163117 / android-wifi-tether

Automatically exported from code.google.com/p/android-wifi-tether
0 stars 0 forks source link

Routing Fix Fails #1228

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Which device (manufacturer, type)?
HTC Evo 4G

Which firmware is installed?
Android 2.3.3 (MikG HTC Sense 2.1 + 3.0 2.59

What version of wireless tether are you using?
WiFi Tether v3.1 beta6

What steps will reproduce the problem?
1. Launch WiFi Tether
2. Enable "Routing Fix" (May be turned on by default)
3. Start tether
4. Once tether is started message saying 'Tether is started with errors'.

What is the expected output? What do you see instead?
Previously running v3.1 beta4, and Tether started without issues.  Updated to 
v3.1 beta6, and now there is an issue with the routing fix.  Also beta4 used to 
say that the routing fix was specifically for HTC devices.  In the Wifi tether 
settings it doesn't say this anymore.  Has something changed, and is the 
routing fix no longer necessary for HTC devices?

Please provide any additional information below.
I have tried beta6 on Froyo and Gingerbread based sense roms.  The problem has 
carried over between roms.  Will be downgrading back to beta 4 until this can 
be resolved, or otherwise informed

Original issue reported on code.google.com by Alchemis...@gmail.com on 11 Nov 2011 at 2:18

Attachments:

GoogleCodeExporter commented 8 years ago
issue also occurring in pre101

Original comment by Alchemis...@gmail.com on 11 Nov 2011 at 2:44

GoogleCodeExporter commented 8 years ago
Same thing happens here. same stats

Original comment by shane...@gmail.com on 21 Nov 2011 at 4:00

GoogleCodeExporter commented 8 years ago
Well. I've changed the routing-fix procedure to make it work on the evo 3d ... 
looks like this has broken it on the evo. (I don't own any of these device - 
hard to test for me).

Anyway ... it would be very helpful if you could try to start from commandline 
(via adb). This generates some additional output. Please install the latest 
pre-version (available in download-section), enable "routing fix" and 
start/stop at least one time via gui (this generates device-specific 
config-files).

Now ... connnect via adb and execute following commands:

adb shell
su
cd /data/data/com.googlecode.android.wifi.tether/bin
./tether start

You should see some output. Please post this output here.

Thanks.

Original comment by harald....@gmail.com on 21 Nov 2011 at 10:37

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Here is the output.  I blanked out my key and removed my PSK for security 
purposes.  If there's anything else you need please let me know

KEY ==> '***' length(3), SSID ==> 'Alchemy.EVO' length(11), PSK ==> '***'
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/ifconfig eth0 
10.10.1.254 netmask 255.255.255.0]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/ifconfig eth0 
up]
about to run: [/system/bin/ip rule add to 10.10.1.0/24 lookup main priority 50]
RTNETLINK answers: Address family not supported by protocol
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -N 
wireless-tether]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -F 
wireless-tether]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -F 
FORWARD]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -t 
nat -F PREROUTING]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -t 
nat -F POSTROUTING]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -t 
nat -F]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -A 
wireless-tether -m state --state ESTABLISHED,RELATED -j ACCEPT]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -A 
wireless-tether -s 10.10.1.0/24 -j ACCEPT]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -A 
wireless-tether -p 47 -j ACCEPT]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -A 
wireless-tether -j DROP]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -A 
FORWARD -m state --state INVALID -j DROP]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -A 
FORWARD -j wireless-tether]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -t 
nat -I POSTROUTING -s 10.10.1.0/24 -j MASQUERADE]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/dnsmasq -i 
eth0 --dhcp-authoritative --no-negcache --user=root --no-resolv --no-hosts 
--server=8.8.8.8 --server=8.8.4.4 --dhcp-range=10.10.1.100,10.10.1.108,12h 
--dhcp-leasefile=/data/data/com.googlecode.android.wifi.tether/var/dnsmasq.lease
s --pid-file=/data/data/com.googlecode.android.wifi.tether/var/dnsmasq.pid]
script result was []

Original comment by Alchemis...@gmail.com on 22 Nov 2011 at 1:30

GoogleCodeExporter commented 8 years ago
Mmmh. Looks like a kernel-feature is missing. Maybe "CONFIG_IP_MULTIPLE_TABLES" 
...

Could you please upload your kernel-config. You can pull it from your device 
with ...

adb pull /proc/config.gz

Thanks.

BTW ... tethering does not work for you if "routing fix" is disabled?

Original comment by harald....@gmail.com on 23 Nov 2011 at 6:57

GoogleCodeExporter commented 8 years ago
I have tried the new beta7 and it still errors out when applying routing fix. 
beta6 and beta5 do the same thing. it seems beta4 is the only one that will 
work without any routing fix errors. 

tethering will still work on the newer betas but speeds are way below 1meg 
without the routing fix.

i am happy to help troubleshoot but i am not sure how to run those tests you 
mention above. Please let me know how i can help.

HTC evo 4g (sprint)
2.3.3
beta4 (only version that doesn't error on routing fix)

Original comment by shane...@gmail.com on 1 Dec 2011 at 8:59

GoogleCodeExporter commented 8 years ago
everything i've tested so far appears to work, haven't had a chance to test a 
couple things i use on rare occasions, regardless of wether the routing fix is 
on or off

Original comment by Alchemis...@gmail.com on 2 Dec 2011 at 1:53

Attachments:

GoogleCodeExporter commented 8 years ago
Hey harald, I'm having the same issue as well on the evo 3d, I would love to 
help out as well with getting the issue fixed, later when I get the chance ill 
upload the log/ file as well.

and on my evo 3d if routing fix isn't on tethering does't work and with it on 
extremely slow bandwidth around 3-5kb . Tested it out on another 3d with same 
results

Original comment by colbert...@gmail.com on 2 Dec 2011 at 1:56

GoogleCodeExporter commented 8 years ago
ok did some more testing, and udp connections aren't going through.  just won't 
connect...no error just times out

Original comment by Alchemis...@gmail.com on 4 Dec 2011 at 1:17

GoogleCodeExporter commented 8 years ago
is anything else you would like me to try?

Original comment by Alchemis...@gmail.com on 13 Dec 2011 at 7:19

GoogleCodeExporter commented 8 years ago
Could you please confirm (see comment 7) that beta4 (which is still available 
in download-section) works?

We changed the routing-fix to make it work on the evo 3d ... so it's possible 
that these changes break it on the evo 4g.

Original comment by harald....@gmail.com on 13 Dec 2011 at 8:02

GoogleCodeExporter commented 8 years ago
I can confirm that the EVO shift 4G has the same problem

Original comment by etgole...@gmail.com on 28 Jan 2012 at 9:04

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
output from beta4 with screenshots of the gui log

+++++++++++++++++Start Output+++++++++++++++++++++++

KEY ==> '***' length(9), SSID ==> 'Alchemy.EVO' length(11), PSK ==> '***'
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/ifconfig eth0 
10.10.1.254 netmask 255.255.255.0]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/ifconfig eth0 
up]
about to run: [exec 
/data/data/com.googlecode.android.wifi.tether/bin/fixroute.sh eth0 
10.10.1.0/2410.10.1.254 & echo $! > 
/data/data/com.googlecode.android.wifi.tether/var/fixroute.pid]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -N 
wireless-tether]iptables: Chain already exists
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -F 
wireless-tether]Error: argument "wimax" is wrong: table id value is invalid
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -F 
FORWARD]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -t 
nat -F PREROUTING]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -t 
nat -F POSTROUTING]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -t 
nat -F]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -A 
wireless-tether -m state --state ESTABLISHED,RELATED -j ACCEPT]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -A 
wireless-tether -s 10.10.1.0/24 -j ACCEPT]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -A 
wireless-tether -p 47 -j ACCEPT]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -A 
wireless-tether -j DROP]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -A 
FORWARD -m state --state INVALID -j DROP]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -A 
FORWARD -j wireless-tether]
about to run: [/data/data/com.googlecode.android.wifi.tether/bin/iptables -t 
nat -I POSTROUTING -s 10.10.1.0/24 -j MASQUERADE]
Error: argument "wimax" is wrong: table id value is invalid

about to run: [/data/data/com.googlecode.android.wifi.tether/bin/dnsmasq -i 
eth0 --dhcp-authoritative --no-negcache --user=root --no-resolv --no-hosts 
--server=8.8.8.8 --server=8.8.4.4 --dhcp-range=10.10.1.100,10.10.1.108,12h 
--dhcp-leasefile=/data/data/com.googlecode.android.wifi.tether/var/dnsmasq.lease
s --pid-file=/data/data/com.googlecode.android.wifi.tether/var/dnsmasq.pid]
script result was []
# Error: argument "wimax" is wrong: table id value is invalid

Error: argument "wimax" is wrong: table id value is invalid

Error: argument "wimax" is wrong: table id value is invalid

Error: argument "wimax" is wrong: table id value is invalid

Error: argument "wimax" is wrong: table id value is invalid

+++++++++++++++++End Output+++++++++++++++++++++++++
It just repeats the last line until i exit shell

Original comment by Alchemis...@gmail.com on 29 Jan 2012 at 10:50

Attachments:

GoogleCodeExporter commented 8 years ago
I tried beta4 and I didn't get any errors on the device but the pc refused to 
connect

Original comment by etgole...@gmail.com on 30 Jan 2012 at 11:14

GoogleCodeExporter commented 8 years ago
@etgole what is your current setup?
ROM:
Kernal:
Modz:

Original comment by Alchemis...@gmail.com on 30 Jan 2012 at 11:48

GoogleCodeExporter commented 8 years ago
Rooted
Stock android: 2.3.3
HTC sence: 2.1
Software number: 2.76.651.4

Kernel:
2.6.35.10-gd42fbcf
HTC-kernel@and18-2 #1
Tue may 24 19:44:59 lst 2011

Original comment by etgole...@gmail.com on 31 Jan 2012 at 5:38

GoogleCodeExporter commented 8 years ago
Ive also flashed cyanogen but reverted because of buttons not working and 
reverted to stock I did not have the chance to test the tether but I figured 
the problem was more related to my device I can try it on cyanogen if you like

Original comment by etgole...@gmail.com on 31 Jan 2012 at 5:41

GoogleCodeExporter commented 8 years ago
if you are using the kernal that came with the shift, that is more than likely 
the issue.  As far as I know HTC kernals don't support netfilter (iptables).

Original comment by Alchemis...@gmail.com on 31 Jan 2012 at 7:32

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Could you recommend any time that might work other than cyanogen

Original comment by etgole...@gmail.com on 1 Feb 2012 at 12:44

GoogleCodeExporter commented 8 years ago
if your talking about roms or kernels for the evo shift 4g i couldn't help you, 
but i can point you in the right direction.  xda developers have a sub forum 
specific to the evo shift. you should be able to find everything you need in 
there.  most (if not all custom kernels come with netfilter built in.

http://forum.xda-developers.com/forumdisplay.php?f=935

Original comment by Alchemis...@gmail.com on 1 Feb 2012 at 1:30

GoogleCodeExporter commented 8 years ago
Well thanks now to find a kernel that works till the resolve the cyanogen bug

Original comment by etgole...@gmail.com on 1 Feb 2012 at 11:51

GoogleCodeExporter commented 8 years ago
Hi guys,

Any resolution for the "Routing Fix ... Failed" error? I have an HTC Evo 4g, 
custom ROM, and pretty much all versions 3 and up gave my phone the Routing Fix 
error. 

Original comment by reeseru...@gmail.com on 23 Aug 2014 at 5:20