You are not logged in.

#1 2014-06-16 14:24:31

brrbrrbruno
Member
Registered: 2014-04-09
Posts: 24

Unable to Connect to public Wifis/WLAN Hotspots e.g. eduroam

Hello everybody!

i am having trouble connecting to public wifi ... this includes the network of my university and that's really a problem for me!!!

My situation in detail:
Wifi works fine in home networks ...

My Environment:
Gnome Desktop 3.12, Network Manager, dhclient for dhcp (i uninstalled dhcpcd since having both was reported as causing issues, but i had the problem before that) ...

Symptom:
i can see the follwoing networks but when i click on them, nm tries to connect and after a minute just stops trying to connect without establishing a connection.

My University offers two different Networks:

a)
an unprotected wifi where you unlock access to the internet through a webpage where you are supposed to enter your student credentials ...
Problem: this webpage is never loaded (i suppose because i don't get an ip)

b)
the other is called eduroam (a university open access wifi network all over europe's universities) this uses
wpa2 entreprise with protected eap
Problem: I have create a Profile in Networkmanager with the right settings and my credentials but still my system does not connect and finally stops without connection.

Things i have tried:
1)
restarting all relevant services

2)
establishing a connection manually (using iw) as described here:
https://wiki.archlinux.org/index.php/Ne … figuration

no succes with both networks ...

3)
after reading ... uninstalling rivaling network managing components like dhcpcd and dhclient
no difference ...

Last edited by brrbrrbruno (2014-06-16 14:28:13)

Offline

#2 2014-06-16 14:30:36

rune0077
Member
Registered: 2009-04-11
Posts: 135

Re: Unable to Connect to public Wifis/WLAN Hotspots e.g. eduroam

Sound like same issue as here: https://bbs.archlinux.org/viewtopic.php?id=182720

In that case, OP did get an IP and a DNS server when connecting to the public WiFi, but no login page appeared. Are you sure you are not getting assigned an IP?

Offline

#3 2014-06-16 14:36:03

6ng4n
Member
Registered: 2012-02-07
Posts: 84

Re: Unable to Connect to public Wifis/WLAN Hotspots e.g. eduroam

In my university to connect networks like eduroam you need a certificate file. You should download it and set CA field(in NM settings) to the location of the certificate file. And be sure about the version fields are set properly(in my configuration PEAP version is Version 0 and Inner Authentication is MSCHAPv2).

Offline

#4 2014-06-16 15:22:33

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Unable to Connect to public Wifis/WLAN Hotspots e.g. eduroam

Try to connect manually with wpa_supplicant and dhcpcd/dhclient, it will be easier to know what's going wrong. You should also check 'journalctl -b /usr/bin/NetworkManager' as there may be some clues there as to why things are not working.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2014-06-16 20:06:29

brrbrrbruno
Member
Registered: 2014-04-09
Posts: 24

Re: Unable to Connect to public Wifis/WLAN Hotspots e.g. eduroam

thanks for your responses guys!

6ng4n wrote:

In my university to connect networks like eduroam you need a certificate file. You should download it and set CA field(in NM settings) to the location of the certificate file. And be sure about the version fields are set properly(in my configuration PEAP version is Version 0 and Inner Authentication is MSCHAPv2).

yes you are right and e.g. the university of berlin offers such a certificate for download but the university of vienna (where i study) does not
AND
advises in their linux guide to connect to their wifi to NOT choose any certificate and ignore the warning message ... see here (just the pictures i know you dont speak german):
http://zid.univie.ac.at/support/anleitu … rkmanager/

i will try tomorrow to login using the eduroam certificate offered by the university of berlin
i already wrote to the it department of my university about that

peap version was set to "automatic", will try manually setting it to 0 ...

@rune0077

read the thread ... yeah sounds familiar, i will reevaluate the IP situation / dns situation following R00KIEs suggestion!

@R00kie

thanks for the advice ... i will do that and report back!

Offline

#6 2014-06-17 07:02:19

ijanos
Member
From: Budapest, Hungary
Registered: 2008-03-30
Posts: 443

Re: Unable to Connect to public Wifis/WLAN Hotspots e.g. eduroam

Hi, in my university I use eduroam too. Set exactly these security settings. Automatic detection did not work for me.

  • WPA&WPA2 Enterprise

  • Tunneled TLS

  • PAP auth

Offline

#7 2014-06-17 10:10:09

brrbrrbruno
Member
Registered: 2014-04-09
Posts: 24

Re: Unable to Connect to public Wifis/WLAN Hotspots e.g. eduroam

1)
changing the settings as suggested by ijanos did not work

2)
using the certificate from eduroam university berlin did not work (not very suprising)

3)
tried couple of other settings in the eduroam wifi profile in networkmanager RESULT: no success

will proceed with other suggestions! stay tuned

Last edited by brrbrrbruno (2014-06-17 10:10:26)

Offline

#8 2014-06-17 11:16:10

ijanos
Member
From: Budapest, Hungary
Registered: 2008-03-30
Posts: 443

Re: Unable to Connect to public Wifis/WLAN Hotspots e.g. eduroam

Hi. Sorry for the question, but are you using your full user name? username@university.domain

Try consulting with the network administrators, maybe they have some ideas about using the network with linux.

Offline

#9 2014-06-17 12:05:47

brrbrrbruno
Member
Registered: 2014-04-09
Posts: 24

Re: Unable to Connect to public Wifis/WLAN Hotspots e.g. eduroam

@R00KIE
excuse my scrutiny but i use wpa_supplicant manually for the first time:

wpa_supplicant manual connection procedure

$ sudo systemctl stop NetworkManager.service
$ ip link

-> my wlan infterface is wls4

$ sudo nano /etc/wpa_supplicant/example.conf
----------------------------------------------------
ctrl_interface=/run/wpa_supplicant
update_config=1
$ sudo wpa_supplicant -B -i wls4 -c /etc/wpa_supplicant/example.conf
Successfully initialized wpa_supplicant
$ sudo wpa_cli
> scan
> scan_results
bssid / frequency / signal level / flags / ssid
d0:57:4c:08:5c:8e	5180	-38	[WPA-EAP-CCMP+TKIP][WPA2-EAP-CCMP][ESS]	eduroam
d0:57:4c:08:5c:8c	5180	-37	[WPA2-EAP-CCMP][ESS]	u:phone
90:18:7c:36:bd:7f	2437	-35	[WPA2-PSK-CCMP][ESS]	brunos-wlan
d0:57:4c:08:5c:83	2412	-47	[WPA2-EAP-CCMP][ESS]	u:phone
d0:57:4c:08:5c:84	2412	-46	[WPA2-EAP-CCMP][ESS]	\x00
b8:62:1f:7c:94:9c	5500	-79	[WPA2-EAP-CCMP][ESS]	u:phone
b8:62:1f:78:cb:8e	5220	-78	[WPA-EAP-CCMP+TKIP][WPA2-EAP-CCMP][ESS]	eduroam
b8:62:1f:78:cb:8c	5220	-77	[WPA2-EAP-CCMP][ESS]	u:phone
b8:62:1f:7c:94:9b	5500	-79	[WPA2-EAP-CCMP][ESS]	\x00
b8:62:1f:78:cb:83	2437	-76	[WPA2-EAP-CCMP][ESS]	u:phone
b8:62:1f:78:cb:81	2437	-77	[WPA-EAP-CCMP+TKIP][WPA2-EAP-CCMP][ESS]	eduroam
b8:62:1f:7c:94:93	2412	-79	[WPA2-EAP-CCMP][ESS]	u:phone
d0:57:4c:08:5c:8f	5180	-37	[ESS]	u:connect
d0:57:4c:08:5c:80	2412	-46	[ESS]	u:connect
b8:62:1f:7c:94:9f	5500	-79	[ESS]	u:connect
b8:62:1f:7c:94:90	2412	-78	[ESS]	u:connect
b8:62:1f:7c:94:9e	5500	-81	[WPA-EAP-CCMP+TKIP][WPA2-EAP-CCMP][ESS]	eduroam
b8:62:1f:7c:94:94	2412	-78	[WPA2-EAP-CCMP][ESS]	\x00
> add_network
0
> set_network 0 ssid "eduroam"
OK

> HERE I DONT KNOW HOW TO PROCEED, since i don't know the configuration for such [WPA-EAP-CCMP+TKIP][WPA2-EAP-CCMP][ESS] a Network ....

> add_network
1
> set_network 1 ssid "u:connect"
> enable network 1
OK

> AGAIN AT THIS POINT I DONT KNOW HOW I SHOULD PROCEED

Last edited by brrbrrbruno (2014-06-17 14:07:13)

Offline

#10 2014-06-17 12:07:33

brrbrrbruno
Member
Registered: 2014-04-09
Posts: 24

Re: Unable to Connect to public Wifis/WLAN Hotspots e.g. eduroam

ijanos wrote:

Hi. Sorry for the question, but are you using your full user name? username@university.domain

Try consulting with the network administrators, maybe they have some ideas about using the network with linux.

@iljanos:
thanks for getting back to me!
yes i do, as mentioned above i even followed the guide from the IT Department from my univiersity also linked above...
(and I already wrote an email to the IT department asking for the certificate)

Offline

#11 2014-06-17 12:19:13

ijanos
Member
From: Budapest, Hungary
Registered: 2008-03-30
Posts: 443

Re: Unable to Connect to public Wifis/WLAN Hotspots e.g. eduroam

brrbrrbruno wrote:
ijanos wrote:

Hi. Sorry for the question, but are you using your full user name? username@university.domain

Try consulting with the network administrators, maybe they have some ideas about using the network with linux.

@iljanos:
thanks for getting back to me!
yes i do, as mentioned above i even followed the guide from the IT Department from my univiersity also linked above...
(and I already wrote an email to the IT department asking for the certificate)

Ah well, sorry I did not click the link. I don't have further ideas, sorry sad

Offline

#12 2014-06-17 14:38:15

brrbrrbruno
Member
Registered: 2014-04-09
Posts: 24

Re: Unable to Connect to public Wifis/WLAN Hotspots e.g. eduroam

[me@archbox ~]$ journalctl -b /usr/bin/NetworkManager
-- Logs begin at Die 2014-06-17 15:10:58 CEST, end at Die 2014-06-17 16:15:43 CEST. --
[me@archbox ~]$ uhhh? why no output?

Offline

#13 2014-06-17 14:40:25

progandy
Member
Registered: 2012-05-17
Posts: 5,280

Re: Unable to Connect to public Wifis/WLAN Hotspots e.g. eduroam

brrbrrbruno wrote:
[me@archbox ~]$ journalctl -b /usr/bin/NetworkManager
-- Logs begin at Die 2014-06-17 15:10:58 CEST, end at Die 2014-06-17 16:15:43 CEST. --
[me@archbox ~]$ uhhh? why no output?

You have to run journalctl as root or add your user to the group systemd-journal.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#14 2014-06-17 15:23:49

brrbrrbruno
Member
Registered: 2014-04-09
Posts: 24

Re: Unable to Connect to public Wifis/WLAN Hotspots e.g. eduroam

progandy wrote:
brrbrrbruno wrote:
[me@archbox ~]$ journalctl -b /usr/bin/NetworkManager
-- Logs begin at Die 2014-06-17 15:10:58 CEST, end at Die 2014-06-17 16:15:43 CEST. --
[me@archbox ~]$ uhhh? why no output?

You have to run journalctl as root or add your user to the group systemd-journal.

Lol! Of course. i am sorry i should have figured that out myself ... i thought i had run it as superuser!

btw ... i got the ca certificate from my university but as i had expected adding the certificate does not change anything ... the problems persists

Last edited by brrbrrbruno (2014-06-17 15:25:45)

Offline

#15 2014-06-17 15:45:49

brrbrrbruno
Member
Registered: 2014-04-09
Posts: 24

Re: Unable to Connect to public Wifis/WLAN Hotspots e.g. eduroam

output of:

sudo journalctl -b /usr/bin/NetworkManager

for wpa2 peap connection "eduroam"

Jun 17 17:31:57 arch NetworkManager[430]: <info> Activation (wls4) starting connection 'eduroam'
Jun 17 17:31:57 arch NetworkManager[430]: <info> (wls4): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Jun 17 17:31:57 arch NetworkManager[430]: <info> Activation (wls4) Stage 1 of 5 (Device Prepare) scheduled...
Jun 17 17:31:57 arch NetworkManager[430]: <info> Activation (wls4) Stage 1 of 5 (Device Prepare) started...
Jun 17 17:31:57 arch NetworkManager[430]: <info> Activation (wls4) Stage 2 of 5 (Device Configure) scheduled...
Jun 17 17:31:57 arch NetworkManager[430]: <info> Activation (wls4) Stage 1 of 5 (Device Prepare) complete.
Jun 17 17:31:57 arch NetworkManager[430]: <info> Activation (wls4) Stage 2 of 5 (Device Configure) starting...
Jun 17 17:31:57 arch NetworkManager[430]: <info> (wls4): device state change: prepare -> config (reason 'none') [40 50 0]
Jun 17 17:31:57 arch NetworkManager[430]: <info> Activation (wls4/wireless): connection 'eduroam' has security, and secrets exist.  No new 
Jun 17 17:31:57 arch NetworkManager[430]: <info> Config: added 'ssid' value 'eduroam'
Jun 17 17:31:57 arch NetworkManager[430]: <info> Config: added 'scan_ssid' value '1'
Jun 17 17:31:57 arch NetworkManager[430]: <info> Config: added 'key_mgmt' value 'WPA-EAP'
Jun 17 17:31:57 arch NetworkManager[430]: <info> Config: added 'auth_alg' value 'OPEN'
Jun 17 17:31:57 arch NetworkManager[430]: <info> Config: added 'password' value '<omitted>'
Jun 17 17:31:57 arch NetworkManager[430]: <info> Config: added 'eap' value 'PEAP'
Jun 17 17:31:57 arch NetworkManager[430]: <info> Config: added 'fragment_size' value '1300'
Jun 17 17:31:57 arch NetworkManager[430]: <info> Config: added 'phase2' value 'auth=MSCHAPV2'
Jun 17 17:31:57 arch NetworkManager[430]: <info> Config: added 'identity' value 'I DELETED MY STUDENT CREDENTIALS, THEY ARE CORRECT'
Jun 17 17:31:57 arch NetworkManager[430]: <info> Config: added 'bgscan' value 'simple:30:-65:300'
Jun 17 17:31:57 arch NetworkManager[430]: <info> Config: added 'proactive_key_caching' value '1'
Jun 17 17:31:57 arch NetworkManager[430]: <info> Activation (wls4) Stage 2 of 5 (Device Configure) complete.
Jun 17 17:31:57 arch NetworkManager[430]: <info> Config: set interface ap_scan to 1
Jun 17 17:31:57 arch NetworkManager[430]: <info> (wls4): supplicant interface state: disconnected -> scanning
Jun 17 17:32:01 arch NetworkManager[430]: <info> (wls4): supplicant interface state: scanning -> associating
Jun 17 17:32:11 arch NetworkManager[430]: <warn> Connection disconnected (reason -3)
Jun 17 17:32:11 arch NetworkManager[430]: <info> (wls4): supplicant interface state: associating -> disconnected
Jun 17 17:32:11 arch NetworkManager[430]: <info> (wls4): supplicant interface state: disconnected -> scanning
Jun 17 17:32:14 arch NetworkManager[430]: <info> (wls4): supplicant interface state: scanning -> associating
Jun 17 17:32:14 arch NetworkManager[430]: <info> (wls4): supplicant interface state: associating -> associated
Jun 17 17:32:15 arch NetworkManager[430]: <info> (wls4): supplicant interface state: associated -> completed
Jun 17 17:32:15 arch NetworkManager[430]: <info> Activation (wls4/wireless) Stage 2 of 5 (Device Configure) successful.  Connected to wirel
Jun 17 17:32:15 arch NetworkManager[430]: <info> Activation (wls4) Stage 3 of 5 (IP Configure Start) scheduled.
Jun 17 17:32:15 arch NetworkManager[430]: <info> Activation (wls4) Stage 3 of 5 (IP Configure Start) started...
Jun 17 17:32:15 arch NetworkManager[430]: <info> (wls4): device state change: config -> ip-config (reason 'none') [50 70 0]
Jun 17 17:32:15 arch NetworkManager[430]: <info> Activation (wls4) Beginning DHCPv4 transaction (timeout in 45 seconds)
Jun 17 17:32:15 arch NetworkManager[430]: <info> dhclient started with pid 1892
Jun 17 17:32:15 arch NetworkManager[430]: <info> Activation (wls4) Beginning IP6 addrconf.
Jun 17 17:32:15 arch NetworkManager[430]: <info> Activation (wls4) Stage 3 of 5 (IP Configure Start) complete.
Jun 17 17:32:15 arch NetworkManager[430]: <info> (wls4): DHCPv4 state changed nbi -> preinit
Jun 17 17:32:18 arch NetworkManager[430]: <info> (wls4): supplicant interface state: completed -> disconnected
Jun 17 17:32:18 arch NetworkManager[430]: <info> (wls4): supplicant interface state: disconnected -> scanning
Jun 17 17:32:22 arch NetworkManager[430]: <info> (wls4): supplicant interface state: scanning -> associating
Jun 17 17:32:32 arch NetworkManager[430]: <warn> Connection disconnected (reason -3)
Jun 17 17:32:32 arch NetworkManager[430]: <info> (wls4): supplicant interface state: associating -> disconnected
Jun 17 17:32:32 arch NetworkManager[430]: <info> (wls4): supplicant interface state: disconnected -> scanning
Jun 17 17:32:35 arch NetworkManager[430]: <info> (wls4): IP6 addrconf timed out or failed.
Jun 17 17:32:35 arch NetworkManager[430]: <info> Activation (wls4) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Jun 17 17:32:35 arch NetworkManager[430]: <info> Activation (wls4) Stage 4 of 5 (IPv6 Configure Timeout) started...
Jun 17 17:32:35 arch NetworkManager[430]: <info> Activation (wls4) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Jun 17 17:32:35 arch NetworkManager[430]: <info> (wls4): supplicant interface state: scanning -> associating
Jun 17 17:32:35 arch NetworkManager[430]: <info> (wls4): supplicant interface state: associating -> disconnected
Jun 17 17:32:36 arch NetworkManager[430]: <info> (wls4): supplicant interface state: disconnected -> scanning
Jun 17 17:32:40 arch NetworkManager[430]: <info> (wls4): supplicant interface state: scanning -> associating
Jun 17 17:32:40 arch NetworkManager[430]: <info> (wls4): supplicant interface state: associating -> disconnected
Jun 17 17:32:45 arch NetworkManager[430]: <info> (wls4): supplicant interface state: disconnected -> scanning
Jun 17 17:32:58 arch NetworkManager[430]: <info> (wls4): supplicant interface state: scanning -> associating
Jun 17 17:32:58 arch NetworkManager[430]: <info> (wls4): supplicant interface state: associating -> disconnected
Jun 17 17:33:00 arch NetworkManager[430]: <warn> (wls4): DHCPv4 request timed out.
Jun 17 17:33:00 arch NetworkManager[430]: <info> (wls4): canceled DHCP transaction, DHCP client pid 1892
Jun 17 17:33:00 arch NetworkManager[430]: <info> Activation (wls4) Stage 4 of 5 (IPv4 Configure Timeout) scheduled...
Jun 17 17:33:00 arch NetworkManager[430]: <info> Activation (wls4) Stage 4 of 5 (IPv4 Configure Timeout) started...
Jun 17 17:33:00 arch NetworkManager[430]: <info> (wls4): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 
Jun 17 17:33:00 arch NetworkManager[430]: <warn> Activation (wls4) failed for connection 'eduroam'
Jun 17 17:33:00 arch NetworkManager[430]: <info> Activation (wls4) Stage 4 of 5 (IPv4 Configure Timeout) complete.
Jun 17 17:33:00 arch NetworkManager[430]: <info> (wls4): device state change: failed -> disconnected (reason 'none') [120 30 0]
Jun 17 17:33:00 arch NetworkManager[430]: <info> (wls4): deactivating device (reason 'none') [0]
Jun 17 17:33:04 arch NetworkManager[430]: <info> (wls4): supplicant interface state: disconnected -> inactive

for open wifi connection with secondary auth in browser "u:connect"

Jun 17 17:40:33 arch NetworkManager[430]: <info> Activation (wls4) starting connection 'u:connect'
Jun 17 17:40:33 arch NetworkManager[430]: <info> (wls4): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Jun 17 17:40:33 arch NetworkManager[430]: <info> Activation (wls4) Stage 1 of 5 (Device Prepare) scheduled...
Jun 17 17:40:33 arch NetworkManager[430]: <info> Activation (wls4) Stage 1 of 5 (Device Prepare) started...
Jun 17 17:40:33 arch NetworkManager[430]: <info> Activation (wls4) Stage 2 of 5 (Device Configure) scheduled...
Jun 17 17:40:33 arch NetworkManager[430]: <info> Activation (wls4) Stage 1 of 5 (Device Prepare) complete.
Jun 17 17:40:33 arch NetworkManager[430]: <info> Activation (wls4) Stage 2 of 5 (Device Configure) starting...
Jun 17 17:40:33 arch NetworkManager[430]: <info> (wls4): device state change: prepare -> config (reason 'none') [40 50 0]
Jun 17 17:40:33 arch NetworkManager[430]: <info> Activation (wls4/wireless): connection 'u:connect' requires no security.  No secrets neede
Jun 17 17:40:33 arch NetworkManager[430]: <info> Config: added 'ssid' value 'u:connect'
Jun 17 17:40:33 arch NetworkManager[430]: <info> Config: added 'scan_ssid' value '1'
Jun 17 17:40:33 arch NetworkManager[430]: <info> Config: added 'key_mgmt' value 'NONE'
Jun 17 17:40:33 arch NetworkManager[430]: <info> Activation (wls4) Stage 2 of 5 (Device Configure) complete.
Jun 17 17:40:33 arch NetworkManager[430]: <info> Config: set interface ap_scan to 1
Jun 17 17:40:33 arch NetworkManager[430]: <info> (wls4): supplicant interface state: inactive -> scanning
Jun 17 17:40:37 arch NetworkManager[430]: <info> (wls4): supplicant interface state: scanning -> associating
Jun 17 17:40:37 arch NetworkManager[430]: <info> (wls4): supplicant interface state: associating -> disconnected
Jun 17 17:40:37 arch NetworkManager[430]: <info> (wls4): supplicant interface state: disconnected -> scanning
Jun 17 17:40:48 arch NetworkManager[430]: <info> (wls4): supplicant interface state: scanning -> associating
Jun 17 17:40:48 arch NetworkManager[430]: <info> (wls4): supplicant interface state: associating -> completed
Jun 17 17:40:48 arch NetworkManager[430]: <info> Activation (wls4/wireless) Stage 2 of 5 (Device Configure) successful.  Connected to wirel
Jun 17 17:40:48 arch NetworkManager[430]: <info> Activation (wls4) Stage 3 of 5 (IP Configure Start) scheduled.
Jun 17 17:40:48 arch NetworkManager[430]: <info> Activation (wls4) Stage 3 of 5 (IP Configure Start) started...
Jun 17 17:40:48 arch NetworkManager[430]: <info> (wls4): device state change: config -> ip-config (reason 'none') [50 70 0]
Jun 17 17:40:48 arch NetworkManager[430]: <info> Activation (wls4) Beginning DHCPv4 transaction (timeout in 45 seconds)
Jun 17 17:40:48 arch NetworkManager[430]: <info> dhclient started with pid 2048
Jun 17 17:40:48 arch NetworkManager[430]: <info> Activation (wls4) Beginning IP6 addrconf.
Jun 17 17:40:48 arch NetworkManager[430]: <info> Activation (wls4) Stage 3 of 5 (IP Configure Start) complete.
Jun 17 17:40:48 arch NetworkManager[430]: <info> (wls4): DHCPv4 state changed nbi -> preinit
Jun 17 17:41:08 arch NetworkManager[430]: <info> (wls4): IP6 addrconf timed out or failed.
Jun 17 17:41:08 arch NetworkManager[430]: <info> Activation (wls4) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Jun 17 17:41:08 arch NetworkManager[430]: <info> Activation (wls4) Stage 4 of 5 (IPv6 Configure Timeout) started...
Jun 17 17:41:08 arch NetworkManager[430]: <info> Activation (wls4) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Jun 17 17:41:33 arch NetworkManager[430]: <warn> (wls4): DHCPv4 request timed out.
Jun 17 17:41:33 arch NetworkManager[430]: <info> (wls4): canceled DHCP transaction, DHCP client pid 2048
Jun 17 17:41:33 arch NetworkManager[430]: <info> Activation (wls4) Stage 4 of 5 (IPv4 Configure Timeout) scheduled...
Jun 17 17:41:33 arch NetworkManager[430]: <info> Activation (wls4) Stage 4 of 5 (IPv4 Configure Timeout) started...
Jun 17 17:41:33 arch NetworkManager[430]: <info> (wls4): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 
Jun 17 17:41:33 arch NetworkManager[430]: <warn> Activation (wls4) failed for connection 'u:connect'
Jun 17 17:41:33 arch NetworkManager[430]: <info> Activation (wls4) Stage 4 of 5 (IPv4 Configure Timeout) complete.
Jun 17 17:41:33 arch NetworkManager[430]: <info> (wls4): device state change: failed -> disconnected (reason 'none') [120 30 0]
Jun 17 17:41:33 arch NetworkManager[430]: <info> (wls4): deactivating device (reason 'none') [0]
Jun 17 17:41:33 arch NetworkManager[430]: <warn> Connection disconnected (reason -3)
Jun 17 17:41:33 arch NetworkManager[430]: <info> (wls4): supplicant interface state: completed -> disconnected

Last edited by brrbrrbruno (2014-06-17 15:46:52)

Offline

#16 2014-06-17 17:45:15

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Unable to Connect to public Wifis/WLAN Hotspots e.g. eduroam

In my school I don't need to use a certificate, they do have instruction on how to use it with WinXP and linux but they let the certificate expire so it's not possible to use it. The instructions for other OSes also don't mention anything about a certificate so you should also look into that so you can get an ideia if it is required for other OSes.

What I would use as wpa_supplicant config file if I don't need to use a certificate is:

network={
ssid="eduroam"
key_mgmt=WPA-EAP
pairwise=CCMP
group=TKIP
eap=PEAP
phase2="auth=MSCHAPV2"
identity="your_username@school_domain"
password="your_password"
}

If you need to use a certificate add a line with 'ca_cert="/path_to_certificate/ca.pem"'. You will most probably have to tweak a few settings to fit your school's network, my advice is to start with a configuration as general as possible and then restrict it more if you want.

Edit:
I forgot to mention, use /etc/wpa_supplicant/wpa_supplicant.conf as a reference for all the options and make your own configuration file, I wouldn't use it directly as you tried first.

Last edited by R00KIE (2014-06-17 17:46:54)


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#17 2014-06-17 17:58:22

progandy
Member
Registered: 2012-05-17
Posts: 5,280

Re: Unable to Connect to public Wifis/WLAN Hotspots e.g. eduroam

R00KIE wrote:

Edit:
I forgot to mention, use /etc/wpa_supplicant/wpa_supplicant.conf as a reference for all the options and make your own configuration file, I wouldn't use it directly as you tried first.

When you add this to your configuration, you should be able to use wpa_gui (wpa_supplicant_gui) to tweak the network settings and update the configuration file.

ctrl_interface=/run/wpa_supplicant
update_config=1

When everything works you can move the generated network config in a netctl profile or in your global wpa_supplicant configuration file.

Last edited by progandy (2014-06-17 17:59:26)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#18 2014-06-19 14:21:46

brrbrrbruno
Member
Registered: 2014-04-09
Posts: 24

Re: Unable to Connect to public Wifis/WLAN Hotspots e.g. eduroam

Ok i think R00KIE made progress today tongue ... :

$ sudo nano /etc/wpa_supplicant/test-eduroam.conf
---------------------------------------------
ctrl_interface=/run/wpa_supplicant

network={
ssid="eduroam"
key_mgmt=WPA-EAP
pairwise=CCMP
group=TKIP
eap=PEAP
phase2="auth=MSCHAPV2"
identity="entered_credentials"
password="of_course"
}

the only thing that was different in my final config was "group=CCMP" ...

$ sudo wpa_supplicant -B -i wls4 -c /etc/wpa_supplicant/test-eduroam.conf
... successfully initialized
Selected interface 'wls4'

Interactive mode

<3>CTRL-EVENT-SCAN-RESULTS 
<3>WPS-AP-AVAILABLE 
<3>Trying to associate with b8:62:1f:78:c6:f1 (SSID='eduroam' freq=2412 MHz)
<3>Associated with b8:62:1f:78:c6:f1
<3>CTRL-EVENT-EAP-STARTED EAP authentication started
<3>CTRL-EVENT-EAP-STATUS status='started' parameter=''
<3>CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=25
<3>CTRL-EVENT-EAP-STATUS status='accept proposed method' parameter='PEAP'
<3>CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected
<3>CTRL-EVENT-EAP-PEER-CERT depth=2 subject='/C=US/ST=UT/L=Salt Lake City/O=The USERTRUST Network/OU=http://www.usertrust.com/CN=UTN-USERFirst-Hardware'
<3>CTRL-EVENT-EAP-STATUS status='remote certificate verification' parameter='success'
<3>CTRL-EVENT-EAP-PEER-CERT depth=2 subject='/C=US/ST=UT/L=Salt Lake City/O=The USERTRUST Network/OU=http://www.usertrust.com/CN=UTN-USERFirst-Hardware'
<3>CTRL-EVENT-EAP-STATUS status='remote certificate verification' parameter='success'
<3>CTRL-EVENT-EAP-PEER-CERT depth=1 subject='/C=NL/O=TERENA/CN=TERENA SSL CA'
<3>CTRL-EVENT-EAP-STATUS status='remote certificate verification' parameter='success'
<3>CTRL-EVENT-EAP-PEER-CERT depth=0 subject='/C=AT/O=Universit\xC3\xA4t Wien/OU=Zentraler Informatikdienst/CN=radius1.univie.ac.at'
<3>CTRL-EVENT-EAP-STATUS status='remote certificate verification' parameter='success'
<3>CTRL-EVENT-EAP-STATUS status='completion' parameter='success'
<3>CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully
<3>WPA: Key negotiation completed with b8:62:1f:78:c6:f1 [PTK=CCMP GTK=TKIP]
<3>CTRL-EVENT-CONNECTED - Connection to b8:62:1f:78:c6:f1 completed [id=0 id_str=]
> quit
[root@arch ~]# dhclient wls4
[root@arch ~]#
takes quite a while but just returns to prompt ...
 
[root@arch ~]# dhcpcd wls4
dhcpcd[1385]: version 6.3.2 starting
dhcpcd[1385]: DUID 00:01:00:01:1b:35:a7:4f:00:23:12:07:74:68
dhcpcd[1385]: wls4: IAID 12:07:74:68
dhcpcd[1385]: wls4: soliciting an IPv6 router
dhcpcd[1385]: wls4: soliciting a DHCP lease
dhcpcd[1385]: wls4: Router Advertisement from fe80::2
dhcpcd[1385]: wls4: adding address 2001:62a:4:415:223:12ff:fe07:7468/64
dhcpcd[1385]: timed out
dhcpcd[1385]: exited
[root@arch ~]# dhcpcd wls4
dhcpcd[1477]: version 6.3.2 starting
dhcpcd[1477]: DUID 00:01:00:01:1b:35:a7:4f:00:23:12:07:74:68
dhcpcd[1477]: wls4: IAID 12:07:74:68
dhcpcd[1477]: wls4: soliciting an IPv6 router
dhcpcd[1477]: wls4: soliciting a DHCP lease
dhcpcd[1477]: wls4: no IPv6 Routers available
dhcpcd[1477]: timed out
dhcpcd[1477]: exited
[root@arch ~]# 

i didn't get any further ...

Last edited by brrbrrbruno (2014-06-19 14:43:18)

Offline

#19 2014-06-20 10:11:08

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Unable to Connect to public Wifis/WLAN Hotspots e.g. eduroam

The pairwise and group settings are not mandatory, if you don't include them it will still work. If you do include them, you restrict wpa_supplicant to use only that, which means you can force wpa_supplicant to use a specific encryption over anything else that may be available (google a bit and see which combination makes wpa_supplicant use wpa2 which is more secure).

The wpa_supplicant output looks ok but I would not run it with -B, leave it in the foreground and use the dhcp client in another terminal, you want to debug things so you want to see all messages.

As for dhcpcd try with the -4 or -6 flag (dhclient should have similar settings). To me it seems it is timing out just because it doesn't get a reply for either ipv4 or ipv6 address request. Make sure to kill all instances of dhcpcd/dhclient between tries, you don't want more than one instance trying to control the same interface. Another important thing that is easy to forget, don't have any other network managers/daemons running.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

Board footer

Powered by FluxBB