mardi 3 juillet 2012

freeraduis with Dialup Admin

0 - plateform : linux centos 5.5 ip : 172.16.249.230/16

yum install freeradius

/etc/init.d/radiusd start

netstat -natup

udp        0      0 0.0.0.0:1812                0.0.0.0:*                               6149/radiusd      
udp        0      0 0.0.0.0:1813                0.0.0.0:*                               6149/radiusd      
udp        0      0 0.0.0.0:54550               0.0.0.0:*                              6149/radiusd      
udp        0      0 0.0.0.0:1814                0.0.0.0:*                               6149/radiusd           
udp        0      0 127.0.0.1:18120             0.0.0.0:*                            6149/radiusd

chkconfig radiusd on

yum install freeradius2-mysql
yum install freeradius2-utils
 
2 configuration :

2.1 - Define RADIUS clients (usually a NAS -Network Access Server-, Access Point, etc.).
/etc/raddb/clients.conf

2.2 - Define a user :
/etc/raddb/users
testing Cleartext-Password := "password"

2.3 test locally
#radiusd -X  ( radiusd mast be stopped ) (you mast have this message)
Ready to process requests.


#radtest testing password localhost 0 testing123  (this message)
rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=189, length=20


explication :
testing : name of user
password : his pass
testing123 : the secret of the client localhost


3 test from network with windows machine (172.16.249.218) :

3.1 add  the client windows to radius server file : /etc/raddb/clients.conf

client 172.16.249.218 {
  ipaddr = 172.16.249.218
  secret = SECRET
}


3.2 install "ntradping"

download from http://www.mastersoft-usa.com/download/









Aucun commentaire: