源代码下载:
#官网地址https://openvpn.net/community-downloads/
#配置说明https://cloud.inspur.com/docs/96069.html
#VPN客户端下载地址:https://openvpn.net/client-connect-vpn-for-windows/
一、编译OpenVPN
tar zxvf openvpn-2.6.3.tar.gz
mkdir -p /etc/openvpn/radiusplugin
cd openvpn
chmod +x ./configure
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make clean
make depend
make -j8
make DESTDIR=/ PREFIX=/usr LIBRARY_PATH=lib install all
二、编译插件
网络上下载的插件radiusplugin,还不能直接使用,需要修改下才能支持radius,有需要的可以给我留言。免费提供代码。
cd radiusplugin
make -j8
cp radiusplugin.so radiusplugin.cnf /etc/openvpn/radiusplugin
三、配置启动
systemctl enable openvpn-server
systemctl start openvpn-server
- 服务器配置
配置参考:
https://kaledl.com/article/263789.html