Wifi with radio off - G1 Q&A, Help & Troubleshooting

I almost never use the phone on my G1 so to save battery I keep it in airplane mode. This means I have to turn the wifi on at boot all the time.
I'm wondering how to do the equivalent of:
Ifconfig wlan0 up
Also, what's androids equivalent of rc.local ?
sent via XDA app on my G1/Dream Rogers
hboot-1.33.0013d
radio-2.22.27.08
update-cm-6.1.0-RC1-DS-2708port_S

Figured out a few things.
Ifconfig tiwlan0 up / down will work only as long as the wifi is started by normal methods.
So, that's a non starter.
I notice from dmesg the commands wifi_remove and wifi_probe. I tried each with su on the command line. They each run without error but have no effect.
So, I continue my quest to have wifi at boot with airplane mode on.
I know this may seem innocuous to some but running wifi in airplane mode saves my battery far more than all other methods combined.
I am not looking for, or expecting an app for this. I expect this will be a shell script I'll have to create which I'm more than comfortable doing.
Just looking for a few android shell > linux shell translations.
sent via XDA app on my G1/Dream Rogers
hboot-1.33.0013d
radio-2.22.27.08
update-cm-6.1.0-RC1-DS-2708port_S

Related

Wireless ADB

If someone got the IP and port you use for wireless adb, could they hack your phone, if you had the service running
Don't you need to run this via a computer, of which you would need to be on that networks wifi, which is hopefully password protected.
What are the changes someone hacks into peoples wifi and starts running adb devices in hopes of getting access to an android phone...
blas4me said:
If someone got the IP and port you use for wireless adb, could they hack your phone, if you had the service running
Click to expand...
Click to collapse
hack, like with an axe ?
ohhh, you mean open a shell, with root priv's... i'm actually not going to lose any sleep over it... being that Windows Phone 7 is going to 'dominate', 'terrify', and 'obliterate' android in the coming weeks of holiday sales.
or something
Nothing is impossible
Private networks get hacked, I just want to know if it's possible. I'm not sure that's why I'm asking.
Wireless ADB is an open shell without security.
Of course, if anyone connects, he can do anything with your phone that ADB allows. It's not called "hacking".
There's absolutely no reason to run ADB service unless you're actively working on your phone.
Private networks that are penetrated have crap for basic security. WPA can't be broken for half a decade, and with key change interval below 13 min it can't even be poisoned.

[Q] Missing 802.1X Protocols?

My university has a dedicated 802.1X connection specifically for mobile devices that I've been able to hook my Samsung Intercept (rooted, running 2.2) up to. The directions for connecting any Android platform to the connection is fairly straightforward:
Use these settings:
• EAP Method: TTLS
• Phase 2 authentication: PAP
• CA Certificate: (leave as N/A)
• Client Certificate: (leave as N/A)
• Identity: <GW NetID>
• Anonymous identity: (leave blank)
•Wireless password: <NetID password>
Click to expand...
Click to collapse
The thing is though, the NC's wireless tab doesn't allow for EAP Method input or Phase 2 authentication. Is there any way for me to access those protocols and connect?
MashableMe said:
My university has a dedicated 802.1X connection specifically for mobile devices that I've been able to hook my Samsung Intercept (rooted, running 2.2) up to. The directions for connecting any Android platform to the connection is fairly straightforward:
The thing is though, the NC's wireless tab doesn't allow for EAP Method input or Phase 2 authentication. Is there any way for me to access those protocols and connect?
Click to expand...
Click to collapse
Same as Android always is... Configure it as much as you can, then use this app to configure it all the way: http://www.appbrain.com/app/wifi-advanced-config-editor/org.marcus905.wifi.ace
Downloaded the suggested app, but for some reason whenever i moddify the protocols they snap right back as soon as i navigate away from the page. Any suggestions?
Same happened to me. It's the phase 2 encryption (PAP) that always snaps back. Tried on Nookie without any problem (just stock froyo wifi functionally, not by configuring wifi advanced configuration editor). So the there should be no hardware issue. I bet B&N's crippled OS lacks support for PAP.
MashableMe said:
Downloaded the suggested app, but for some reason whenever i moddify the protocols they snap right back as soon as i navigate away from the page. Any suggestions?
Click to expand...
Click to collapse
Haven't had any issues with my Nook Color and 802.1x/PEAP/TKIP/RADIUS/MS-CHAPv2.
In wifi advanced configuration editor it ways revert phase 2 to MS-CHAPv2, so I guess that's the only one B&N implemented, which also explains why it works in your case.
RasputinAXP said:
Haven't had any issues with my Nook Color and 802.1x/PEAP/TKIP/RADIUS/MS-CHAPv2.
Click to expand...
Click to collapse
Crap, you're right.. But not quite. Phase2 doesn't seem to save right at all.. If you set it to None, you can't set it back to any of them...
Could try editing the wpa_supplicant.conf file
Tried that but instructions on nookdevs are not very clear. Can you point me to a more thorough documentation?
khaytsus said:
Crap, you're right.. But not quite. Phase2 doesn't seem to save right at all.. If you set it to None, you can't set it back to any of them...
Could try editing the wpa_supplicant.conf file
Click to expand...
Click to collapse
jianglai said:
Tried that but instructions on nookdevs are not very clear. Can you point me to a more thorough documentation?
Click to expand...
Click to collapse
Well, probably the easiest way is this, since the tool I mentioned doesn't work.. Sucks, because it does work on my Nexus One. But if the protocols aren't supported this obviously won't magically make it work, but I doubt that's really an issue.
First off, turn off wifi if you can.. If you're using wifi adb, then turn off wifi and back on when you complete this..
Code:
adb pull /data/misc/wifi/wpa_supplicant.conf
(edit wpa_supplicant.conf)
adb push wpa_supplicant.conf /data/misc/wifi/
However... You'll PROBABLY have to fix its permissions, as I suspect they'll be wrong, and if so, wifi won't work at all until you do. So here's how you'd fix that:
Code:
adb shell
su
cd /data/misc/wifi
chown system.wifi wpa_supplicant.conf
chmod 660 wpa_supplicant.conf
I suggest toggling wifi on/off again... If you have any issues, double check your file ownership and permissions.
BTW, if you're really adventurous, you could do it directly in vi Unless you know how to use vi, use the above...
Code:
adb shell
su
cd /data/misc/wifi
vi wpa_supplicant.conf
Great! So what I did is to connect to our network through setting-wireless. After entering username and password it just says remembered but never tried to connect. And in wifi advanced configuration editor even though I could choose TTLS and PAP, the PAP part always snaps back to default when I leave the editor, which makes me think it might be a permission problem. So i pulled the .conf file, edited it and pushed it back then changed ownership and permission as you suggested, everything works perfectly since then!!! Thank you so much!
BTW, in adb shell it seems I do not have vi... All I installed is the basic SDK as suggested in nookdevs, is there anymore packages I should install to have more tools like vi?
khaytsus said:
Well, probably the easiest way is this, since the tool I mentioned doesn't work.. Sucks, because it does work on my Nexus One. But if the protocols aren't supported this obviously won't magically make it work, but I doubt that's really an issue.
First off, turn off wifi if you can.. If you're using wifi adb, then turn off wifi and back on when you complete this..
Code:
adb pull /data/misc/wifi/wpa_supplicant.conf
(edit wpa_supplicant.conf)
adb push wpa_supplicant.conf /data/misc/wifi/
However... You'll PROBABLY have to fix its permissions, as I suspect they'll be wrong, and if so, wifi won't work at all until you do. So here's how you'd fix that:
Code:
adb shell
su
cd /data/misc/wifi
chown system.wifi wpa_supplicant.conf
chmod 660 wpa_supplicant.conf
I suggest toggling wifi on/off again... If you have any issues, double check your file ownership and permissions.
BTW, if you're really adventurous, you could do it directly in vi Unless you know how to use vi, use the above...
Code:
adb shell
su
cd /data/misc/wifi
vi wpa_supplicant.conf
Click to expand...
Click to collapse
jianglai said:
Great! So what I did is to connect to our network through setting-wireless. After entering username and password it just says remembered but never tried to connect. And in wifi advanced configuration editor even though I could choose TTLS and PAP, the PAP part always snaps back to default when I leave the editor, which makes me think it might be a permission problem. So i pulled the .conf file, edited it and pushed it back then changed ownership and permission as you suggested, everything works perfectly since then!!! Thank you so much!
BTW, in adb shell it seems I do not have vi... All I installed is the basic SDK as suggested in nookdevs, is there anymore packages I should install to have more tools like vi?
Click to expand...
Click to collapse
Woot, it worked! I mean.. You're welcome!
Aha, vi must have come from the busybox I installed maybe.... Perhaps the one from Titanium?
Thanks a lot for these directions, as soon as I got adb working it worked perfectly! I first tried to do this using on-device apps since I was having trouble installing ADB, and that didn't work. This just proved that it is absolutely necessary to use adb to do this. Regardless, it works, i'm happy!
Another Workable Idea...
So my work has 802.1x EAP PEAP authentication for the wifi. I tried the advanced wifi editor, but that didn't work. Tried editing the wpa file, that didnt work. When I connected I was always being rerouted to a screen to download a certificate for authentication.
So I used the HC SD bootable rom and was able to manipulate the wifi settings like you can on your android phone, and connect to the wifi. When I pulled out the SD and rebooted into Autonooter 3.0 the authentication stuck and now the 802.1x wifi network is rocking on.
Just thought you all might like an update.
bnole said:
So my work has 802.1x EAP PEAP authentication for the wifi. I tried the advanced wifi editor, but that didn't work. Tried editing the wpa file, that didnt work. When I connected I was always being rerouted to a screen to download a certificate for authentication.
So I used the HC SD bootable rom and was able to manipulate the wifi settings like you can on your android phone, and connect to the wifi. When I pulled out the SD and rebooted into Autonooter 3.0 the authentication stuck and now the 802.1x wifi network is rocking on.
Just thought you all might like an update.
Click to expand...
Click to collapse
Considering you made wifi changes in HC on your SD card then booted your stock, nothing "stuck". Each time you connect your wifi will re-authenticate, in fact it'll re-authenticate on some systems multiple times per hour.

Bluetooth PAN tethering to an android phone - works! (CM7)

I don't have enough posts yet to put this on the developers side, but after digging through a lot of posts, I've pieced together how to tether my CM7 Nook to another android device, and figured a few folks would want to try it as well.
The particulars: On the Nook, I am running the nightly build 31 of CM7.
Whichever phone you want to use has to be rooted, and have the 'wireless tether' app installed. It also has to be able to use bluetooth PAN (as opposed to DUN). I think most android phones do, but my friends blackberry only supports DUN.
First, on the phone: Turn on Bluetooth, and then go to settings>About Phone>Status and write down the bluetooth address, which is six hex numbers separated by colons.
Next, still on the phone, launch wireless tether, and go to the settings page. Check the 'Use Bluetooth' checkbox. Make sure the 'discoverable' checkbox is ticked as well, then go back to the main screen, and press the 'press to start tethering'.
On the Nook, start bluetooth, go to bluetooth settings and scan for devices (if needed); you should see the phone appear on the 'bluetooth devices' list. Pair up with it by clicking on it. Both the Nook and the phone will pop up a PIN dialog, accept that, and you should be seeing 'Paired but not connected' status.
Next, still on the Nook, open a terminal window, and type the following commands (substitute the bluetooth address of the phone you wrote down, INCLUDING THE COLONS in place of the xx's below).
EDIT: before pand, you need root access; use the su command
pand --connect xx:xx:xx:xx:xx:xx
netcfg bnep0 up
netcfg bnep0 dhcp
setprop net.dns1 8.8.8.8
you should now have net access via the tether!
The pand is the configuration demon for the PAN protocol, and that first line ties the bluetooth phone to a network interface named bnep0
The netcfg command activates that interface, and gets an address dhcp'd to it.
and the setprop command sets the DNS (in this case to google's DNS server).
I know many have said they only have limited bluetooth range, but either they have fixed that, or I'm one of the lucky ones, I could still get data on my Nook with the phone almost 30 feet away!
Very cool. Do you notice packet slow down in data speeds the farther you are from the device.
My experience with BT audio is I could not listen to my audio file if I was more than 6" away from my device once I was 12" the signal would drop off/on.
Works well. Now to automate it.
Just did it. Works perfectly! Thanks for the tip. Wonder why the range is so much better tethering than with other accessories. Maybe because the nook is receiving instead of transmitting?
Sent from my NookColor using Tapatalk
Anyone know if this would work with an iphone?
From 1.1 Nook Color with 1.1 ghz overclock
Aw, I had pulled out my Blackberry and was looking up the Mac address before I read that it wouldn't work with Bluetooth DUN. Really cool find though!
This works fine for browsing and a few apps but most of the native apps (email, Gmail, Market, Mapps, etc) do not see a data connection.
Yes, it should work with an iphone; I think I saw some other threads talking about it, I just don't know the steps on the iphone to configure the tethering.
DUN and the blackberry; we need the DUN daemon!
Yeah, a firend of mine has a blackberry and a Nook, and was disappointed that there isn't DUN support (yet).
However, the official open source documentation mentions that there is not only the PAN daemon (pand), but also a DUN daemon, dund. It just isn't included in the cyanogen builds.
I still don't have enough posts to post to the developers side; if anyone could put a request in for dund we might be in business!
As for the range, it seems to be very dependent on what you're tethering to. The tether to the phone last night was a long distance, (the data rate did slow down a bit with distance, to answer the question above, but not badly). But, trying to link to a headset (with mixed success, still working on it), the range wasn't as good. And trying another phone, the range was pretty bad, only a couple of feet.
carrc said:
I still don't have enough posts to post to the developers side; if anyone could put a request in for dund we might be in business!
Click to expand...
Click to collapse
If you have less then 10 posts you can not start a new thread in the Dev section, but you can add a reply to an existing thread.
painter_ said:
If you have less then 10 posts you can not start a new thread in the Dev section, but you can add a reply to an existing thread.
Click to expand...
Click to collapse
I don't think this is correct. I tried to reply to the "CM7 with Honycomb features" thread, but was denied because I have less that 10 posts.
So I trolled a couple of General threads to get my count past 10.
=X=
=X= said:
I don't think this is correct. I tried to reply to the "CM7 with Honycomb features" thread, but was denied because I have less that 10 posts.
So I trolled a couple of General threads to get my count past 10.
=X=
Click to expand...
Click to collapse
I have seen people with less then 10 post in the CM development threads.
Who knows??
carrc said:
Yeah, a firend of mine has a blackberry and a Nook, and was disappointed that there isn't DUN support (yet).
However, the official open source documentation mentions that there is not only the PAN daemon (pand), but also a DUN daemon, dund. It just isn't included in the cyanogen builds.
Click to expand...
Click to collapse
This is very cool! Since I have a BB Curve, I'll have to wait until there is DUN support too, like I do with my iTouch and the BB.
Hi,
I was hoping I could use Bluetooth tethering with my non-rooted Android phone.
There is an application called 'PDANet' in the market with Bluetooth tethering, but
it only does DUN tethering. (free partly functional version, paid full function).
Easytether (market) promises Bluetooth DUN tethering in the future sometime.
In the process of trying to get Bluetooth tethering to work, I
found 'GScript Lite' in the market, very easy way to enter and run shell
scripts like the one on the original post from within Android UI. Looks like
it hasn't been updated to run on tablet, but seemed functional.
Hope this helps someone.
Peter
Has anyone had luck in getting the gmail and email app to work on a bluetooth PAN connection? I can use the web browser and some other apps like USA today but not the email apps.
carrc said:
I don't have enough posts yet to put this on the developers side, but after digging through a lot of posts, I've pieced together how to tether my CM7 Nook to another android device, and figured a few folks would want to try it as well.
The particulars: On the Nook, I am running the nightly build 31 of CM7.
Whichever phone you want to use has to be rooted, and have the 'wireless tether' app installed. It also has to be able to use bluetooth PAN (as opposed to DUN). I think most android phones do, but my friends blackberry only supports DUN.
First, on the phone: Turn on Bluetooth, and then go to settings>About Phone>Status and write down the bluetooth address, which is six hex numbers separated by colons.
Next, still on the phone, launch wireless tether, and go to the settings page. Check the 'Use Bluetooth' checkbox. Make sure the 'discoverable' checkbox is ticked as well, then go back to the main screen, and press the 'press to start tethering'.
On the Nook, start bluetooth, go to bluetooth settings and scan for devices (if needed); you should see the phone appear on the 'bluetooth devices' list. Pair up with it by clicking on it. Both the Nook and the phone will pop up a PIN dialog, accept that, and you should be seeing 'Paired but not connected' status.
Next, still on the Nook, open a terminal window, and type the following commands (substitute the bluetooth address of the phone you wrote down, INCLUDING THE COLONS in place of the xx's below).
EDIT: before pand, you need root access; use the su command
pand --connect xx:xx:xx:xx:xx:xx
netcfg bnep0 up
netcfg bnep0 dhcp
setprop net.dns1 8.8.8.8
you should now have net access via the tether!
The pand is the configuration demon for the PAN protocol, and that first line ties the bluetooth phone to a network interface named bnep0
The netcfg command activates that interface, and gets an address dhcp'd to it.
and the setprop command sets the DNS (in this case to google's DNS server).
I know many have said they only have limited bluetooth range, but either they have fixed that, or I'm one of the lucky ones, I could still get data on my Nook with the phone almost 30 feet away!
Click to expand...
Click to collapse
Thank you for posting this. I just had my NC rooted, running cm7; android 2.3.3 and am looking to get a compatible phone (I have a BB bold). I have asked in a different thread about which phone to get...but I wanted to ask you where I can find the "terminal window" you talk about? I believe I will need to do this myself (after paying $178 for the rooting).
midsouth said:
Thank you for posting this. I just had my NC rooted, running cm7; android 2.3.3 and am looking to get a compatible phone (I have a BB bold). I have asked in a different thread about which phone to get...but I wanted to ask you where I can find the "terminal window" you talk about? I believe I will need to do this myself (after paying $178 for the rooting).
Click to expand...
Click to collapse
Wait, hold on a second... you paid what for someone to root your phone? You paid anything at all, you paid too much, you can do this super easy man. Please tell me that was a typo for $1.78 because you bought the person doing your rooting a cup of coffee. Please!
There is an app/widget for BT PAN tethering now: http://forum.xda-developers.com/showthread.php?t=1032834

Bluetooth PAN Tethering fix

Hi,
Bluetooth PAN Tethering on Motorola Bionic/Droid 3 has 2 bugs:
1. DNSMASQ can't start because does not understand IPv6 addresses as DNS but android write it to the btip.conf
2. Bionic does not use STDIN DNSMASQ control (it write DNS option to btip.conf). But DNSMASQ still listen STDIN and try to execute empty commands and it use 100% CPU.
I made new dnsmasq that fix both problems. You can put it to /system/bin/dnsmasq and use Bluetooth PAN Tethering.
Backup original copy of dnsmasq by
Code:
adb pull /system/bin/dnsmasq
Make sure that you make /system writable and then copy new dnsmasq
Code:
adb push dnsmasq /data/local/
adb shell
$su -
#cp /data/local/dnsmasq /system/bin/dnsmasq
#rm /data/local/dnsmasq
Known issues:
1. some times after disconnect you need to restart (disable->enable) bluetooth on Bionic to connect again.
2. If you used Mobile hotspot then you need to reboot your phone to use PAN service again (for some reason NAT does not work in PAN mode after using mobile hotspot).
Dmitry
PS. I guess that Bluetooth tethering is not detectable yet.
Update 10/14/2011
I have updated exe and patch to fix Mobile Hotspot mode.
This is extremely good work my friend. I hope you continue to make leaps snd bounds on the bionic!
I would also like to know if this wwould work for tethering my Xoom?
Brenardo said:
I would also like to know if this wwould work for tethering my Xoom?
Click to expand...
Click to collapse
It should to work. I tried with ASUS eee Pad and it is work fine.
Does PAN tethering allow you to use any app that requires internet? I know DUN will only allow a few apps (Browser, Mail, Maps) to work.
I just checked IM+ on my ASUS eee Pad and everything work fine.
Nice! Just got it working with my Transformer. I am seeing pretty slow speeds though (about .8mb down and 1.5mb up) while if I do a speed test on my phone I get 6mb down and about 7mb up. Are you guys seeing these slow speeds as well?
elislurry said:
Nice! Just got it working with my Transformer. I am seeing pretty slow speeds though (about .8mb down and 1.5mb up) while if I do a speed test on my phone I get 6mb down and about 7mb up. Are you guys seeing these slow speeds as well?
Click to expand...
Click to collapse
I guess it is maximum Bluetooth connection speed.
ddv2005 said:
I guess it is maximum Bluetooth connection speed.
Click to expand...
Click to collapse
Hmm it should be able to do at least 2.1mb/sec I will look into it and see what I find.
elislurry said:
Hmm it should be able to do at least 2.1mb/sec
Click to expand...
Click to collapse
2.1mb it is theoretical maximum. Did you ever try to get 300Mbit/s from WiFi N? You event can't get WiFI G speed (54Mbit/s) because it is theoretical maximum that you never reach in real world. Same with bluetooth + network delay reduce TCP throughput.
Amazing fix. Thank u very much. This works perfectly on my ipad2
Quick question
First off - thank you.
Next my question. I am using Root Explorerr. I made my back of the original file. I copied the contents of the zip file to system\bin directory. What should I do with the txt file?
Thanks for the help.
benlane said:
What should I do with the txt file?
Click to expand...
Click to collapse
Nothing. Text file is the source code patch for developers only who want compile it.
Again Thank
thanks for the great response and the effort.
Just FYI, if you use this method, you will kill your ability to use the built-in hotspot wifi tether. Be sure to save the old file, and revert to it should you decide you want to use the hotspot app.
mantispid said:
Just FYI, if you use this method, you will kill your ability to use the built-in hotspot wifi tether. Be sure to save the old file, and revert to it should you decide you want to use the hotspot app.
Click to expand...
Click to collapse
I have updated exe (in first post) to support build-in hotspot wifi tether. But for some reason NAT does not work in Bluetooth PAN mode after using mobile hotspot. To restore NAT in Bluetooth PAN mode you need to reboot the phone.
Dmitry
Great!
The patched file works a treat! PAN is back! Thanks so much!
for the less experienced folks trying to get this to work, here's a couple detailed steps not in the original post:
1. when issuing the "su" command for the first time, look at the the device screen as it will prompt you to allow the action to complete. Make sure to allow it otherwise you cannot proceed with required "su" commands.
2. before copying the file to /system/bin, remount the /system mount read-write like this:
mount -o rw,remount -t ext3 /dev/block/system /system
(you can check your mount points first using "mount" in case they vary from the above)
Thanks again!
quasidynamic
Maybe I am missing something simple, but I just used root explorer to move over the file and change permission, rebooted and it didn't work
XXX
X_X
X_X
Those are the correct permission for the file, right?
I'm sure Motorola thanked you for the Bluetooth PAN tethering fix that showed up in .902.
In my recent donation to the wifi tether dev I noted the .902 Bionic PAN fix and requested he think about adding bluetooth tethering in for the Bionic.
Hello elislurry.
I was wondering if you could help me out with understanding the BT tethering operation in perspective of Android system?
For instance, Wi-Fi tethering operates just like the fixed AP, but in case of BT, its not used much as a tethering operation but more focused to communication to accessories, right?
Do you have any ideas on how this works on BT?
Thanks in advance!

Pptp + dd-wrt + droid 3 + vzw

Anyone else getting routing issues with android and pptp? I connect and its stable, I get an IP, but it doesnt browse. Every once in about 20 attempts it works for a minute or 2, then stops.
Sent from my DROID3 using XDA App
ive been using ipsec and havent had any routing issues. I may not be fully understanding you, but you are connected to vzw, pptp to a ddwrt, and its not assigning you a local ip?
Maybe an MTU problem. What's the name of the pptp interface?
If you're browsing through a proxy it might not work. I ended up getting an un-NATed public IP address to avoid exactly what is happening to you, for some reason I couldn't connect to anything but my home network when I would connect to my VPN setup at home through my Cisco e4200 w/ dd-wrt firmware. Since I couldnt connect to the mobile browsing proxy when connected to my PPTP VPN, I just avoided it entirely by getting the public IP address... now it works great! (Not to mention I don't have to worry about any ports being blocked by my ISP).
Not sure what VZW's stance is on handing out Public IP addresses but it was pretty easy with Bell Mobility, costs me $5 a month but totally worth it IMO.
Sent from my XT860 using xda premium
disable the encryption. Android is known to have issues with mppe encryption.
Sorry I went MIA family issues. I tried without encryption, same thing. I get an ip. 1/10 time it will route some traffic. But when it does it dies in like 3 minutes MAX. I stay connected, just no data.
Sent from my DROID3 using XDA App
As I said, it sounds like it COULD be an MTU problem. I asked you about the name of your pptp interface before. Try this (as root on command line):
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -o <YOUR_PPTP_DEVICE_NAME> -j TCPMSS --set-mss 1200
Unknown Arg
I tried what you said, I got unknown arg --set-mss
I have found that I can ping IPs, but not route data any other way.
What a pitty, either the stock iptables command doesn't support it or there is a module missing. That makes it much more difficult. I will try to check it out, but cannot promise you a timeline.
Thank you
Thank you for all you've done already
I fear this tcp-mss is a dead end. A module xt_TCPMSS.ko is needed. I compiled and loaded it, however still doesn't work. I think it it's related to the fact that all stock iptables options are built in the kernel, no modules.
However, I have another idea. Very simple, but could work -- tested it with my D3, looked good. On command line, as root, try this:
ifconfig <YOUR_PPTP_DEVICE_NAME> mtu 1200
That command works, but same problem. I used a different pptp server just in case, same issue, connect, get ip, no browse
Sent from my DROID3 using XDA App
OK, then it's most likely not an MTU problem.
If you want, we can do a little bit more troubleshooting. I love to track down that kind of problems.
Is your busybox installed in /system/xbin? Please type the following commands and provide me with the output:
/system/xbin/ifconfig
/system/xbin/netstat -rn
And we can go a bit farther. Please install the app "Shark for Root" from the market.
Then run your pptp, then open a terminal and type the following command:
/data/data/lv.n3o.shark/files/tcpdump -n -i <YOUR_PPTP_DEVICE_NAME> -w /sdcard/tcpdump.dmp
Try to browse until it fails. Then switch back to the terminal and stop the tcpdump with Ctrl-C.
I need the file /sdcard/tcpdump.dmp, please post it here (it's binary data) or provide it otherwise.
doesn't seem to install
I tried to get shark to install, but nothing seems to work. It appears to die when I try to browse. I can ping though. I've also tried without encryption. I can setup a vnc meeting and you can ADB and play with it if you are down.

Categories

Resources