當前位置:首頁 » 操作系統 » linuxradius

linuxradius

發布時間: 2022-11-12 14:15:24

『壹』 我在WIN7下安裝了個虛擬機,安裝的系統是UBANTU linux,現在想在LINUX下安radius,該怎麼做請高手指點。

第一,聯網,使用ubuntu的提供的軟體源,看軟體源裡面有沒有。
或者從光碟裡面看有沒有radius的軟體包。

第二,都沒有,可以到radius的官網上下載源碼包,進行編譯安裝和配置。

『貳』 linux怎麼查看radius版本

radius --help
看看有沒有version 或者-v

『叄』 如何在Windows Server 2008 上配置Radius認證服務


要安裝整套的IC-RADIUS,首先我們需要如表9所示的幾個軟體包。需要說明一下:表9中的源碼包都是免費得到的,它們可以幫助我們架設一個完整的RADIUS應用環境。

軟體源碼包 說明
mysql-3.23.39.tar.gz MySQL資料庫系統
DBI-1.18.tar.gz Perl調用資料庫的通用介面
Msql-Mysql-moles-1.2216.tar.gz Perl DBI針對MySQL的Driver,即DBD for MySQL
RadiusPerl-1.05.tar.gz Perl對Radius的Authen模塊
icradius-0.18.1.tar.gz IC-RADIUS源碼包

假設所有的原碼包都被拷貝到了/usr/tmp目錄下了。

安裝MySQL

1.解壓源碼包:

CODE
Linux]#cd /usr/tmp
Linux]#gzip zxvf mysql-3.23.39.tar.gz
Linux]#cd mysql-3.23.39

2.配置參數,安裝軟體:

//將mysql安裝在/usr/local/mysql中

CODE
Linux]#./configure prefix=/usr/local/mysql
Linux]#make //編譯,時間有點長,要有耐心
Linux]#make install //安裝到/usr/local/mysql中

3.創建初始資料庫:

CODE
Linux]#cd /usr/local/msyql/bin
Linux]#./mysql_install_db

4.創建共享庫鏈接

CODE
Linux]#ldconfig //更新系統共享庫鏈接

5.復制啟動/停止腳本:

L
CODE
inux]#cp /usr/tmp/mysql-3.23.39/support-files/mysql.server \
/etc/rc.d/init.d/mysql.server

6.復制並修改初始化配置文件:

CODE
Linux]#cp /usr/tmp/mysql-3.23.39/support-files/my-medium.cnf \
/etc/my.cnf

使用vi打開my.cnf,在[client]下加入user=root,password處留空。

7.改變root口令:

CODE
Linux]#mysqladmin u root p password 『新口令』

8.如果有多個版本的mysql共存

在/etc/my.cnf的[mysqld]下加入:

CODE
1. Log-bin
2. Server-id=1 //必須是唯一的,以區別於其他的mysql.server的id

安裝DBI

CODE
Linux]#cd /usr/tmp
Linux]#tar zxvf DBI-1.18.tar.gz
Linux]#cd DBI-1.18
Linux]#perl Makefile.PL
Linux]#make test
//如果測試不通過,則使用make test TEST_VERBOSE=1
Linux]#make install

安裝DBD for MySQL

CODE
Linux]#cd /usr/tmp
Linux]#tar zxvf Msql-Mysql-moles-1.2216.tar.gz
Linux]#cd Msql-Mysql-moles-1.2216
Linux]#perl Makefile.PL

這時,系統開始和用戶交互,如下:

MySQL only
mSQL only (either of mSQL 1 or mSQL 2)
MySQL and mSQL (either of mSQL 1 or mSQL 2)
mSQL 1 and mSQL 2
MySQL,mSQL1andmSQL2
Enter the appropriate number: [3] 1

在我們這里的需求,應該回答1(說明此模塊是同時for MySQL和mSQL的)

Do you want to install the MysqlPerl emulation? You might keep your old Mysql mole (to be distinguished from DBD::mysql!) if you are concerned

about compatibility to existing applications! [n] n 這里回答n

Where is your MySQL installed? Please tell me the directory that

contains the subdir 'include'. [/usr/local/mysql]?

這是預設的mysql安裝目錄,我們已經按照上面的方式安裝,則MySQL自動被安裝到這個目錄下,則這里直接回車即可

Which database should I use for testing the MySQL drivers? [test]

直接回車即可

On which host is database test running (hostname, ip address

or host:port) [localhost]?

若mysql伺服器和icradius伺服器安裝在同一個伺服器上 則這里直接回車即可

User name for connecting to database test? [undef] root?

root Password for connecting to database test? [undef] passwd?

這里輸入mysql的root用戶的密碼

make
make test
make install

安裝RadiusPerl:Authen模塊

CODE
Linux]#cd /usr/tmp
Linux]#tar zxvf RadiusPerl-0.05.tar.gz
Linux]#cd RadiusPerl-0.05
Linux]#perl Makefile.PL
Linux]#make
Linux]#make test
Linux]#make install

安裝IC-RADIUS

1. 安裝軟體:

CODE
Linux]#cd /usr/tmp
Linux]#tar zxvf icradius-0.18.1.tar.gz
Linux]#cd icradius-0.18.1
Linux]#cp Makefile.lnx Makefile
Linux]#make
Linux]#make install

2.創建radius資料庫:

CODE
Linux]#cd scripts
Linux]#mysql u root p mysql
Mysql>create database radius; //創建radius資料庫
//添加radius用戶
Mysql>grant all on radius.* on radius@localhost identified by 『radius』;
Linux]#mysqladmin u root p refresh //刷新資料庫內容

3.導入數據表:

CODE
Linux]# mysql -u root -pyourpassword radius < radius.db
修改dictimport.pl,設置
my $dbusername = 'radius';
my $dbpassword = 'radius'

然後,導入dictionary內容,使radius.dictionary數據表中包含了基本的屬性(ATTRIBUTE)和屬性值(VALUE)等信息。

CODE
Linux]# ./dictimport.pl ../raddb/dictionary

Radius資料庫結構如表10所示。

Radius資料庫
dictionary radgroupcheck
hints radgroupreply
nas radreply
radacct realmgroup
radact_summary realms
radcheck usergroup

4. 啟動radiusd

CODE
Linux]#cd /etc/rc.d/init.d
Linux]#radiusd start

這樣,我們已經在Linux上成功的安裝了一個完整的RADIUS伺服器,你可以體驗一下RADIUS伺服器運行的感覺了。若你對RADIUS協議的開發還興趣的話,你可以在此基礎上做深入的研究。

『肆』 linux怎麼抓radius包

suse linux tcpmp抓包

WAP GW radius伺服器抓包
tcpmp -i bond0 -s 0 -w /radius.cap
tcpmp -i bond0 -s 0 -w /radius.cap
//抓取bond0(綁定網卡0)上的完整的數據包並保存到根目錄下,抓包
文件保存為radius.cap。用wireshark過濾此文件時,使用radius關鍵字過濾,只要每個Accounting-Request(radius請求)
有Accounting-Response(radius響應)即可。

『伍』 我在linux 上搭建radius伺服器,安裝了radius 測試部成功,怎麼辦 不知道哪裡出了問題

怎麼辦?找原因呀。
你測試不成功,是怎麼測試的?依據什麼判斷不成功的?log文件有什麼內容?你都作了什麼設置?你用的什麼版本的linux和radius軟體?安裝過程?…… 啥都不說怎麼讓人幫你?

『陸』 基於MAC地址的radius服務在linux系統搭建,實現無線網路的安全上網如何實現

你是要做無線Wifi的Web認證嗎?
何必重復發明輪子呢,有很多這類產品了。你可以試試Wiwiz

『柒』 linux 本地用戶 為什麼 能使用radius認證

本地用戶認證 通過存儲本地的profile設置組,您的zyair可以不通過網路上的radius server也能夠對無線用戶做認證。 一次性口令技術簡介 ASPHouse,2001-08-04 00:00:00 常規口令 在現實生活

『捌』 你好, 我在linux 下搭建radius伺服器,我現在想搭建一個portal伺服器。求幫助!

網路一下

『玖』 怎樣在Linux下建立PPPOE伺服器

步驟/方法
1
編譯內核
要建立PPPOE伺服器,除了內核要支持PPP以外還需要內核支持PPPOE,不過在2.4.18里需要打開內核的不成熟代碼才可以選擇,內核的配置如下:編輯/etc/moles.conf(redhat好象是conf.moles),如果沒有就加入以下幾行:完成以後就可以下一步,建立PPP撥號伺服器了

2
在建立撥號伺服器之前,應確保你在內核中打開了IP轉發功能:
echo「1」>/proc/sys/net/ipv4/ip_forward
編譯PPP伺服器很容易,就是按以下幾步就可以了:
•使用configure
•使用make編譯PPPD,這里有幾個參數比較重要,要支持windows的客戶端,應該在編譯時加上選項USE_MS_DNS=1,如果你的系統shadow的話,你應該使用makeHAS—SHADOW=1表示支持shadow密碼
•編譯完成後,將生成pppd、pppmp、chat和pppstats這幾個文件,使用makeinstall安裝這些文件
•修改pppd的訪問許可權,允許由root啟動服務進程
chmo+s/usr/sbin/pppd
3
建立PPPOE伺服器
cd/rp-pppoe-3.4/src
./configure
make
makeinstall
啟動PPPOE進程:
pppoe-server–L10.0.0.1–R10.0.0.2–N64–k-u
-L:指定PPPOE伺服器的IP地址
-R:指定PPPOE撥入伺服器分配給客戶端的IP地址段
-N:允許客戶端同時撥入的數量(默認是64最大是65534)
-k:使用內核方式(不過好象無法使用)
修改/etc/ppp/options,查看有沒有以下幾行,沒有就加進去:修改/etc/ppp/pppoe-server-options,將所有的行都注釋掉
添加用戶到/etc/ppp/pap-secrets中,例如添加用戶luo,密碼為123456,允許從任何位置撥入:
#clientserversecretipaddresses
luo*「123456」*
設置windows的用戶名:luo密碼:123456,如果連接成功就可以進行下一步

4
建立RADIUS認證伺服器
cd/freeradius-0.81
./configure
make
makeinstall
編輯/usr/local/etc/raddb/clients,輸入你的NAS(網路認證伺服器)的IP地址和serect,本例中NAS為本機,serect為linux,看上去如下:
localhostlinux
編輯/usr/local/etc/raddb/clients.conf,加入以下幾行:編輯/usr/local/etc/raddb/naslist,加入:
localhostlocal
編輯/usr/local/etc/raddb/users,加入用戶:luo、密碼:123456,顯示如下:
luoAuth-Type:=local,User-Password==「123456」
Service-Type:=Framed-User,
Framed-Protocol=PPP
Framed-IP-Address:=10.0.0.2
Framed-IP-Netmask:=255.255.255.0
啟動RADIUS服務、測試帳號
啟動調試模式
RADIUS–X
進行帳號測試

如果能看到應答,說明RADIUS設置成功了
要使PPPD進程能夠使用RADIUS進行認證,需要加入RADIUS認證的插件
cpradius.so/usr/lib
編輯/etc/ppp/options,加入以下到文件:
plugin/usr/lib/radius.so
radius-serverslocalhost:1812/1813
radius-auth-keylinux
radius-ip-pool10.0.0.2:10.0.0.255
運行客戶端進行登陸,如果能通過認證則成功了

5
建立MYSQL伺服器
tarzxvfmysql-3.23.56.tar.gz
cdmysql-3.23.56
./configure
make
makeinstall
cdscript
./mysql_install_db
/usr/local/bin/safe_mysqld&
安裝RADIUS資料庫
cdfreeradius-0.81/src/moles/rlm_sql/drivers/rlm_sql_mysql
mysql–uroot–p密碼radius<db_mysql.sql
編輯/usr/local/etc/raddb/radius.conf使其支持SQL,修改後如下:修改sql.conf,如下所示:
server="loclahost"login="root"password="mysql的root的密碼"
加入組帳號
mysql–uroot–p密碼radius
insertintoradgroupreply(groupname,attribute,op,value)values(『user』,』Auth-Tyep』,』:=』,』local』);
insertintoradgroupreply(groupname,attribute,op,value)values(『user』,』Service-Type』,』:=』,』Framed-User』);
insertintoradgroupreply(groupname,attribute,op,value)values
(『user』,』Framed-IP-Netmask』,』:=』,』255.255.255.0』);
#設定撥入用戶的掩碼,本例只有PPPOE服務,所以可以與options中設定相同
加入用戶帳號:
insertintoradcheck(username,attribute,op,value)values
(『luo』,』User-Password』,』:=』,』123456』);
將用戶帳號加入組帳號
insertintousergroup(username,groupname)values(『luo』,』user』);
如果提示無法找到rlm_sql_mysql文件,則:
cp/usr/local/lib/usr/lib
測試:

見到應答就OK了!

熱點內容
怎麼設置電腦開機密碼和屏幕鎖 發布:2025-05-16 03:07:05 瀏覽:55
華為鎖屏密碼忘記了怎麼解鎖 發布:2025-05-16 03:06:26 瀏覽:474
安卓文字為什麼沒有蘋果舒服 發布:2025-05-16 03:01:26 瀏覽:357
phpnow解壓版 發布:2025-05-16 02:52:49 瀏覽:811
dmporacle資料庫 發布:2025-05-16 02:44:31 瀏覽:831
雲主機上傳 發布:2025-05-16 02:44:30 瀏覽:82
滑鼠如何編程 發布:2025-05-16 02:29:09 瀏覽:816
安卓70能用什麼軟體 發布:2025-05-16 01:45:09 瀏覽:481
編程發展史 發布:2025-05-16 01:38:52 瀏覽:529
android圖片氣泡 發布:2025-05-16 01:38:40 瀏覽:887