[Q] Enterprise Wifi Authentication 802.1x PEAP - Samsung Galaxy Nexus

Hi all,
I've done a number of searches and tried some of the available solutions for other products (Nook, Galaxy) but can't seem to get this to work on my Galaxy Nexus.
I am trying to connect to our wifi network at the office which uses PEAP authentication. I can set it up fine from a laptop but can't get it to work on the phone. Anyone have it working?

I know this is an older thread, but I am having the same problem at work on my Galaxy Nexus. I tried a few apps that used to work on my other phones (most notably, Marcus95's well-known Wifi Advanced Config Editor), no dice. The app's author mentions he is aware of the issue and will fix it... once he gets enough donations to buy a phone to test his code on. Not a good sign.
Any ideas on manually configuring this? Any ideas are welcome.

My work uses peap and leap for their wifi's
I use a free app called LeapWifi
Its great and works like a charm

contagous said:
My work uses peap and leap for their wifi's
I use a free app called LeapWifi
Its great and works like a charm
Click to expand...
Click to collapse
I'll try it, thanks. If anyone has info on what these apps actually modify on the phone, I would be interested in investigating this further with a programmer buddy of mine.

Finally, no go. This is really annoying, why hasn't Google figured out how to integrate enterprise networking in its wifi management? Why does this work for some phones but not others? Frustrating to say the least.

Ok, I've been digging into this and it seems that the problem has to do with how the wpa_supplicant conf file (normally found under /data/misc/wifi) is written to by apps that support enterprise wifi configuration. As market apps don't seem to help at this point, I tried to manually add a wifi profile to connect to my work network, then checked out the logcat to see what was going on. I found multiple instances of what looks like the following, each line including different frequencies:
Line 327: I/wpa_supplicant(11577): wlan0: Trying to associate with 8c:b6:4f:a7:f1:11 (SSID='MYWORKWIFINETWORK' freq=2412 MHz)
Looks like a connection can't be made and the wifi interface is stuck. So, I checked out the wpa_supplicant file and the part that is specific to my work wifi setup looks like this:
ctrl_interface=wlan0
driver_param=use_p2p_group_interface=1
update_config=1
device_type=0-00000000-0
network={
ssid="MYWORKWIFINETWORK"
scan_ssid=1
key_mgmt=IEEE8021X
auth_alg=OPEN SHARED
eap=TTLS
identity="MYUSERNAME"
password="MYPASSWORD"
phase2="auth=PAP"
wep_key0="hjxfjxg"
priority=4
}
The problem is that when I try to edit key_mgmt to insert WEP and delete the wep_key0 value (as my work network generates keys automatically), there is no connection. This wasn't a problem when using the same method under a Google Nexus One nor an LG G2X phones, using Froyo, Gingerbread or even ICS, only on the GNex.
Is it a conf file syntax problem, or something entirely else at play here? Any insights would be welcome.

Ok, apparently, I'm the only one having this problem.
I am working with a tech support person at my workplace to see what is going on, I'll try to report back when I get some insights on how to fix this.

GenghisKhan67 said:
Ok, apparently, I'm the only one having this problem.
I am working with a tech support person at my workplace to see what is going on, I'll try to report back when I get some insights on how to fix this.
Click to expand...
Click to collapse
Please respond if you've figured this out. My work's authentication settings are very similar to yours. I'm running CM9 and am having the same problem. Thanks!

Related

WIFI Issue

I finally received my HTC desire today. After playing for a while, I found that it has a problem connecting to a hidden WPA2 secured wireless connection. Can anyone share some light with me here??
No probs here, tested with a couple of networks (hidden, of course)...
should install my new Linksys tonite (or on friday), and will post if anything goes wrong with that.
JapanLover said:
No probs here, tested with a couple of networks (hidden, of course)...
should install my new Linksys tonite (or on friday), and will post if anything goes wrong with that.
Click to expand...
Click to collapse
Hidden with WPA2?? impressive....you must be the lucky one!
sorry, WPA
I have the same issue.
I have a Draytek 2820n modem/router and my Desire will only connect to it if the SSID is not hidden (using WPA2 - that's what the router tells me).
Same problem here. At work the wlan is WPA2 with hidden ssid. Google'd the problems, and seems to be a known issue with Android.
Protac said:
Same problem here. At work the wlan is WPA2 with hidden ssid. Google'd the problems, and seems to be a known issue with Android.
Click to expand...
Click to collapse
I had a similar problem, and there is an application on the Market which is supposed to handle this. Sorry, I don't know whether it works, because finally I used SSID broadcast. I think the name was HiddenSSDI Enabler.
Jade_user said:
I had a similar problem, and there is an application on the Market which is supposed to handle this. Sorry, I don't know whether it works, because finally I used SSID broadcast. I think the name was HiddenSSDI Enabler.
Click to expand...
Click to collapse
I've just tried HiddenSSID Enabler on my Desire and it appears to work OK. You need the wi-fi turned on to enable it but you get no indication that it is enabled. I just rebooted (to be sure) and it works. If wi-fi is off when you enter your SSID, it will tell you that it can't find it - which seems logical to me.
Thanks for the tip Jade_user.
Sorry to hijack but it is along the same lines..
When I attempt to connect to my wifi router it gets stuck on Obtaining Address.. So I thought to myself right... set up static IP address for the desire... Connected.. Brilliant... except its not.. can't get on any web pages or any thing else that requires a connection!
I have been able to connect to other wifi spots fine but just doesn't want to seem to work on my router at home! I have checked the settings on the router and all appears to be fine (never had a problem before with any of the multitude of devices that have been connected). Checked the spectrum and the wifi channel appears to be all clear.
The SSID is not hidden, the security is WEP... the router is the stock job sent by O2 (they call it O2 Wireless box II, I forget the real model name but I am pretty sure its a rebranded Thompson..). I have a similar router at another address and it connects fine on that one and both are on ASDL2 lines.
Sorry for the long post but tried to include as much info as possible! Its really annoying not be able to get on the wireless as its a basement flat and phone reception is dire to say the least!!
Many thanks in advance,
Pixie
I have the same issue, phone thinks it is connected to wifi just fine, but no data.
However, after investigating a bit more, it seems that it is the DNS lookups that fails, since in that situation, surfing directly to an ip address works just fine, but not if it requires a dns lookup !?!
Hmmm... I just changed the security to WPA and now it is working fine :S.. still annoying because now we are going to have to change all other devices over.. Might be worth a punt in your case tunedude?
REB1 said:
I've just tried HiddenSSID Enabler on my Desire and it appears to work OK. You need the wi-fi turned on to enable it but you get no indication that it is enabled. I just rebooted (to be sure) and it works. If wi-fi is off when you enter your SSID, it will tell you that it can't find it - which seems logical to me.
Thanks for the tip Jade_user.
Click to expand...
Click to collapse
Can you tell me where in the option there is a feature called "HiddenSSD enabler" just cant seem to find them anywhere. Maybe I am blind, can you share some light???
kuailan said:
Can you tell me where in the option there is a feature called "HiddenSSD enabler" just cant seem to find them anywhere. Maybe I am blind, can you share some light???
Click to expand...
Click to collapse
Have you looked in the Market? It's not a standard option, you need to install it from the Market - just search for HiddenSSID.
REB1 said:
Have you looked in the Market? It's not a standard option, you need to install it from the Market - just search for HiddenSSID.
Click to expand...
Click to collapse
Ya found it, install it...but no effect?? dont even know if the program work. It just have the screen to type the SSD?? and then enable button. I have clicked many times on the button, but nothing happen. In the Wifi setting, I created the name but still it says out of range.
There is nothing wrong with the WIFI, when I broadcast the SSID, it work just fine. Anyway, I give up...I just broadcast them.
Just add MAC filtering as mentioned before - more secure than hidden SSID
EddyOS said:
Just add MAC filtering as mentioned before - more secure than hidden SSID
Click to expand...
Click to collapse
I'm using both - just to make sure.

[Q]wifi ad-hoc network?

hey all anybody out there is able to connect to ad-hoc networks?
its the only thing that keeps me from using android cuz i use my phone as a link to the internet
I tried some stuff posted in other places but it didn't work
thx in advance
So you want to tether the data connection on your phone to your laptop, or the other way around...?
XDAndroid wifi tethering app - that'll allow you to tether your data cxn on your phone to a wifi enabled PC.
If you want the other way around... bleck, not sure.
i don't want to tether my brother uses the computer all the time and im stuck with ad hoc in winmo,
there is a solution all over the internet like this one http://exop.pro/blog/2010/08/15/ad-hoc-support-for-android/
but i don't know if it will support our phones because i don't know how to apply patches
p.s this requires a rooted phone whatever that means
husam666 said:
i don't want to tether my brother uses the computer all the time and im stuck with ad hoc in winmo,
there is a solution all over the internet like this one http://exop.pro/blog/2010/08/15/ad-hoc-support-for-android/
but i don't know if it will support our phones because i don't know how to apply patches
p.s this requires a rooted phone whatever that means
Click to expand...
Click to collapse
XDAndroid is already rooted... Comes that way.
You can try to apply the patch, no clue. Never used it.
So I assume the laptop has a wired internet connection, and it's being shared as an ad hoc connection thru the laptop?
I'd say two choices - try to fiddle with the patch, or just spend $30 and get an actual router
WTF!!!
Definitely go for the router, mate.
You are trying to solve a problem possibly creating a new one, but a hundred times bigger.
tried to mess with my system image by mounting it and replacing the files no luck at all (you will get error when starting wifi);
I should go for a faster internet connection such as wimax that comes with a router
thx for support guys
husam666 or anyone else who got this working,
I saw in another thread you got this working but you didn't say how. I tried to edit my froyo.user.conf but I didn't know what I was doing and it didn't work. Can you tell me how you got it to work? Which file and how to edit froyo.user.conf?
Specifically, I'm running Froyo7 on my Rhodium and trying to connect to an ad-hoc network that is broadcast from another cell phone (a Nokia--so no infrastructure available).
Thanks!
matt300 said:
husam666 or anyone else who got this working,
I saw in another thread you got this working but you didn't say how. I tried to edit my froyo.user.conf but I didn't know what I was doing and it didn't work. Can you tell me how you got it to work? Which file and how to edit froyo.user.conf?
Specifically, I'm running Froyo7 on my Rhodium and trying to connect to an ad-hoc network that is broadcast from my other cell phone.
Thanks!
Click to expand...
Click to collapse
Seems Android doesn't support ad-hoc out of the box, which it seems you already know.
I would much prefer to use a real AP, as opposed to anything adhoc. But that's just me.... What is your other phone? That isn't capable of putting up an actual AP?
lol, just read your sig. If the other phone is the Tytn, I feel your pain.
Actually, I still have the Tytn (still works!), but I'm using a Nokia E71 as my main phone at the moment. Too much of a pain to pop the sim card out when I want to use Android and the Nokia's Joikuspot (equivalent to WMWifi Router) is ad-hoc only.
yeah i got it to work actually, i found drivers somewhere, but sorry dude, it's been a long time and i forgot where
yeah i got it to work actually, i found drivers somewhere, but sorry dude, it's been a long time and i forgot where
Click to expand...
Click to collapse
If you get the time, could you copy the relevant lines out of your froyo.user.conf file?
I've tried two versions of the wpa supplicant I found, wpa_adhoc-signed from http://forum.xda-developers.com/showpost.php?p=7674767 and wpa6_adhoc-signed from another thread.
My guess is I was editing the froyo.user.conf incorrectly.
If there is some way to fix ad-hoc permanently, I wouldn't mind integrating it into the build. If stine is cool with it, it'll get baked into the system image. If he's not... I'll just include it with the bundle .
Let us know if you figure it out.
is it possible (in general) to put it in Infrastructure mode?
AkumaX said:
is it possible (in general) to put it in Infrastructure mode?
Click to expand...
Click to collapse
Not when using WMwifirouter (Windows Mobile) or Joikuspot (Symbian) as the access point. I don't keep my sim card in the Rhodium full time but it's nice to have internet on it when I need it.
Cool, Working!!
OK, I finally got it right. Here's what I did:
Downloaded the wpa_adhoc-signed.zip file from this post: http://forum.xda-developers.com/showpost.php?p=7674767
Copied just the wpa_supplicant file to the root of the sdcard (it's inside of the wpa_adhoc-signed/system/bin folder of that zip file)
Using Notepad++, inserted the following line into the froyo.user.conf file:
mount --bind /sdcard/wpa_supplicant /system/bin/wpa_supplicant see this post: http://forum.xda-developers.com/showpost.php?p=10984380&postcount=1
Here's how the last section of my froyo.user.conf file looks:
# custom shell commands, these commands run last
custom_shells{
chmod 777 /etc/dbus.conf
mount --bind /sdcard/wpa_supplicant /system/bin/wpa_supplicant
#echo 2 > /sys/devices/platform/msm_hsusb/usb_function_switch
rm -f /sdcard/fsck*.rec
modprobe ipv6
modprobe xt_owner
modprobe ipt_REJECT
#echo "Hello!!!" # example
#echo "You can create your own commands here" # example
}
Seems to be running nice and stable with my Nokia E71 providing the internet connection using Joikuspot and secured with WEP. Tried switching back to my home network secured with WPA2 and it still works as well.
matt300 said:
OK, I finally got it right. Here's what I did:
Seems to be running nice and stable with my Nokia E71 providing the internet connection using Joikuspot and secured with WEP. Tried switching back to my home network secured with WPA2 and it still works as well.
Click to expand...
Click to collapse
Cool! Looks like this will have to be shoehorned into the system - so it'll have to be something stine accepts. Thanks!
this is what i added to my config file:
Code:
--bind /sdcard/wpa_supplicant /system/bin/wpa_supplicant
i had the wpa_supplicant file in the root of my sdcard
and yeah, the drivers also fixed WEP
husam666 said:
and yeah, the drivers also fixed WEP
Click to expand...
Click to collapse
Damn! Well I guess we're really going to have to find a way to implement those. Awesome... I wish I would've noticed this last time this thread was popular .
arrrghhh said:
Damn! Well I guess we're really going to have to find a way to implement those. Awesome... I wish I would've noticed this last time this thread was popular .
Click to expand...
Click to collapse
lol, i tried to tell you more than once, in different threads, i guess you were busy
husam666 said:
lol, i tried to tell you more than once, in different threads, i guess you were busy
Click to expand...
Click to collapse
Hum... I guess I vaguely remember the adhoc conversations, but I don't recall the WEP ones. At least I didn't realize that they went hand-in-hand...
We probably did talk about it. I've lost a lot of things in the ether... Oh well, I'll try not to forget it next time we're scrambling to do a release .

[Q] School WiFi issues

Hi, first of all, I have no idea where I am supposed to post this.
Anyway, I have a Nexus 7 FHD, and have been using it at school. My school has its own wifi, and I used to be able to connect to it perfectly fine, as I knew the password. It doesn't have any of that wifi login stuff. Recently, however, I think I've been blocked or something from it. I go to WiFi settings, and then my N7 sees the network. I know I have the correct password as my phone (d2vzw) can still connect to it. I click on it to connect, and then the network says connecting... but then after a while it goes back to the Saved, Secured with ... etc. This has been bothering me a lot, as I often need to research topics at school. I've tried spoofing my MAC address, but I don't think it works. If somebody could please help me solve this issue, it would be greatly appreciated!
P.S.- My friend also had this issue, and he's more tech savvy than I am. He was also blocked on his N7 (first gen) and tried changing his device name and mac, but I'm not sure either of us actually spoofed our mac addresses. The first time, both of us were blocked. Then, the wifi crashed, and we both regained access. Now, only I'm blocked, and then only reason I can think of for actually being blocked is attempting to start up orbot... which incidentally failed. Please help! Thanks!
The proper course of action would be to contact your network's admin and request that you be unblocked and take the lumps that come with the actions that caused you to be blocked. Trust me when I say that most system and network admins look very negatively on attempts to get around the security. (you'll only be digging your hole deeper)
Not all admins are the same but I base my opinion on my experiences as a network admin on a .mil network for 7 years YMMV but I know the mentality intimately.
You could use Bluetooth tethering to share the phones WIFI connection with the N7. Use the phone for the WIFI connection and then enable Bluetooth tethering. (If you don't know how, google 'android bluetooth tethering'.)
BTW, the DHCP requests on the WIFI to get your IP address contain a hostname besides the MAC address. You can change that using an adb shell or root terminal and running:
setprop net.hostname HOST_NAME_YOU_WANT
oldsoldier2003 said:
The proper course of action would be to contact your network's admin and request that you be unblocked and take the lumps that come with the actions that caused you to be blocked. Trust me when I say that most system and network admins look very negatively on attempts to get around the security. (you'll only be digging your hole deeper)
Not all admins are the same but I base my opinion on my experiences as a network admin on a .mil network for 7 years YMMV but I know the mentality intimately.
Click to expand...
Click to collapse
Thanks for the advice! But the thing is, I don't think students are supposed to be on the WiFi anyway lol. Someone found out the password, and now I guess close to 97% of the student body uses the WiFi. The teachers definitely know, but they haven't taken any action, so who knows. Anyway, I don't know who the admin is or have any clue how to contact him... soooo I'm out of luck haha.
tni.andro said:
You could use Bluetooth tethering to share the phones WIFI connection with the N7. Use the phone for the WIFI connection and then enable Bluetooth tethering. (If you don't know how, google 'android bluetooth tethering'.)
BTW, the DHCP requests on the WIFI to get your IP address contain a hostname besides the MAC address. You can change that using an adb shell or root terminal and running:
setprop net.hostname HOST_NAME_YOU_WANT
Click to expand...
Click to collapse
Hm, this sounds pretty interesting. Could you explain a little more in depth? or point me to a website or whatnot? That would be greatly appreciated, as I'm not that knowledgeable in the networking area. Would this "fix" be reversible?

Can't change DNS at Android 5.0

Hey guys. I flashed android lollipop 2 nights ago with fastboot. I am very happy with it so far but there is one major annoyance about it. I can't change DNS.
When I try to modify network settings after I change from to "DHCP" to "Static IP" I can't click save button. I also tried a few applications and all of them gave error.
The only thing I can think about while I was flashing the image I got boot.sig and recovery.sig errors but the guide video was telling to ignore those errors.
I am wondering if rooting the device would help me. I am open to any kind of suggestions.
Thanks a lot.
Might be a dumb answer, but I had that issue as well. Make sure when you fill out the info for static you actually type in ALL information. After I filled out each section manually the save button was lit and I was able to save changes. Not sure though if it worked, ipleak is telling me I still have a bunch of google dns's from around the country. Settings were saved though.
If you want to use dhcp but change the DNS server, this seems to be an open problem.
Can you change the DNS on your router instead of the device? On my Netgear I changed it so all devices use Google DNS (8.8.8.8 and 8.8.4.4) instead of Comcast DNS. Works great, and covers everything connected to it either wired or wireless.
I know that isn't really a solution for the problem, but it might help in the meantime.
I did have to use a static IP. My router is set to use different DNS servers though.

Wifi and mobile data issue after degoogling

I recently considered completely degoogling lineageos and i succeeded partly.
1. Changed the system webview to bromite webview.
2. Changed the captive portals to
https://e.foundation/net_204/
http://204.ecloud.global
3. And finally changed the timeserver to pool.ntp.org
One of these steps happened to screw up things with the wifi and mobile data.
Wifi works just fine but has a "Limited connection" label on it.
And mobile data doesnt seem to work at all.
Has anyone experienced something similar or knows the solution?
Thanks in advance for your help.
When you are on wifi, are you connecting to a router that has a custom DNS server? I get the same thing, works just fine. Scroll through your router logs and device logs to see what is times out and adjust accordingly.
I lost mobile data on a previous device (LG v20) when I moved over to LOS and was messing around with APN. Given that mobile data runs through provider's server, it might be that the server it being blocked by a content filter or similar. Also, it might be that LOS's list of default APN are not updated with current information required by your provider.
My device uses nextdns through private dns.
I was using vanilla lineageos with microg and mobile data worked fine, after these steps something seemed to have messed up. I have tried resetting APNs too, didnt work.
DNS of wifi doesnt typically affect that of LTE, but might be different in your flavor of LOS.
Look at your logs on router and device.
Private dns is DNS over TLS implementation of android, it works on both wifi and mobile data. I havent changed anything related to dns for a long time. DNS doesnt seem to be the problem.
systool sntpc -sntpRequest
I can see simple ntp client requests like this, should i be looking for something else?
I'm curious as to how many requests you are seeing. I seem to recall android should only check every few days. Hmm.
Checked logs on a rooted v20 stock N7.1 that I keep around for tv and Roku and Plex control. I wasn't able to find a ntp or sntp entry in last 7 days, the length of my log. Firewall did not report any port 123 traffic either.
Incidentally, I am using 3.android.pool.ntp.org to sync with. Not sure where that came from, I don't remember it as being such as I prefer time.nist.gov.
I don't know what could be going sideways with data other than perhaps dns not working ( does ip# work on mobile?) on mobile and degraded showing on wifi.
This may be pointless, but if wifi is turned off, are you able to send/receive a mms? I ask because mms traffic to your phone is based on IP#, but mms traffic from phone has to (typically) resolve name of mms server.
I am just about out of ideas / suggestions.
Thank you for our help mate, i fixed the issue.
Everything is back to normal after changing the captive portal to
http://captiveportal.kuketz.de
https://captiveportal.kuketz.de
The one from e foundation seemed to be the problem. This one is from a security researcher Mike Kuketz.
The captive portal wrecked mobile data too? That is surprising and interesting.
Glad to see you are up and running.
Side note, do you still see same amount of sntp activity now?
deleted

Categories

Resources