hostapd problem

Jose Matarazzo josematarazzo
Sat Sep 15 17:11:22 PDT 2012


Hi,

I am making some simulations for a project with virtual machines under
Ubuntu 10.04. I am trying to connect a supplicant(wpa_supplicant) to
an authenticator (hostapd), and the last one to a authentication
server (freeradius).

Supplicant eth1 192.168.2.2  --------------------------  eth2
192.168.2.1  authenticator
                              authentication server

                          eth1
192.168.1.1--------------------------------------------------------------------
eth1 192.168.1.2


I follow this steps:

Supplicant:
          instalation:  sudo apt-get install wpasupplicant

          edit /etc/wpa_supplicant.conf :
                network={
                    key_mgmt=IEEE8021X
                    eap=MD5
                    identity="xthompson"
                    password="junction"
               }

          Ejecution: sudo wpa_supplicant -dd -Dwired -ieth1 -c
./wpa_supplicant.conf

Authenticator:
          instalation: sudo apt-get install hostapd

          edit: /etc/hostapd.conf

            interface=eth2
           driver=wired

            # Require IEEE 802.1X authorization
            ieee8021x=1

            # The own  IP address of the access point (used as NAS-IP-Address)
          own_ip_addr=192.168.1.1

           # RADIUS authentication server
          auth_server_addr=192.168.1.2
          auth_server_port=1812
          auth_server_shared_secret=machina
          # RADIUS accounting server
          acct_server_addr=192.168.1.2
          acct_server_port=1813
          acct_server_shared_secret=machina

          Ejecution: sudo hostapd -dd hostapd.conf

authentication server :
          instalation: sudo apt-get install freeradius
          edit:   users.conf:

           xthompson Cleartext-Password := "junction"
                     Reply-Message = "X/Funciona"

          edit: clients.conf:
          client 192.168.1.1/24 {
                 secret = machina
                 shortname = auth1
          }
          Ejecution: sudo freeradius -X

I don't get succes at the supplicant but everything is correct in the
server authenticator, I think the problem is at the authenticator, I
copy a the first lines when I execute it:

Opening raw packet socket for ifindex 4
BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
eth2: IEEE 802.11 Fetching hardware channel/rate support not supported.
Flushing old station entries
Deauthenticate all stations
Using interface eth2 with hwaddr 00:0c:29:f9:7d:3c and ssid ''
eth2: RADIUS Authentication server 192.168.1.2:1812
RADIUS local address: 192.168.1.1:42688
eth2: RADIUS Accounting server 192.168.1.2:1813
RADIUS local address: 192.168.1.1:46140
eth2: RADIUS Sending RADIUS message to accounting server
RADIUS message: code=4 (Accounting-Request) identifier=0 length=64
  Attribute 40 (Acct-Status-Type) length=6
     Value: 7
  Attribute 45 (Acct-Authentic) length=6
     Value: 1
  Attribute 4 (NAS-IP-Address) length=6
     Value: 192.168.1.1
  Attribute 30 (Called-Station-Id) length=20
     Value: '00-0C-29-F9-7D-3C:'
  Attribute 49 (Acct-Terminate-Cause) length=6
     Value: 11
eth2: RADIUS Next RADIUS client retransmit in 3 seconds

eth2: Setup of interface done.
eth2: RADIUS Received 20 bytes from RADIUS server
eth2: RADIUS Received RADIUS message
RADIUS message: code=5 (Accounting-Response) identifier=0 length=20
eth2: STA 00:00:00:00:00:00 RADIUS: Received RADIUS packet matched
with a pending request, round trip time 0.00 sec

Thanks in advance to any help you can give me.

Regards,
Jos?
---------------------------------



More information about the Hostap mailing list