A Collection of Ansible Playbook for deploy vpn services
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
group_vars using let's encrypt for https proxy Dec 26, 2015
host_vars Simplify shadwosocks multiport configuration Jul 23, 2015
roles add go version Jul 18, 2017
vendor-roles ipsec with letsencrypt Dec 25, 2015
.gitignore ipsec with letsencrypt Dec 25, 2015
.travis.yml ignore requirements.yml Jun 11, 2017
LICENSE add LICENSE Oct 25, 2015
README.md lets encrypt with ocserv Dec 26, 2015
Vagrantfile Test distributions asynchronously. Dec 28, 2014
ansible.cfg close #81 remove uuid5 filter , using built in to_uuid filter Dec 26, 2015
ansible_hosts.example working l2th-eth static tunnel Aug 2, 2015
ansible_hosts.local enable more test Dec 20, 2015
ansible_hosts.vagrant fix ss server for debian Nov 16, 2015
apnp-backend.yml with_items fix Jun 11, 2017
apnp-frontend.yml with_items fix Jun 11, 2017
auth.yml fix djra static file not display error Jun 7, 2015
chinadns.yml Compile ChinaDNS from C source code. May 28, 2015
cow-backend.yml Add role for https://github.com/cyfdecyf/cow Jul 23, 2014
cow-frontend.yml Add role for https://github.com/cyfdecyf/cow Jul 23, 2014
https-proxy.yml using let's encrypt for https proxy Dec 26, 2015
ipsec-lte.yml ipsec with letsencrypt Dec 25, 2015
ipsec.yml rename ipsec-sw to strongswan Dec 21, 2014
l2tp-eth.yml includ chinadns to solve dns issue Aug 3, 2015
openconnect-lte.yml lets encrypt with ocserv Dec 26, 2015
openconnect.yml openconnect support debian 7, fix #36 Jan 10, 2015
openvpn.yml fix openvpn Dec 26, 2015
pki.yml ipse pki server mode Dec 21, 2014
pptp.yml remove vpnmgr related Jun 29, 2014
proxy-backend.yml with_items fix Jun 11, 2017
proxy-frontend.yml with_items fix Jun 11, 2017
proxy.yml proxy-config-host update Jun 21, 2014
pull_subtree.sh update spdy-proxy.yml & group_vars Jul 5, 2015
requirements.yml ipsec with letsencrypt Dec 25, 2015
sane-dns.yml add sane-dns Jun 21, 2014
shadowsocks-multiport.yml with_items fix Jun 11, 2017
sigmavpn.yml add install tag Jun 14, 2014
test.yml with_items fix Jun 11, 2017
vpn.yml add dns entry for static-openvpn, add auth to vpn.yml Jan 18, 2015

README.md

VPN Deploy Playbook Build Status

A collection of Ansible Playbooks to deploy VPN and proxy services.

Playbooks:

How to use

  1. [sudo] pip install ansible install Ansible in control machine
  2. ansible-galaxy install --force -r requirements.yml install / update some third party roles .
  3. cp ansible_hosts{.example,} copy ansible_hosts.example to ansible_hosts
  4. edit the file to add your servers
  5. edit files in group_vars or create and edit host_vars/SERVER_NAME.yml to fit your needs
  6. run ansible-playbook PLAYBOOK_NAME.yml to setup servers

There are also some guides (in Chinese) in the Wiki

Testing

Vagrant

Simply clone this repo and make sure you have Vagrant + Virtual Box installed and...

vagrant up ubuntu --no-provision
vagrant provision ubuntu

It may take about 10 ~ 60 minutes depends on your network. Vagrant is using Ubuntu 14.04 (ubuntu/trusty64) for it's OS. If you'd like to test on Debian Wheezy:

vagrant up debian --no-provision
vagrant provision debian

Donating

Support this project and others by ftao via gratipay.

Support via Gratipay