昨晚在安装freeradius 3.0 的时候提示以下错误
1 | “Security advisory CVE-2014-0160 (Heartbleed)”. FreeRadius 3.0.3 would not allow to start radius server if you have openssl version in range 1.0.1 – 1.0.1f installed. |
原因是openssl漏洞,需要升级openssl。首先检查openssl的版本
1 2 3 4 5 6 7 8 | [root@Pandora ~]# openssl version -a OpenSSL 1.0.1e-fips 11 Feb 2013 built on: Wed Aug 13 19:13:02 UTC 2014 platform: linux-x86_64 options: bn(64,64) md2(int) rc4(16x,int) des(idx,cisc,16,int) idea(int) blowfish(idx) compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DKRB5_MIT -m64 -DL_ENDIAN -DTERMIO -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wa,--noexecstack -DPURIFY -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM OPENSSLDIR: "/etc/pki/tls" engines: rdrand dynamic |
下载openssl,开始编译安装
1 2 3 4 5 6 7 8 | wget http://www.openssl.org/source/openssl-1.0.1j.tar.gz tar xzvf openssl-1.0.1j.tar.gz cd openssl-1.0.1j ./config make make install mv /usr/bin/openssl /usr/bin/openssl.bak ln -s /usr/local/ssl/bin/openssl /usr/bin/ |
如果已经编译了freeradius,你可能还要需要修改radiusd.conf里面的security项,
freeradius 2.x
1 | allow_vulnerable_openssl = yes |
freeradius 3.x
1 | allow_vulnerable_openssl = 'CVE-2014-0160' |