Home | 簡體中文 | 繁體中文 | 雜文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品與服務 | Email

第 21 章 radiusd - Authentication, Authorization and Accounting server

目錄

21.1. 安裝 radiusd
21.2. 802.1

http://freeradius.org/

21.1. 安裝 radiusd

過程 21.1. 安裝步驟

  1. yum 安裝

    yum install -y freeradius
    				
  2. 設置啟動檔案

    chkconfig radiusd on
    service radiusd start
    				
  3. 配置 radiusd

    cp /etc/raddb/clients.conf{,.original}
    cp /etc/raddb/users{,.original}
    cp /etc/raddb/sites-enabled/default{,.original}
    				
    				
    cat >> /etc/raddb/clients.conf <<EOF
    
    client 192.168.0.0/16 {
           secret          = testing123
           shortname       = freeradius.example.com
    }
    EOF				
    				
    				

    /etc/raddb/users

    guest Cleartext-Password := "test"
    				

    /etc/raddb/sites-enabled/default

    				
  4. 測試 radiusd

    $ radtest guest test 192.168.2.1 1812 testing123
    Sending Access-Request of id 223 to 192.168.2.1 port 1812
    	User-Name = "guest"
    	User-Password = "test"
    	NAS-IP-Address = 127.0.1.1
    	NAS-Port = 1812
    	Message-Authenticator = 0x00000000000000000000000000000000
    rad_recv: Access-Accept packet from host 192.168.2.1 port 1812, id=223, length=20
    				
comments powered by Disqus