This is an old revision of the document!
[gate:~] # pkg_add -r freeradius [gate:~] # cat /etc/rc.conf ... radiusd_enable=yes ... [gate:~] # cd /usr/local/etc/raddb/
root@gate:~# apt-get install freeradius root@gate:~# cd /etc/freeradius/
gate# cat users user Cleartext-Password := "radius" gate# cat clients.conf ... client server { secret = testing123 shortname = server } ...
Для Freeradius2.x (FreeBSD) необходимо:
gate# rcsdiff sites-available/default 141c141 < unix --- > # unix
[gate:~] # /usr/local/etc/rc.d/radiusd start
root@gate:~# /etc/init.d/freeradius restart
[server:~] # cat /etc/radius.conf auth intgate testing123 3 2 [server:~] # cat /etc/pam.d/login ... auth sufficient pam_radius.so no_warn try_first_pass auth include system ...
root@server:~# apt-get install libpam-radius-auth root@server:~# cat /etc/pam_radius_auth.conf ... intgate testing123 3 ... root@server:~# cat /etc/pam.d/login ... auth sufficient pam_radius_auth.so # Standard Un*x authentication. ...