Remote Authentication Dial In User Service (RADIUS) is a networking protocol that provides centralized Authentication, Authorization, and Accounting (AAA) management for computers to connect and use a network service. RADIUS was developed by Livingston Enterprises, Inc., in 1991 as an access server authentication and accounting protocol and later brought into the IETF standards. (Wikipedia)Uraian di atas adalah penjelasan singkat mengenai apa itu radius server. Ada banyak sekali aplikasi yang berfungsi sebagai Radius Server, antara lain: freeRADIUS, Network RADIUS, EliteAAA, RADIUS-VMS, GNU RADIUS, OpenRADIUS, BSDRadius, Alepo Radius Server, dan sebagainya. Di kalangan komunitas, freeRADIUS adalah yang paling banyak digunakan.
Pada distro Ubuntu, khususnya versi 9.10, paket freeradius sudah ada pada repository. Juga module atau dukungan untuk bekerja dengan MySQL, yang bernama freeradius-mysql. Juga paket mysql-server harus diinstall karena akan digunakan sebagai database bagi radius server. Sehingga untuk instalasinya cukup menggunakan perintah berikut:
sudo apt-get install mysql-server
sudo apt-get install freeradius freeradius-mysql
Kemudian dilanjutkan dengan konfigurasi freeRADIUS.
sudo nano /etc/freeradius/radiusd.conf
Pada baris:
proxy_requests = yes
$INCLUDE proxy.conf
diganti menjadi:
proxy_requests = no
$INCLUDE proxy.conf
Selanjutnya pengaturan sql pada freeRADIUS:
sudo nano /etc/freeradius/sql.conf
Pada baris berikut:
# Connection info:server = “localhost”login = “radius”password = “radpass”
# Connection info:server = “localhost”login = “root”password = “passwordrootmysql”
#readclients = yes
readclients = yes
sudo nano /etc/freeradius/sites-enabled/default
authorize{accounting{session{post-auth{
sudo nano /etc/freeradius/clients.conf
client localhost {
ipaddr = 127.0.0.1
secret = testing123
require_message_authenticator = no
nastype = other}
sudo /etc/init.d/freeradius restart
mysql -u root -pEnter password:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 40Server version: 5.1.37-1ubuntu5 (Ubuntu)Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.mysql> create database radius;Query OK, 1 row affected (0.00 sec)mysql> quitBye
mysql -u root -p radius < /etc/freeradius/sql/mysql/schema.sqlEnter password:
mysql -u root -pEnter password:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 46Server version: 5.1.37-1ubuntu5 (Ubuntu)Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.mysql> show databases;+——————–+| Database |+——————–+| information_schema || mysql || radius |+——————–+3 rows in set (0.00 sec)mysql> use radius;Reading table information for completion of table and column namesYou can turn off this feature to get a quicker startup with -ADatabase changedmysql> show tables;+——————+| Tables_in_radius |+——————+| radacct || radcheck || radgroupcheck || radgroupreply || radpostauth || radreply || radusergroup |+——————+7 rows in set (0.00 sec)mysql> quitBye
mysql -u root -pEnter password:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 48Server version: 5.1.37-1ubuntu5 (Ubuntu)Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.mysql> use radiusReading table information for completion of table and column namesYou can turn off this feature to get a quicker startup with -ADatabase changedmysql> insert into radcheck-> (id, username, attribute, op, value)-> values-> (“1″, “hendra”, “User-Password”, “:=”, “coba”);Query OK, 1 row affected (0.00 sec)mysql> select * from radcheck;+—-+———-+—————+—-+——-+| id | username | attribute | op | value |+—-+———-+—————+—-+——-+| 1 | hendra | User-Password | := | coba |+—-+———-+—————+—-+——-+1 row in set (0.00 sec)mysql> quitBye
radtest hendra coba 127.0.0.1 1812 testing123


March 21st, 2010 at 6:24 pm
: Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
aku dapet ubuntu 9.10 langsung dari pemiliknya dari netherlands… aku ikutin nstalasi diatas tapi nemunya seperti tulisan diatas ini
April 14th, 2010 at 7:49 am
bisa dijelasin lebih detil om , soal nya saya kurang ngerti baris perbaris, kemudian fungsi masing2 scrip ^_^
makasih
sekalian kasih contoh tes ting nya
di tunggu jawaban nya
July 28th, 2010 at 1:42 pm
Saya coba keluar pessan error seperti ini :
“radclient: no response from server for ID 207 socket 3″
Mohon bantuannya.
Thanks