Mandriva Spring : Freeradius Simple


Langsung aja (Udah nyambung ke Repo)

$ urpmi freeradius

(tekan Y atau Enter, kemudian tunggu proses instalasi default nya)

Salin file /etc/pki/tls/certs/radiusd.pem dan /etc/pki/tls/private/radiusd.pem menjadi /etc/pki/tls/certs/freeradius.pem dan /etc/pki/tls/private/freeradius.pem. (O iya jangan lupa liat permission file nya) Kemudian edit file /etc/raddb/users, tambahkan (contoh) baris ini di bagian paling akhir.

bayu   Cleartext-Password := "halo"

Trus test freeradius dengan mode DEBUG dengan perintah

$ radiusd -X

Buka terminal konsole baru, lakukan test freeradius dengan perintah

$ radtest bayu halo localhost 0 testing123

Hasilnya

radtest bayu halo localhost 0 testing123
Sending Access-Request of id 9 to 127.0.0.1 port 1812
User-Name = “bayu”
User-Password = “halo”
NAS-IP-Address = 127.0.0.1
NAS-Port = 0
rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=9, length=20

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: