Ansible playbook for configuring tinc on debian and OSX machines. 90% done.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ivan Smirnov 19af5137b2 update hosts 5 years ago
group_vars various cleanup 5 years ago
roles add become rules for debian 5 years ago
.gitignore universal VPN is now working 5 years ago
README.md clean up redme 5 years ago
TODO.md add journal notes 5 years ago
ansible.cfg fix hosts for flume 5 years ago
hosts update hosts 5 years ago
preamble.yml update handlers and add UFW rules 5 years ago
run.sh fix bug in puma host name 5 years ago
site.yml various cleanup 5 years ago

README.md

Introduction

This repo is based on https://github.com/thisismitch/ansible-tinc. I've added roles for an OSX install, and tweaked some paramters.

This playbook will automatically install tinc on OSX and debian hosts, and connect them all. It also updates the /etc/hosts files in order to make the connections easier to remember.

Preparation

Set up your inventory in hosts

[vpn]
server1 vpn_ip=172.19.0.1
server2 vpn_ip=172.19.0.2
osxmachine  vpn_ip=172.19.0.3

# include your local machine if you want.
mylocalmachine vpn_ip=172.19.0.5 ansible_connection=local

[removevpn]

On osx hosts, run brew cask install tuntap and enter your password when prompted.

Note: You need to use root users for the ubuntu machines.

Update the variables

  • change the netname to whatever you want.

Set Up Tinc

ansible-playbook site.yml

Test

ping server1.fog