#yum install freeradius2 freeradius2-utils
CentOS 6.X:
package name is freeradius and freeradius-utils
2. start radiusd with debug mode
#radiusd -X
or, start radiusd service
#service radiusd start
3. add a user. add following line at the top of /etc/raddb/users
testing Cleartext-Password := "password"
4. add a accept client rule in /etc/raddb/client.conf:
client 192.168.0.0/24 {
secret = testing123
shortname = private-network
}
5. restart the radiusd
#service radiusd restart
6. try the user testing is acceptable
$ radtest testing password 127.0.0.1 0 testing123
(If show Access-Accept, It success.
If show "radclient:: Failed to find IP address for XXX", That mean radclient can't resolve XXX, add a line to /etc/hosts likes "127.0.0.1 XXX" or setup DNS correctly)
7. try the user testing from remote client
$ radtest testing password 192.168.1.1 0 testing123
reference:
http://freeradius.org/doc/
http://tec1021.pixnet.net/blog/post/28639573-%E8%BC%95%E9%AC%86%E6%9E%B6%E5%A5%BDradius%E4%BC%BA%E6%9C%8D%E5%99%A8~
沒有留言:
張貼留言