This repository contains an example for getting a Mac OSX machine up and joining a tinc network on startup. It assumes that a tinc network is already up at {l04,l05}.kitesplex.com and has RSA public keys already installed matching the user's.
ref: http://www.tinc-vpn.org/examples/osx-install/#index3h3
brew install tuntap tinc
You can optionally install Bonjour Browser to see all workgroup machines.
- Setup a symlink
/usr/local/etc/tinc -> /Users/eshao/wsp/tinc
or wherever this folder is. - PEM encode your .ssh/id_rsa.pub and put it into mesh0/hosts/{USER}. E.g.:
ssh-keygen -f id\_rsa.pub -e -m PEM
- Change the IP address in
tinc-up
to mirror your dev machine. For example, if your dev machine is10.77.4.10
, your mac's IP should be10.77.30.10
. The only thing that chnages is the second-to-last octet. - Try it via
sudo tincd -n mesh0 -D
. - Test via
ping 10.77.12.4
orping l05.local
- Copy tinc.plist to
/Library/LaunchDaemons/
- Run
sudo launchctl -w /Library/LaunchDaemons/tinc
That's it! It should now run on every startup.