WPA2 + AES/CCMP networking (editing Wireless.prefs)
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    ernsteiswuerfel
    Posts: 545 from 2015/6/18
    From: Funeralopolis
    Currently I am trying to connect to my local eduroam university network. Got some years of Amiga and Linux experience but I am new to MorphOS.

    As far as I got it there is no GUI for entering username/password/connection details in MorphOS and I have to edit Prefs/Env-Archive/sys/Wireless.prefs by hand. Well, that's ok for me.

    Is there a Shell-command to scan in detail for network parameters? I need that as my current Wireless.prefs does not work. Something like "iwlist scanning" in Linux.
    Talos II. [Gentoo Linux] | PMac G5 11,2. PMac G4 3,6. PBook G4 5,8. [MorphOS 3.18 / Gentoo Linux] | Vampire V4 SA [ApolloOS / Amiga OS 3.2.2]
  • »24.06.15 - 11:34
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 2987 from 2003/3/5
    From: Canada
    There are no tools, but the Wireless manager does have an Arexx interface that's mostly compatible with wpa_cli & family. So you can

    Code:
    rxcmd WLANMNGR_GLOBAL INTERFACES


    which will give you the interfaces list.

    Code:
    rxcmd WLANMNGR_GLOBAL GET_IFACEPORT <device>


    will give you the port name to talk to an actual device.

    Then you can rxcmd the new port with typical wpa supplicant control commands, like LIST_NETWORKS, SCAN, SCAN_RESULTS, STATUS, etc. See http://w1.fi/wpa_supplicant/devel/ctrl_iface_page.html

    But the best you can do is to try to copy a working config from a machine running linux. Also, I'm not 100% sure all those auth methods are actually supported by the wirelessmanager...
  • »24.06.15 - 15:23
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    ernsteiswuerfel
    Posts: 545 from 2015/6/18
    From: Funeralopolis
    Thanks for the hint! But unfortunately it didn't turn out yet...

    Quote:

    rxcmd WLANMNGR_GLOBAL GET_IFACEPORT bcm43xx_wl.device:0
    quits with an error message "RXCmd: wrong number of arguments".

    So I got the connection data from LUbuntu Linux 14.04 running on the same Powerbook 5.4. The data is retrieved from the config file, after networkmanager successfully connected to the university network:

    Code:
    [ipv6]
    method=auto

    [connection]
    id=eduroam
    uuid=e07e6e45-9bd9-4ca7-b001-2e7bd71adb1c
    type=802-11-wireless

    [802-11-wireless]
    ssid=eduroam
    mode=infrastructure
    mac-address=00:0D:93:83:7D:A3
    security=802-11-wireless-security

    [802-1x]
    eap=peap;
    identity=username
    phase2-auth=mschapv2
    password-flags=1

    [ipv4]
    method=auto

    [802-11-wireless-security]
    key-mgmt=wpa-eap
    auth-alg=open

    Which I use in ENVARC:Wireless.prefs like that:
    Code:
    network={
    ssid="eduroam"
    mode=infrastructure
    eap=peap;
    identity="username"
    psk="password"
    phase2-auth=mschapv2
    password-flags=1
    key-mgmt=wpa-eap
    auth-alg=open
    priority=1
    }


    Is there any log-file written where I can check what went wrong during connection setup in MorphOS?
    Talos II. [Gentoo Linux] | PMac G5 11,2. PMac G4 3,6. PBook G4 5,8. [MorphOS 3.18 / Gentoo Linux] | Vampire V4 SA [ApolloOS / Amiga OS 3.2.2]
  • »06.07.15 - 16:57
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Cego
    Posts: 712 from 2006/5/28
    From: Germany
    i would really appreciate an extensive WiFi manager for MorphOS. I have the same problem with my PowerBook and as a matter of fact i dont want to install linux, just to get my wifi config right. I hope that this is something thats on your todo list.

    i would even consider a bounty and donate for it.
    Pegasos II G4 @1.0GHz, 1GB DDR Ram, Radeon 9200Pro, 240GB SSD+160GB HD, MorphOS 3.18, AmigaOS4.1 FE, Debian 8
  • »07.07.15 - 02:03
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    pegasos-sigi2
    Posts: 265 from 2006/8/31
    I think you use the wrong text.
    Your text is for ipv6 (I think the MorphOS stack can't ipv6).
    Use the settings for ipv4.

    Code:
    [ipv4]
    method=auto

    [802-11-wireless-security]
    key-mgmt=wpa-eap
    auth-alg=open



    And use the commant "method=auto".




    Quote:

    ernsteiswuerfel wrote:
    Thanks for the hint! But unfortunately it didn't turn out yet...

    Quote:

    rxcmd WLANMNGR_GLOBAL GET_IFACEPORT bcm43xx_wl.device:0
    quits with an error message "RXCmd: wrong number of arguments".

    So I got the connection data from LUbuntu Linux 14.04 running on the same Powerbook 5.4. The data is retrieved from the config file, after networkmanager successfully connected to the university network:

    Code:
    [ipv6]
    method=auto

    [connection]
    id=eduroam
    uuid=e07e6e45-9bd9-4ca7-b001-2e7bd71adb1c
    type=802-11-wireless

    [802-11-wireless]
    ssid=eduroam
    mode=infrastructure
    mac-address=00:0D:93:83:7D:A3
    security=802-11-wireless-security

    [802-1x]
    eap=peap;
    identity=username
    phase2-auth=mschapv2
    password-flags=1

    [ipv4]
    method=auto

    [802-11-wireless-security]
    key-mgmt=wpa-eap
    auth-alg=open

    Which I use in ENVARC:Wireless.prefs like that:
    Code:
    network={
    ssid="eduroam"
    mode=infrastructure
    eap=peap;
    identity="username"
    psk="password"
    phase2-auth=mschapv2
    password-flags=1
    key-mgmt=wpa-eap
    auth-alg=open
    priority=1
    }


    Is there any log-file written where I can check what went wrong during connection setup in MorphOS?
    Spreedy - The spreedsheet editor of MorphOS
    Calimero - Do you know about the new DTP Program for MorphOS ?
  • »07.07.15 - 10:03
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 2987 from 2003/3/5
    From: Canada
    Quote:

    ernsteiswuerfel wrote:

    Quote:

    rxcmd WLANMNGR_GLOBAL GET_IFACEPORT bcm43xx_wl.device:0
    quits with an error message "RXCmd: wrong number of arguments".





    Yeah, sorry, it needs to be invoked like

    Code:
    rxcmd WLANMNGR_GLOBAL "GET_IFACEPORT bcm43xx_wl.device:0"
  • »07.07.15 - 17:05
    Profile Visit Website
    • Priest of the Order of the Butterfly
      Priest of the Order of the Butterfly
      ernsteiswuerfel
      Posts: 545 from 2015/6/18
      From: Funeralopolis
      Quote:


      Yeah, sorry, it needs to be invoked like

      Code:
      rxcmd WLANMNGR_GLOBAL "GET_IFACEPORT bcm43xx_wl.device:0


      Ok, then I get:
      WLANMNGR
      Talos II. [Gentoo Linux] | PMac G5 11,2. PMac G4 3,6. PBook G4 5,8. [MorphOS 3.18 / Gentoo Linux] | Vampire V4 SA [ApolloOS / Amiga OS 3.2.2]
    • »08.07.15 - 15:39
      Profile
    • Priest of the Order of the Butterfly
      Priest of the Order of the Butterfly
      ernsteiswuerfel
      Posts: 545 from 2015/6/18
      From: Funeralopolis
      Ok, after a lenghty research session on XUbuntu 14.04 (running on my Powerbook) I got working config data by fiddling with wpa_supplicant in the shell. The first entry is my Nokia smarthphone where I can share my internet connection, the second one is the university network. I copied over the config-file to ENVARC:sys/Wireless.prefs.

      Code:

      update_config=1

      network={
      ssid="Call from the grave"
      key_mgmt=WPA-PSK
      #proto=RSN
      #pairwise=CCMP
      #group=CCMP
      psk="PASSWORD"
      }

      network={
      ssid="eduroam"
      #mode=0
      #auth_alg=OPEN
      #proto=RSN
      #group=TKIP
      #pairwise=CCMP
      key_mgmt=WPA-EAP
      #eap=PEAP
      #phase1="peaplabel=0"
      #phase2="auth=MSCHAPV2"
      identity="USERNAME"
      password="PASSWORD"
      priority=1
      }

      This config works perfectly on Linux! Unfortunately it still doesn't work on MorphOS. "eduroam" gets a blue color in the WlanManager, "Call from the grave" gets yellow or red. When I connect to "Call from the grave" it still keeps asking me my password although it is properly saved in Wireless.prefs.

      The entries commented out are parameters which were not needed on Linux. On MorphOS it doesen't seem to make a difference if they are commented out or not. Still no success...
      Talos II. [Gentoo Linux] | PMac G5 11,2. PMac G4 3,6. PBook G4 5,8. [MorphOS 3.18 / Gentoo Linux] | Vampire V4 SA [ApolloOS / Amiga OS 3.2.2]
    • »08.07.15 - 16:01
      Profile
    • MorphOS Developer
      jacadcaps
      Posts: 2987 from 2003/3/5
      From: Canada
      Quote:

      ernsteiswuerfel wrote:
      Quote:


      Yeah, sorry, it needs to be invoked like

      Code:
      rxcmd WLANMNGR_GLOBAL "GET_IFACEPORT bcm43xx_wl.device:0


      Ok, then I get:
      WLANMNGR


      Indeed, and now you can do

      rxcmd WLANMNGR "STATUS", etc. The commands are standard wpa_cli commands. Sorry I can't help you more but I'm rarely using MorphOS these days - no time :(

      [ Edited by jacadcaps 09.07.2015 - 14:18 ]
    • »09.07.15 - 14:16
      Profile Visit Website
    • MorphOS Developer
      itix
      Posts: 1516 from 2003/2/24
      From: Finland
      Quote:

      ernsteiswuerfel wrote:
      This config works perfectly on Linux! Unfortunately it still doesn't work on MorphOS. "eduroam" gets a blue color in the WlanManager, "Call from the grave" gets yellow or red. When I connect to "Call from the grave" it still keeps asking me my password although it is properly saved in Wireless.prefs.


      I have same problem with my crappy Lumia. I get it working if I delete ENV:Sys/WLANMNGR (what is empty anyway). If it existing I cant get online with my Nokia.

      However when surfing the system freezes very soon so it is unusable atm, for me at least. Haven't tried with Android phone yet.

      I investigate it later when I can...
      1 + 1 = 3 with very large values of 1
    • »09.07.15 - 19:40
      Profile
    • Priest of the Order of the Butterfly
      Priest of the Order of the Butterfly
      ernsteiswuerfel
      Posts: 545 from 2015/6/18
      From: Funeralopolis
      Many thanks for your help so far!
      Code:
      rxcmd WLANMNGR "STATUS"
      is working fine. I will try to investigate further. Also I can do some testing with wpa_supplicant under Linux is this is of help.
      Talos II. [Gentoo Linux] | PMac G5 11,2. PMac G4 3,6. PBook G4 5,8. [MorphOS 3.18 / Gentoo Linux] | Vampire V4 SA [ApolloOS / Amiga OS 3.2.2]
    • »11.07.15 - 21:17
      Profile