UPJS wi-fi pod Linuxom

<<

johny

Príspevky: 132

Registrovaný: Pia Feb 22, 2008 6:37 pm

Bydlisko: Košice

Poslať Ned Feb 24, 2008 2:03 pm

UPJS wi-fi pod Linuxom

Nájde sa tu niekto, kto má úspešne spojazdnenú školskú wi-fi pod Linuxom? Najlepšie pod novým Ubuntu, prípadne aspoň niečím, čo používa network-manager a nm-applet v GNOME.

Návod v podobe konfiguračného súboru pre wpa_supplicant (https://wifi.upjs.sk/linux/wpa_supplicant.conf) mi veľmi nepomohol, v prvom rade, odkaz na certifikát v ňom nefunguje, a pod Ubuntu to má aj nejaké ďalšie problémy (niečo s ctrl_interface, ak si správne spomínam, keď budem najbližšie v škole s notebookom, skopírujem výstup).
E-mail/Jabber: jan[zavináč]jergus.eu
<<

johny

Príspevky: 132

Registrovaný: Pia Feb 22, 2008 6:37 pm

Bydlisko: Košice

Poslať Pon Feb 25, 2008 3:52 pm

/etc/wpa_supplicant/wpa_supplicant.conf:

  Kód:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=root

ap_scan=1
fast_reauth=1

network={
        ssid="UPJS"
        key_mgmt=IEEE8021X WPA-EAP
        eap=PEAP
        phase2="auth=MSCHAPV2"
        identity="********"
        password="********"
        ca_cert="/etc/wpa_supplicant/wifi.upjs.sk_ca.crt"
}


Jediný zmenený riadok oproti súboru z wifi.upjs.sk je ctrl_interface_group (wheel pod Ubuntu nie je), a samozrejme identity a password.

Po spustení wpa_supplicant -Dwext -ieth1 -c /etc/wpa_supplicant/wpa_supplicant.conf -dd

  Kód:
Initializing interface 'eth1' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='root' (DEPRECATED)
ap_scan=1
fast_reauth=1
Line: 13 - start of a new network block
ssid - hexdump_ascii(len=4):
     55 50 4a 53                                       UPJS           
key_mgmt: 0x9
eap methods - hexdump(len=16): 00 00 00 00 19 00 00 00 00 00 00 00 00 00 00 00
phase2 - hexdump_ascii(len=13):
     61 75 74 68 3d 4d 53 43 48 41 50 56 32            auth=MSCHAPV2   
identity - hexdump_ascii(len=18):
     30 30 38 34 35 32 32 32 39 32 40 75 70 6a 73 2e   0084522292@upjs.
     73 6b                                             sk             
password - hexdump_ascii(len=7): [REMOVED]
ca_cert - hexdump_ascii(len=39):
     2f 65 74 63 2f 77 70 61 5f 73 75 70 70 6c 69 63   /etc/wpa_supplic
     61 6e 74 2f 77 69 66 69 2e 75 70 6a 73 2e 73 6b   ant/wifi.upjs.sk
     5f 63 61 2e 63 72 74                              _ca.crt         
Priority group 0
   id=0 ssid='UPJS'
Initializing interface (2) 'eth1'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=22 WE(source)=18 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:14:a5:eb:e3:f6
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
ctrl_interface_group=0 (from group name 'root')
Added interface eth1
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 332 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:a0:c5:65:44:8a ssid='UPJS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
1: 00:a0:c5:65:44:8e ssid='UPJS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:a0:c5:65:44:8a ssid='UPJS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - WPA network
1: 00:a0:c5:65:44:8e ssid='UPJS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - WPA network
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=8
Received 1098 bytes of scan results (5 BSSes)
Scan results: 5
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:1a:70:df:66:a7 ssid='VKM_linksys' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
   skip - SSID mismatch
1: 00:19:cb:05:ca:59 ssid='CFNT' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
   skip - SSID mismatch
2: 00:a0:c5:65:44:8a ssid='UPJS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
3: 00:15:f2:6a:df:51 ssid='CAI' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
4: 00:a0:c5:65:44:8e ssid='UPJS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:1a:70:df:66:a7 ssid='VKM_linksys' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
   skip - SSID mismatch
1: 00:19:cb:05:ca:59 ssid='CFNT' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
   skip - SSID mismatch
2: 00:a0:c5:65:44:8a ssid='UPJS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - WPA network
3: 00:15:f2:6a:df:51 ssid='CAI' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - SSID mismatch
4: 00:a0:c5:65:44:8e ssid='UPJS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - WPA network
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=8
Received 1328 bytes of scan results (6 BSSes)
Scan results: 6
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:1a:70:df:66:a7 ssid='VKM_linksys' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
   skip - SSID mismatch
1: 00:19:cb:05:ca:59 ssid='CFNT' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
   skip - SSID mismatch
2: 00:a0:c5:65:44:8a ssid='UPJS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
3: 00:15:f2:6a:df:51 ssid='CAI' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
4: 00:a0:c5:65:44:8e ssid='UPJS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
5: 00:1b:fc:c0:75:36 ssid='UPJS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:1a:70:df:66:a7 ssid='VKM_linksys' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
   skip - SSID mismatch
1: 00:19:cb:05:ca:59 ssid='CFNT' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
   skip - SSID mismatch
2: 00:a0:c5:65:44:8a ssid='UPJS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - WPA network
3: 00:15:f2:6a:df:51 ssid='CAI' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - SSID mismatch
4: 00:a0:c5:65:44:8e ssid='UPJS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - WPA network
5: 00:1b:fc:c0:75:36 ssid='UPJS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - WPA network
No suitable AP found.
Setting scan request: 5 sec 0 usec


Toto sa opakuje, až kým ho nezastavím (Ctrl-C):

  Kód:
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface eth1
State: SCANNING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_wext_set_wpa
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_countermeasures
No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
WEXT: Operstate: linkmode=0, operstate=6
E-mail/Jabber: jan[zavináč]jergus.eu

Späť na Poradňa

Kto je on-line

Užívatelia prezerajúci fórum: Žiadny registrovaný užívateľ nie je prítomný a 1 hosť

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software.
Slovenský preklad.