Freeradius Server

yaourt -S freeradius

vi /etc/raddb/clients.conf

ipaddr ...
secret ...

vi /etc/raddb/users

user Cleartext-Password := "xyz"

systemctl enable --now freeradius

openwrt:

opkg remove wpad-min opkg install wpad hostapd hostapd-utils

vi /etc/config/wireless

config wifi-iface<br></br>
option device 'radio0'<br></br>
option mode 'ap'<br></br>
option ssid 'wifiname'<br></br>
option network 'lan'<br></br>
option encryption 'wpa2'<br></br>
option server 'FreeradiusIP'<br></br>
option key 'mykezy'<br></br>
option auth_server 'FreeradiusIP'<br></br>
option auth_secret 'mykezy'<br></br>
option acct_server 'FreeradiusIP'<br></br>
option acct_secret 'mykezy'<br></br>
option nasid 'TPLink'

connman (client):

vi /var/lib/connman/wifiname.config

[service_wifiname]
Type=wifi
Name=wifiname
EAP=peap
Phase2=MSCHAPV2
Identity=user
Passphrase=xyz

freeradius setup