-
Notifications
You must be signed in to change notification settings - Fork 160
Setup OpenVPN Server With Radius Server
ftao edited this page Feb 5, 2015
·
1 revision
-
Setup a radius server following the instruction in Setup Freeradius Server , take note of the radius server address and secret
-
put your openvpn server info in ansible_hosts
testvm ansible_ssh_host=192.168.1.14 ansible_ssh_user=root
[openvpn]
testvm
- setup following variables in
hosts_vars/testvm.yml
orgroup_vars/openvpn.yml
change radius host and secret to the right value.
openvpn_use_radius: true
openvpn_radius_servers:
- host: radius.server.ip.address
secret: "some-radius-secret"
openvpn_client_conf_file: "/tmp/testvm-client.ovpn"
- execute
ansible-playbook openvpn.yml -l testvm
- the server should be up and running , you can now import "/tmp/testvm-client.ovpn" to favorite openvpn client and connect to the server .