User Tools

Site Tools


сервис_freeradius

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
сервис_freeradius [2026/04/29 11:39]
val [EAP]
сервис_freeradius [2026/05/03 09:37] (current)
val [Тестирование сервера]
Line 112: Line 112:
 # apt install freeradius-utils # apt install freeradius-utils
  
-$ radtest user1 rpassword1 127.0.0.1 0 testing123 + radtest user1 rpassword1 127.0.0.1 0 testing123 
-$ radtest root cisco 127.0.0.1 0 testing123+ radtest root cisco 127.0.0.1 0 testing123
  
-$ echo "​User-Name=student,​User-Password=password,​NAS-IP-Address=127.0.0.1"​ | radclient localhost auth testing123+ echo "​User-Name=student,​User-Password=password,​NAS-IP-Address=127.0.0.1"​ | radclient localhost auth testing123
  
 # tail -f /​var/​log/​freeradius/​radius.log # tail -f /​var/​log/​freeradius/​radius.log
Line 226: Line 226:
 </​code>​ </​code>​
  
-==== EAP сертификаты ==== 
- 
-<​code>​ 
-root@valtest:​~ # rcsdiff /​usr/​local/​etc/​raddb/​eap.conf 
-</​code><​code>​ 
-diff -r1.1 /​usr/​local/​etc/​raddb/​eap.conf 
-5c5 
-< ##    $Id: eap.conf,v 1.1 2014/07/29 14:09:57 root Exp $ 
---- 
-> ##    $Id: eap.conf,v 1.2 2014/07/30 14:26:59 root Exp root $ 
-30c30,31 
-<               ​default_eap_type = md5 
---- 
->               #​default_eap_type = md5 
->               ​default_eap_type = peap 
-158,​159c159,​161 
-<                       ​private_key_password = whatever 
-<                       ​private_key_file = ${certdir}/​server.pem 
---- 
->               # ​      ​private_key_password = whatever 
->               # ​      ​private_key_file = ${certdir}/​server.pem 
->                       ​private_key_file = ${certdir}/​bmstu.ru.clkey 
-171c173,174 
-<                       ​certificate_file = ${certdir}/​server.pem 
---- 
->       # ​              ​certificate_file = ${certdir}/​server.pem 
->                       ​certificate_file = ${certdir}/​bmstu.ru.crt 
-188c191,192 
-<                       ​CA_file = ${cadir}/​ca.pem 
---- 
-> #                     ​CA_file = ${cadir}/​ca.pem 
->                       ​CA_file = ${cadir}/​int.geotrust.crt 
-</​code>​ 
  
 ==== Использование proxy ==== ==== Использование proxy ====
сервис_freeradius.1777451989.txt.gz · Last modified: 2026/04/29 11:39 by val