OpenVPN FreeRadius Authentication

# Install OpenVPN $ yum install openvpn \ easy-rsa \ haveged # Install FreeRadius $ yum install freeradius \ freeradius-utils \ pam_radius # Config Firewall $ firewall-cmd --get-active-zones $ firewall-cmd --zone=external --change-interface=tun0 --permanent $ firewall-cmd »

Dev Env Made Easy with Vagrant

在英特尔NUC上面安装了Debian系统, 然后再安装VirtualBox及Vagrant. 使用Vagrant可以轻松搭建一个OpenVPN实验环境. VPN客户端, 通过VPN安全隧道, 访问WEB服务. $ vagrant init $ vi Vagrantfile $ vagrant up Vagrantfile # -*- mode: ruby -*- # vi: set ft=ruby : ############################# FIX CentOS SSH »

OpenVPN Virtual User Authentication

借助于PAM (pam_pwdfile.so), OpenVPN可以采用虚拟账号认证. # 方法一 $ htpasswd -bc /etc/openvpn/passwd username password Adding password for user username # 方法二 $ openssl passwd -apr1 password $apr1$upwTjzEn$iQbusczYUcxzIg3De17QM. »

Setup OpenVPN on OpenWrt via Luci

Install Packages # ssh root@192.168.31.1 $ opkg update $ opkg intall openvpn-openssl luci-app-openvpn Luci Config 打开Services->OpenVPN页面, 创建一个Profile, 并且上传client.p12文件, 保存Profile后, 需要对配置文件(/etc/config/openvpn) »

Setup OpenVPN on OpenWrt

通过下面的操作, 可以让OpenVPN工作, 实现全局科学上网. $ opkg update $ opkg install openvpn-openssl $ echo '/etc/openvpn/' >> /etc/sysupgrade.conf $ vi /etc/openvpn/openwrt.ovpn $ uci set openvpn. »