Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
f11:technik:raspberrypi:hotspotdm3kb:raspbradius [2014/12/05 08:05]
dm3kb angelegt
f11:technik:raspberrypi:hotspotdm3kb:raspbradius [2019/09/29 12:03] (aktuell)
Zeile 9: Zeile 9:
 ==== Config Free RADIUS to work with MYSQL ==== ==== Config Free RADIUS to work with MYSQL ====
  
-** In case you will install Easy-Hotspot Admin-Gui: Continue with: [[raspeasyhpdb]] and return afterwards.**+** In case you will install Easy-Hotspot Admin-Gui: Continue with:  
 +[[f11:technik:raspberrypi:hotspotdm3kb:raspeasyhpdb|DB setup]]  and return afterwards.**
  
  
  
-**If you have created the Radius / Easyhotspot Database [[raspeasyhpdb]], continue below** +**If you have created the Radius / Easyhotspot Database  
 +[[f11:technik:raspberrypi:hotspotdm3kb:raspeasyhpdb|DB setup]] , continue below** 
  
 ===Edit Free-Radius main configuration files=== ===Edit Free-Radius main configuration files===
Zeile 65: Zeile 67:
  
 # Optional: # Optional:
-mysql> GRANT USAGE ON * . * TO  'radius'@'%' IDENTIFIED BY  'Radpass12345' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;+mysql> GRANT USAGE ON * . * TO  'radius'@'%' IDENTIFIED BY  'Radpass' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
 Query OK, 0 rows affected (0.01 sec) Query OK, 0 rows affected (0.01 sec)
  
Zeile 79: Zeile 81:
         #port = 3306         #port = 3306
         login = "radius"         login = "radius"
-        password = "Radpass12345+        password = "Radpass
                  
         # Database table configuration for everything except Oracle         # Database table configuration for everything except Oracle
Zeile 95: Zeile 97:
  
         #         #
-        secret          = RaspiRadi1234+        secret          = RaspiRadi
 </code> </code>
  
Zeile 104: Zeile 106:
 [ ok ] Stopping FreeRADIUS daemon: freeradius. [ ok ] Stopping FreeRADIUS daemon: freeradius.
  
-</code+</code>
  
 +== Test Radius Server ==
 +The test of the radius funktionality is delayed until it was possible to create a user in the DB via EASY-Hotspot admin GUI.
  
-===Start in debug mode:=== +[[f11:technik:raspberrypi:hotspotdm3kb:raspeasyhpdb#Test Radius Server|Test Radius Server]] 
-<code> +
-freeradius -X +
-</code> +
-Dont panic, tons of output will run over the screen, but important is that after some time \\ +
-a line named**Ready to process requests.** is displayed\\  +
-Now login on another terminal and test radius communication with MySQL by requesting login-Infor for user1 with pw passwd123 on localhost 1812 and secret RaspiRadi1234: +
-<code> +
-root@raspberrypi:~# radtest user1 passwd123 localhost 0 RaspiRadi1234 +
-Sending Access-Request of id 35 to 127.0.0.1 port 1812 +
- User-Name = "user1" +
- User-Password = "passwd123" +
- NAS-IP-Address = 127.0.1.1 +
- NAS-Port = 0 +
- Message-Authenticator = 0x00000000000000000000000000000000 +
-rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=35, length=20 +
-root@raspberrypi:~ +
- +
-</code>+
  
-Done\\ 
  
 [[f11:technik:raspberrypi:hotspotdm3kb|Back to HotSpot Overview-Page]]  [[f11:technik:raspberrypi:hotspotdm3kb|Back to HotSpot Overview-Page]] 
f11/technik/raspberrypi/hotspotdm3kb/raspbradius.1417763105.txt.gz · Zuletzt geändert: 2019/09/29 12:01 (Externe Bearbeitung)
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0