anyone tether Hero to linux? - Hero CDMA Q&A, Help & Troubleshooting

Hello,
Dual booting W7 and openSUSE 11.4. Hero running CM7 nightly 123. Wifi tether and barnacle apps work flawlessly with W7 but I can't get any connection with linux. In network manager it shows the network SSID with full signal strength. There is also a computer icon next to the signal strength icon that is not present on any of the other networks recognized (live in apartments). Anyone familiar with linux to help me tether in linux? Wireless or wired, I just need to get online.
Thanks for any and all help.

studdyhalllooser said:
Hello,
Dual booting W7 and openSUSE 11.4. Hero running CM7 nightly 123. Wifi tether and barnacle apps work flawlessly with W7 but I can't get any connection with linux. In network manager it shows the network SSID with full signal strength. There is also a computer icon next to the signal strength icon that is not present on any of the other networks recognized (live in apartments). Anyone familiar with linux to help me tether in linux? Wireless or wired, I just need to get online.
Thanks for any and all help.
Click to expand...
Click to collapse
I tether with my netbook (funtoo) many times. The computer pictures by the network is because network manager recognizes it as a devices and not a router. Can you do two things for me. First connect to the hero. Then open a terminal and past the output of the following commands
Code:
sudo ifconfig
Code:
sudo iwconfig
The point here is to see if you are getting a good ip address and if the dns/gateway info is correct.

i wonder if this will work on ubuntu usb works fine for me but wireless always disconects. if i could get wireless tether to work i would probably use ubuntu as my daily.

I cannot connect to it at all. It shows the rotary progress animation as if it is connecting and about 30 seconds later it quits.

studdyhalllooser said:
I cannot connect to it at all. It shows the rotary progress animation as if it is connecting and about 30 seconds later it quits.
Click to expand...
Click to collapse
Try enabling/disabling authentication in wireless tethering on your phone.
Also if that doesn't work you can try to force your laptop to connect to the network with
If your wireless network is wlan0 (you can check what your network connection is by running iwconfig first).
Code:
iwconfig wlan0 essid "g1thether"
Where g1tether is the essid that your phone is broadcasting.
After you do that check and see if the ifconfig and iwconfig output is and see if you can load up a website .

for me its kind of weird when i restart my computer from win7 and boot into ubu itll connect to the tether fine but after 10 minutes or so itll disconnect and i cant get it to reconnect

PHP:
[email protected]:~> su
Password:
linux-uy1d:/home/jonathon # ifconfig
eth0 Link encap:Ethernet HWaddr A4:BA:DB:D5:CC:84
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:44 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:101 errors:0 dropped:0 overruns:0 frame:0
TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9807 (9.5 Kb) TX bytes:9807 (9.5 Kb)
wlan0 Link encap:Ethernet HWaddr 70:F1:A1:BD:C9:F5
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
linux-uy1d:/home/jonathon # iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=19 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
linux-uy1d:/home/jonathon # iwconfig wlan0 essid "barnacle"
linux-uy1d:/home/jonathon # iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:"barnacle"
Mode:Managed Access Point: Not-Associated Tx-Power=19 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
linux-uy1d:/home/jonathon #

No luck so far. Any other ideas?
Thanks again for your help!

studdyhalllooser said:
No luck so far. Any other ideas?
Thanks again for your help!
Click to expand...
Click to collapse
Can you run
Code:
ifconfig wlan0
for me (run it after you do iwconfig wlan0 essid barnacle).
Just want to see what the ifconfig is.
Next thing to try is with network manager try to connect. Wait a few second-minute and then post up the /var/log/dmesg file for me. You can just copy and past or attach as a text file. You'll have to be root to read it.
We'll get this. I'm not sure why you guys are having trouble here. What version of wireless tether for root users are you running? I always run 1.6.

Shelnutt2 said:
Can you run
Code:
ifconfig wlan0
for me (run it after you do iwconfig wlan0 essid barnacle).
Just want to see what the ifconfig is.
Next thing to try is with network manager try to connect. Wait a few second-minute and then post up the /var/log/dmesg file for me. You can just copy and past or attach as a text file. You'll have to be root to read it.
We'll get this. I'm not sure why you guys are having trouble here. What version of wireless tether for root users are you running? I always run 1.6.
Click to expand...
Click to collapse
Ok. I was running barnacle for the previous tests. Wireless tether for root was version 2.0.2. I uninstalled it real quick and installed 1.6 so my SSID changed back to G1Tether for this test. Here are my results
PHP:
[email protected]:~> su
Password:
linux-uy1d:/home/jonathon # iwconfig wlan0 essid G1Tether
linux-uy1d:/home/jonathon # ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 70:F1:A1:BD:C9:F5
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
linux-uy1d:/home/jonathon #
For the file you asked about; I cannot find it when browsing the file manager so I opened up the terminal in that location under root. Then used the "ls" command to show the contents of that folder. I cannot find the file you are asking about. Am I doing this correctly? I do not know many terminal commands.
PHP:
[email protected]:/var/log> su
Password:
linux-uy1d:/var/log # ls
acpid cups mail.err ntp wtmp
apparmor faillog mail.info pk_backend_zypp Xorg.0.log
audit firewall mail.warn pk_backend_zypp-1 Xorg.0.log.old
boot.log gdm mcelog pm-powersave.log YaST2
boot.msg krb5 messages pm-suspend.log zypp
boot.omsg lastlog NetworkManager samba zypper.log
btmp localmessages news warn
ConsoleKit mail nscd.log wpa_supplicant.log
linux-uy1d:/var/log #

studdyhalllooser said:
Ok. I was running barnacle for the previous tests. Wireless tether for root was version 2.0.2. I uninstalled it real quick and installed 1.6 so my SSID changed back to G1Tether for this test. Here are my results
PHP:
[email protected]:~> su
Password:
linux-uy1d:/home/jonathon # iwconfig wlan0 essid G1Tether
linux-uy1d:/home/jonathon # ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 70:F1:A1:BD:C9:F5
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
linux-uy1d:/home/jonathon #
For the file you asked about; I cannot find it when browsing the file manager so I opened up the terminal in that location under root. Then used the "ls" command to show the contents of that folder. I cannot find the file you are asking about. Am I doing this correctly? I do not know many terminal commands.
PHP:
[email protected]:/var/log> su
Password:
linux-uy1d:/var/log # ls
acpid cups mail.err ntp wtmp
apparmor faillog mail.info pk_backend_zypp Xorg.0.log
audit firewall mail.warn pk_backend_zypp-1 Xorg.0.log.old
boot.log gdm mcelog pm-powersave.log YaST2
boot.msg krb5 messages pm-suspend.log zypp
boot.omsg lastlog NetworkManager samba zypper.log
btmp localmessages news warn
ConsoleKit mail nscd.log wpa_supplicant.log
linux-uy1d:/var/log #
Click to expand...
Click to collapse
You did it all right, I just made a mistake. In opensuse dmesg is piped to /var/log/messages not /var/log/dmesg. Small difference between gentoo and opensuse .
So try connecting with networkmanager and then posting the output of /var/log/messages. Hopefully that tells us what is going wrong.

Ok. I must be doing something wrong. I cannot do anything with the messages file as i do not have permission to modify it?? I can get into the folder location as SU in terminal but do not know how to open it or copy it. There is also a file named "localmessages". Not sure if it is what your looking for but I was able to open it up. Here it is:
Code:
Jul 23 13:53:23 linux-uy1d dhcpcd[6503]: eth0: dhcpcd 3.2.3 starting
Jul 23 13:53:23 linux-uy1d dhcpcd[6503]: eth0: hardware address = a4:ba:db:d5:cc:84
Jul 23 13:53:23 linux-uy1d dhcpcd[6503]: eth0: broadcasting for a lease
Jul 23 13:53:43 linux-uy1d dhcpcd[6503]: eth0: timed out
Jul 23 13:53:43 linux-uy1d dhcpcd[6503]: eth0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-eth0.info'
Jul 23 13:53:43 linux-uy1d dhcpcd[6503]: eth0: lease information file `/var/lib/dhcpcd/dhcpcd-eth0.info' does not exist
Jul 23 13:53:43 linux-uy1d dhcpcd[6503]: eth0: broadcasting for a lease
Jul 23 13:53:46 linux-uy1d dhcpcd[8083]: wlan0: dhcpcd 3.2.3 starting
Jul 23 13:53:46 linux-uy1d dhcpcd[8083]: wlan0: hardware address = 70:f1:a1:bd:c9:f5
Jul 23 13:53:46 linux-uy1d dhcpcd[8083]: wlan0: broadcasting for a lease
Jul 23 13:54:03 linux-uy1d dhcpcd[6503]: eth0: timed out
Jul 23 13:54:03 linux-uy1d dhcpcd[6503]: eth0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-eth0.info'
Jul 23 13:54:03 linux-uy1d dhcpcd[6503]: eth0: lease information file `/var/lib/dhcpcd/dhcpcd-eth0.info' does not exist
Jul 23 13:54:03 linux-uy1d dhcpcd[6503]: eth0: broadcasting for a lease
Jul 23 13:54:06 linux-uy1d dhcpcd[8083]: wlan0: timed out
Jul 23 13:54:06 linux-uy1d dhcpcd[8083]: wlan0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-wlan0.info'
Jul 23 13:54:06 linux-uy1d dhcpcd[8083]: wlan0: lease information file `/var/lib/dhcpcd/dhcpcd-wlan0.info' does not exist
Jul 23 13:54:06 linux-uy1d dhcpcd[8083]: wlan0: broadcasting for a lease
Jul 23 13:54:23 linux-uy1d dhcpcd[6503]: eth0: timed out
Jul 23 13:54:23 linux-uy1d dhcpcd[6503]: eth0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-eth0.info'
Jul 23 13:54:23 linux-uy1d dhcpcd[6503]: eth0: lease information file `/var/lib/dhcpcd/dhcpcd-eth0.info' does not exist
Jul 23 13:54:23 linux-uy1d dhcpcd[6503]: eth0: broadcasting for a lease
Jul 23 13:54:26 linux-uy1d dhcpcd[8083]: wlan0: timed out
Jul 23 13:54:26 linux-uy1d dhcpcd[8083]: wlan0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-wlan0.info'
Jul 23 13:54:26 linux-uy1d dhcpcd[8083]: wlan0: lease information file `/var/lib/dhcpcd/dhcpcd-wlan0.info' does not exist
Jul 23 13:54:26 linux-uy1d dhcpcd[8083]: wlan0: broadcasting for a lease
Jul 23 13:54:43 linux-uy1d dhcpcd[6503]: eth0: timed out
Jul 23 13:54:43 linux-uy1d dhcpcd[6503]: eth0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-eth0.info'
Jul 23 13:54:43 linux-uy1d dhcpcd[6503]: eth0: lease information file `/var/lib/dhcpcd/dhcpcd-eth0.info' does not exist
Jul 23 13:54:43 linux-uy1d dhcpcd[6503]: eth0: broadcasting for a lease
Jul 23 13:54:46 linux-uy1d dhcpcd[8083]: wlan0: timed out
Jul 23 13:54:46 linux-uy1d dhcpcd[8083]: wlan0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-wlan0.info'
Jul 23 13:54:46 linux-uy1d dhcpcd[8083]: wlan0: lease information file `/var/lib/dhcpcd/dhcpcd-wlan0.info' does not exist
Jul 23 13:54:46 linux-uy1d dhcpcd[8083]: wlan0: broadcasting for a lease
Jul 23 13:55:03 linux-uy1d dhcpcd[6503]: eth0: timed out
Jul 23 13:55:03 linux-uy1d dhcpcd[6503]: eth0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-eth0.info'
Jul 23 13:55:03 linux-uy1d dhcpcd[6503]: eth0: lease information file `/var/lib/dhcpcd/dhcpcd-eth0.info' does not exist
Jul 23 13:55:03 linux-uy1d dhcpcd[6503]: eth0: broadcasting for a lease
Jul 23 13:55:06 linux-uy1d dhcpcd[8083]: wlan0: timed out
Jul 23 13:55:06 linux-uy1d dhcpcd[8083]: wlan0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-wlan0.info'
Jul 23 13:55:06 linux-uy1d dhcpcd[8083]: wlan0: lease information file `/var/lib/dhcpcd/dhcpcd-wlan0.info' does not exist
Jul 23 13:55:06 linux-uy1d dhcpcd[8083]: wlan0: broadcasting for a lease
Jul 23 13:55:16 linux-uy1d dhcpcd[6503]: eth0: received SIGTERM, stopping
Jul 23 13:55:16 linux-uy1d dhcpcd[6503]: eth0: exiting
Jul 23 13:55:16 linux-uy1d dhcpcd[8083]: wlan0: received SIGTERM, stopping
Jul 23 13:55:16 linux-uy1d dhcpcd[8083]: wlan0: exiting

Related

MAC Caching?

does anyone know if there is something on the phone that caches MAC addresses (other than just an ARP table).
At my work we recently changed out a router but gave it the same name it used to have. We used to broadcast the SSID but are no longer doing so so I had to "add" a network. I put in the SSID and try to connect but what I'm seeing in the log is not the MAC address of the actual device so I'm not sure where it's getting it from.
e.g: Device address: 00:A2:F0:A3:00:F1
What I see in the logs:
Code:
V/WifiMonitor( 1400): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
V/WifiStateTracker( 1400): Changing supplicant state: DISCONNECTED ==> SCANNING
V/WifiMonitor( 1400): Event [Trying to associate with 02:5c:71:ee:ac:1c (SSID='MYSSID' freq=2417 MHz)]
V/WifiMonitor( 1400): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=3]
V/WifiStateTracker( 1400): Changing supplicant state: SCANNING ==> ASSOCIATING
D/WifiStateTracker( 1400): Deconfiguring interface and stopping DHCP
D/SettingsWifiEnabler( 2956): Received network state changed to NetworkInfo: type: WIFI[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true
V/WifiMonitor( 1400): Event [Authentication with 02:5c:71:ee:ac:1c timed out.]
I've looked on other devices that have successfully connected to verify the new target MAC but it looks like my phone might have a MAC association with the SSID _saved_ somewhere?
I've tried forgetting the network and re-adding it as well as rebooting the phone etc. Any ideas? is there a db somewhere that might store this info?
This thread can be closed (unless others notice an issue)
I've upgraded my ROM and everything works now

Wlan suddenly stopped working.

Hi.
Ive been using cyanogenmod since i got my nexus.
Been running gr8. No problems what so ever.
Now however my wlan suddenly decided to be unavailable.
I was running CM5.0.6 + DesireCamera OC/UV kernel.
Symptoms: When enabling Wifi i get no Icon and if i scan for networks I see no networks.
What ive tried so far without luck in order.
Reflash cm 5.0.6. <- multiple times
reflash desirecam <- multiple times
push bcm4329.ko <- multiple times
wiped all and
Kang-o-rama 0.6
Edit
Just tried reflashing radio and then pushing bcm4329.ko.
still no go
And it still isnt working
Am i missing something ?
Heres what i got from lolcat.
V/WifiStateTracker( 134): Connection to supplicant established, state=SCANNING
D/NetworkStateTracker( 134): setDetailed state, old =DISCONNECTED and new state=SCANNING
V/WifiStateTracker( 134): Changing supplicant state: SCANNING ==> SCANNING
D/ConnectivityService( 134): Dropping ConnectivityChange for WIFI: DISCONNECTED/SCANNING
D/SettingsWifiEnabler( 187): Received wifi state changed from Enabling to Enabled
I/wpa_supplicant( 550): CTRL-EVENT-SCAN-RESULTS Ready
thanks in advance for any help.

[Q] IP address bouncing

Rooted but stock Galaxy. When I turn WiFi on at home the Galaxy keeps dropping the IP and requesting another as seen here in my router log:
Oct 26 16:48:14 router daemon.info dnsmasq-dhcp[6120]: DHCPREQUEST(br0) 192.168.1.128 b4:07:f9:2d:fb:9a
Oct 26 16:48:14 router daemon.info dnsmasq-dhcp[6120]: DHCPACK(br0) 192.168.1.128 b4:07:f9:2d:fb:9a
Oct 26 16:48:28 router daemon.info dnsmasq-dhcp[6120]: DHCPREQUEST(br0) 192.168.1.128 b4:07:f9:2d:fb:9a
Oct 26 16:48:28 router daemon.info dnsmasq-dhcp[6120]: DHCPACK(br0) 192.168.1.128 b4:07:f9:2d:fb:9a
Oct 26 16:48:39 router daemon.info dnsmasq-dhcp[6120]: DHCPREQUEST(br0) 192.168.1.128 b4:07:f9:2d:fb:9a
Oct 26 16:48:39 router daemon.info dnsmasq-dhcp[6120]: DHCPACK(br0) 192.168.1.128 b4:07:f9:2d:fb:9a
Oct 26 16:48:49 router daemon.info dnsmasq-dhcp[6120]: DHCPREQUEST(br0) 192.168.1.128 b4:07:f9:2d:fb:9a
Oct 26 16:48:49 router daemon.info dnsmasq-dhcp[6120]: DHCPACK(br0) 192.168.1.128 b4:07:f9:2d:fb:9a
Oct 26 16:48:59 router daemon.info dnsmasq-dhcp[6120]: DHCPREQUEST(br0) 192.168.1.128 b4:07:f9:2d:fb:9a
Oct 26 16:48:59 router daemon.info dnsmasq-dhcp[6120]: DHCPACK(br0) 192.168.1.128 b4:07:f9:2d:fb:9a
Oct 26 16:49:08 router daemon.info dnsmasq-dhcp[6120]: DHCPREQUEST(br0) 192.168.1.128 b4:07:f9:2d:fb:9a
Oct 26 16:49:08 router daemon.info dnsmasq-dhcp[6120]: DHCPACK(br0) 192.168.1.128 b4:07:f9:2d:fb:9a
Oct 26 16:49:18 router daemon.info dnsmasq-dhcp[6120]: DHCPREQUEST(br0) 192.168.1.128 b4:07:f9:2d:fb:9a
Oct 26 16:49:18 router daemon.info dnsmasq-dhcp[6120]: DHCPACK(br0) 192.168.1.128 b4:07:f9:2d:fb:9a
Oct 26 16:49:27 router daemon.info dnsmasq-dhcp[6120]: DHCPREQUEST(br0) 192.168.1.128 b4:07:f9:2d:fb:9a
Oct 26 16:49:27 router daemon.info dnsmasq-dhcp[6120]: DHCPACK(br0) 192.168.1.128 b4:07:f9:2d:fb:9a
Has anybody seen anything like this before? The WiFi icon will appear on the notification bar at top for a few seconds and then drop off again, only to reappear in few seconds later. I have deleted the connection and restablished, rebooted many times including the router. If I reboot the router then the two devices are happy again until the Galaxy goes back to sleep (screen goes off) and the connection is dropped. I'm using Tomato firmware on an Asus RT-N16 router and the problem could very well be with the router but I'm only seeing this issue with the Galaxy, no other devices on the network are having problems.
I had this problem with a belkin router switched to a netgear and have not had a problem since.
Now I don't know which piece of equip was causing the problem, either the cappi or the router, but I do know some wifi devices just work better together than others.
I guess don't know if my post will give any info that will help you track down the root of your problem - just if saying if you have the opportunity to test or try with other routers you should.
Solved
For the record, the problem ended up being with a program loaded on the Android called "Android Desktop Remote". Once I un-installed that application the problems with DHCP went away.
[edit] ... or so I thought. The problem did go away immediately, after fighting with the phone for an hour+, removing that problem cured it. Even through the early part of today it worked. Then all of a sudden it stopped working again and we're back to the Captivate not liking the DHCP's response, not getting an IP. Installing my old router shortly to see if anything changes.
If you look at the IP values using one of the many programs I can see that the default gateway and DSN settings are correct, but the IP address is blank or all zeros. This is very strange!

[DEV] Solve VPN PPTP connection Problems. Kernel developers please help!

I'm trying to connect to our companies network through a VPN PPTP connection. The connection does not work and this is what I can see with logcat:
Code:
D/VpnService(26589): VPN UP: down
I/SProxy_mtpd(26589): Start VPN daemon: mtpd
D/SProxy_mtpd(26589): mtpd is running after 0 msec
D/SProxy_mtpd(26589): service not yet listen()ing; try again
D/mtpd (26960): Waiting for control socket
D/mtpd (26960): Received 20 arguments
I/mtpd (26960): Using protocol pptp
I/mtpd (26960): Connecting to xxx.xxx.xxx.xxx port 1723
I/SProxy_mtpd(26589): got data from control socket: 20
I/mtpd (26960): Connection established (socket = 12)
D/mtpd (26960): Sending SCCRQ
D/mtpd (26960): Received SCCRP -> Sending OCRQ (local = 50624)
I/mtpd (26960): Tunnel established
D/mtpd (26960): Received OCRQ (remote = 0)
I/mtpd (26960): Session established
I/mtpd (26960): Creating PPPoX socket
F/mtpd (26960): Socket() Address family not supported by protocol
So as you can see the tunnel works but the problem is with the socket() call returning an error.
The problem is here in pptp.c line 238 I think.
Can any kernel developer help? Perhaps this is only a kernel configuration issue because standard HTC Desire and Motorola Droid seem to work without problem.
I have tested it on the P500 with stock kernel, drellisdee kernel and Der_Caveman kernel. Always the same problem.
Have you tried OpenVPN from Market?
You'll need root and busybox.
allsalvati said:
Have you tried OpenVPN from Market?
You'll need root and busybox.
Click to expand...
Click to collapse
OpenVPN does not use PPTP. This will not work in my case.
You should try ROM Prime!
I have the same problem like you. Only Prime Rom can solve this, I think the problem is the version, Prime uses 2.2.1, others use 2.2!
Hmm, 2.2.1 uses a different kernel. Perhaps we have to check kernel configs of both versions.
Sent from my LG-P500 using XDA App

VPN problems

I have some problems using VPN on Gingerbread.
I upgraded my I9000 to a stock JVO with CF root. Now I noticed that I can no longer connect successfully to my VPN server. Before I was using I9000XXJPY and was working, but now it starts to connect and just stay with "Connecting..." for about 1min then drops.
Because I have access on the VPN server I can see the auth going ok and the VPN tunnel going up. I can even ping for couple of sec the VPN IP.
Here is the related server log:
May 31 12:17:05 server pptpd[17417]: CTRL: Client xxx.yyy.zzz.www control connection started
May 31 12:17:06 server pptpd[17417]: CTRL: Starting call (launching pppd, opening GRE)
May 31 12:17:06 server pppd[17418]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
May 31 12:17:06 server pppd[17418]: pptpd-logwtmp: $Version$
May 31 12:17:06 server pppd[17418]: pppd 2.4.4 started by root, uid 0
May 31 12:17:06 server pppd[17418]: Using interface ppp0
May 31 12:17:06 server pppd[17418]: Connect: ppp0 <--> /dev/pts/2
May 31 12:17:06 server pptpd[17417]: GRE: Bad checksum from pppd.
May 31 12:17:06 server pppd[17418]: MPPE 128-bit stateless compression enabled
May 31 12:17:07 server pppd[17418]: Cannot determine ethernet address for proxy ARP
May 31 12:17:07 server pppd[17418]: local IP address 10.10.50.1
May 31 12:17:07 server pppd[17418]: remote IP address 10.10.50.5
May 31 12:17:07 server pppd[17418]: pptpd-logwtmp.so ip-up ppp0 [email protected] xxx.yyy.zzz.www
May 31 12:17:47 server pppd[17418]: LCP terminated by peer (MPPE disabled)
May 31 12:17:47 server pppd[17418]: pptpd-logwtmp.so ip-down ppp0
May 31 12:17:47 server pppd[17418]: Connect time 0.7 minutes.
May 31 12:17:47 server pppd[17418]: Sent 2184 bytes, received 2526 bytes.
May 31 12:17:48 server pptpd[17417]: CTRL: EOF or bad error reading ctrl packet length.
May 31 12:17:48 server pptpd[17417]: CTRL: couldn't read packet header (exit)
May 31 12:17:48 server pptpd[17417]: CTRL: CTRL read failed
May 31 12:17:48 server pppd[17418]: Modem hangup
May 31 12:17:48 server pppd[17418]: Connection terminated.
May 31 12:17:48 server pppd[17418]: Exit.
May 31 12:17:48 server pptpd[17417]: CTRL: Client xxx.yyy.zzz.www control connection finished
Is there any way I could debug the pptp connection on the android? Anyone have VPN working on Gingerbread JVO or other versions? Any ideas what I could try?
Here is the related logcat from phone:
D/mtpd (13829): Waiting for control socket
D/mtpd (13829): Received 20 arguments
I/mtpd (13829): Using protocol pptp
I/mtpd (13829): Connecting to aaa.bbb.ccc.ddd port 1723
I/SProxy_mtpd(13820): got data from control socket: 20
I/mtpd (13829): Connection established (socket = 15)
D/mtpd (13829): Sending SCCRQ
D/mtpd (13829): Received SCCRP -> Sending OCRQ (local = 62032)
I/mtpd (13829): Tunnel established
D/mtpd (13829): Received OCRQ (remote = 4)
I/mtpd (13829): Session established
I/mtpd (13829): Creating PPPoX socket
I/mtpd (13829): Starting pppd (pppox = 16)
I/mtpd (13829): Pppd started (pid = 13830)
I/pppd (13830): Using PPPoX (socket = 16)
D/pppd (13830): using channel 21
D/Tethering( 482): ppp0 is not a tetherable iface, ignoring
I/pppd (13830): Using interface ppp0
I/pppd (13830): Connect: ppp0 <-->
I/pppd (13830): MPPE 128-bit stateless compression enabled
I/pppd (13830): local IP address 10.10.50.5
I/pppd (13830): remote IP address 10.10.50.1
I/pppd (13830): primary DNS address 8.8.8.8
I/pppd (13830): secondary DNS address 8.8.4.4
I/ip-up-vpn(13831): Traffic is now redirected to 10.10.50.1
E/VpnService(13820): onError()
E/VpnService(13820): java.io.IOException: Connecting timed out
E/VpnService(13820): at com.android.server.vpn.VpnService.waitUntilConnectedOrTimedout(VpnService.java:206)
E/VpnService(13820): at com.android.server.vpn.VpnService.onConnect(VpnService.java:136)
E/VpnService(13820): at com.android.server.vpn.VpnServiceBinder$2.run(VpnServiceBinder.java:117)
E/VpnService(13820): at java.lang.Thread.run(Thread.java:1019)
I/VpnService(13820): disconnecting VPN...
D/VpnSettings(13812): received connectivity: pptpVPN PPTP: connected? DISCONNECTING err=0
I/StatusBarManagerService( 482): ADD-pptpVPN PPTP VPN disconnected , 0x7f020001
I/SProxy_mtpd(13820): Stop VPN daemon: mtpd
I/pppd (13830): Terminating on signal 15
I/pppd (13830): Connect time 0.7 minutes.
I/pppd (13830): Sent 8174 bytes, received 0 bytes.
I/mtpd (13829): Received signal 15
I/mtpd (13829): Sending signal to pppd (pid = 13830)
E/pppd (13830): MPPE disabled
I/pppd (13830): Terminating on signal 15
I/pppd (13830): Connection terminated.
I/mtpd (13829): Mtpd is terminated (status = 6)
Nobody using VPN in Gingerbread? Any feedback would be appreciated.
rising the stakes
Ok, since nobody rush here, I will raise the stakes:
Who can help me to find a fix for this problem will win a 3 month VPN account to a VPN provider of my choice (lots of servers to use there).
If anyone have a android setup close to mine and it's VPN works, let me know.
Have u tried any other kernel or turning VPN encryption off. Also try 1Vpn app from the market
Sent from my GT-I9000 using XDA Premium App
Did you turn encryption OFF (uncheck) on your phone?
AFAIK, there is no mppe encryption support in the stock android firmware. Maybe your previous firmware included the module? Anyway, PPTP works fine for me with MPPE disabled, but not if I require it. Hope this helps...
I do get the same behavior with or without the mppe enabled. It doesn't looks like to be a encryption problem as I can see the log in successful on the server and even can ping the client IP after for couple of seconds. It looks like the VpnService does not see the connection being established and it just stops it after couple of seconds.
Never got VPN working successfully even in 2.2 and 2.2.1. It was able to connect to the VPN service (can't remember if I used PPTP or L2TP) but I was unable to browse any website or connect to anything on the internet.
I was told on some forum there's some bug in Android causing this. Anyways, doesn't sound identical to the issue you had but I thought I'd mention this.
Worked for me when using 2.2.1 JPY, both PPTP and L2TP. I suspect it's a VpnService problem rather then a pptp problem, so if anyone on 2.3.3 JVO or similar have VPN running ok, would appreciate if would send me on PM or attached here the VpnService.apk and .odex he run.
isn't it the same problem as posted on the android google code site:
http://code.google.com/p/android/issues/detail?id=4706
appears to still not be working in jvp.. no one seems to have it working with 3g on any phone with gingerbread.. it appears to work ok over wifi.. i also need i working in 3g in gb. .so i am staying on froyo for now.

Categories

Resources