3

I am using hostapd to create a hotspot in my laptop. I am using freeradius as my backend authentication server.

I configured clients in freeradius as

client 11.0.0.1 {
 secret=Somethingelse
 ipaddr=11.0.0.1
 require_message_authenticator = yes
}

This is my hostapd connection:

interface=wlan0
driver=nl80211
ssid=Something
hw_mode=g
channel=6
auth_algs=1
wpa=3

ieee8021x=1
auth_server_addr=11.0.0.1
auth_server_port=1812
auth_server_shared_secret=Somethingelse
wpa_key_mgmt=WPA-EAP
wpa_pairwise=TKIP CCMP
rsn_pairwise=CCMP

Initial wifi interface configuration

ifconfig wlan0 up 10.0.0.1 netmask 255.255.255.0

I am sharing my eth0 over wlan0 and this works.

My question is thus structured. Since I am using wlan0 as my hotspot interface. Shouldn't 10.0.0.1 be my client? But I have to configure my client as 11.0.0.1 which is my 'eth0's inet address which is explicitly given since my 'eth0' is disconnected as thus

ifconfig eth0 11.0.0.1 up netmask 255.255.255.0

Update: My Freeradius and Client is on the same machine

Cœur
  • 37,241
  • 25
  • 195
  • 267
Augustus Francis
  • 2,694
  • 4
  • 22
  • 32

1 Answers1

1

If they're on the same host hostapd and FreeRADIUS, then the auth_server_addr should be the loopback address 127.0.0.1 and the client should also be the loopback address 127.0.0.1.

Client entries just associate an ip address with a shared secret.

Augustus Francis
  • 2,694
  • 4
  • 22
  • 32
Arran Cudbard-Bell
  • 5,912
  • 2
  • 26
  • 48