Skip to content

orzjerry/vpn-deploy-playbook

 
 

Repository files navigation

VPN Deploy Playbook

A collection of Ansible Playbooks to deploy VPN services.

Playbooks:

  • 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)

How to use

  1. install Ansible in control machine
  2. copy ansible_hosts.example to ansible_hosts
  3. edit the file to add your servers
  4. edit files in group_vars or create and edit host_vars/SERVER_NAME.yml to fit your needs
  5. run ansible-playbook auth.yml to setup radius server
  6. run ansible-playbook pptp.yml to setup pptp server
  7. run ansible-playbook l2tp.yml to setup ipsec/l2tp server
  8. run ansible-playbook openvpn.yml to setup openvpn server

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

Vagrant is using Ubuntu 14.04 (ubuntu/trusty64) for it's OS.

About

A Collection of Ansible Playbook for deploy vpn services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published