A collection of Ansible Playbooks to deploy VPN services.
- auth.yml : setup FreeRadius server for authentication and accounting
- pptp.yml : setup PPTP server
- l2tp.yml : setup IPSec/L2TP server (with pre-shared key)
- proxy-*.yml : setup Shadowsocks
- cow-*.yml : setup COW
- openvpn.yml : setup OpenVPN server
- apnp-*.yml : setup APNP (Squid + Shadowsocks tunnel)
- install Ansible in control machine
- copy
ansible_hosts.example
toansible_hosts
- edit the file to add your servers
- edit files in
group_vars
or create and edithost_vars/SERVER_NAME.yml
to fit your needs - run
ansible-playbook auth.yml
to setup radius server - run
ansible-playbook pptp.yml
to setup pptp server - run
ansible-playbook l2tp.yml
to setup ipsec/l2tp server - run
ansible-playbook openvpn.yml
to setup openvpn server
There are also some guides (in Chinese) in the Wiki
Simply clone this repo and make sure you have Vagrant + Virtual Box installed and...
vagrant up
Vagrant is using Ubuntu 14.04 (ubuntu/trusty64) for it's OS.