Category Archives: Radius

[FreeRADIUS] Build RPM files in CentOS 6.X

WTF, I wasted all my morning doing it….. Environment: CentOS 6.6 x64 minimal server install wget

create rpmbuild/SOURCES and rpmbuild/SPECS folder under your home directory

get into this folder and download the source file from freeradius.org

extract … Continue reading

Posted in Radius | Leave a comment

[FreeRADIUS] 修改 SQL 連線數上限

因為 FreeRADIUS 在 Source 就指定了對 SQL 的連線數上限為 256 因此可能會發生因為連線數以達上限造成連線失敗的事件 沒有其他方法~唯一解~就是修改 code 重新 build 下載 FreeRADIUS 的 tar.gz 修改 src/modules/rlm_sql/conf.h 檔案,將 #define MAX_SQL_SOCKS 256 改為你想要的數字 #define MAX_SQL_SOCKS 2048 然後重新 build 安裝即可 之後在到 raddb/sql.conf 設定需要的連線數即可 由於這數字是 FreeRADIUS 一啟動就會建立連線數 所以也不要設定太高~

Posted in Radius | Leave a comment

[FreeRadius] Refusing to start with libssl version OpenSSL

當使用 tar.gz 安裝完 FreeRADIUS 後要啟動時,可能會發生錯誤 這時後再使用 radiusd -X 以 debug 模式進行 可能得到下面這個錯誤 Refusing to start with libssl version OpenSSL 1.0.1e-fips 11 Feb 2013 (in range 1.0.1 – 1.0.1f). Sec urity advisory CVE-2014-0160 (Heartbleed) 這時候就需要去編輯 radiusd.conf 檔案 將 security section 的 … Continue reading

Posted in Radius | Leave a comment

[FreeRADIUS] failed locating OpenSSL headers

在使用 tar.gz 安裝 FreeRadius 的時候可能會發生下列這個錯誤 configure: error: in `/usr/source/freeradius-server-2.2.6′: configure: error: failed locating OpenSSL headers 這時候就必須要安裝 openssl-devel、libtalloc-devel yum install openssl-devel yum install libtalloc-devel

Posted in Radius | Leave a comment

Radius 過濾來源 IP

此篇是在說明過濾 Radius 來源的 IP,限定某些 realm 只能由特定的單位過來 (就是那該死的 iTaiwan ….)

Posted in Radius | Leave a comment

FreeRadius EAP-TTLS auth

這一篇也是要補的~~

Posted in Linux, Radius | Leave a comment

Radius 測試 – radtest.php (每半小時執行一次)

既然都可以從資料庫取得測試資料了 那位什麼不把測試結果丟回去呢? 所以就有了這一支

Posted in Radius | Leave a comment

有空的話…

再來補一下vpn、radius、mysql cluster、radius with mysql的操作說明好了 避免我之後也忘了 Orz

Posted in MySQL, OpenVPN, Radius | Leave a comment

在CentOS上安裝5.2.x以上版本的PHP

先加入測試的yum server以便安裝新版的PHP vim /etc/yum.repos.d/CentOS-Base.repo 在最後面加入 [c5-testing] name=CentOS-5 Testing baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/ enabled=0 gpgcheck=1 gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing

Posted in Linux, PHP, Radius | Leave a comment