Skip to content

Instantly share code, notes, and snippets.

@huehnerhose
Created November 5, 2020 16:27
Show Gist options
  • Save huehnerhose/6869ff22a50a7a087d263de3208312f9 to your computer and use it in GitHub Desktop.
Save huehnerhose/6869ff22a50a7a087d263de3208312f9 to your computer and use it in GitHub Desktop.
# Install tinc
brew install tinc
brew install tuntap
# create configuration
mkdir /usr/local/etc/tinc
cd /usr/local/etc/tinc
tar xf ~/Downloads/insitu.tinc.conf.tar
# change own hostname
vim /usr/local/etc/tinc/insitu/tinc.conf
# change line 1: Name = $HOSTNAME
# change ip
vim /usr/local/etc/tinc/insitu/tinc-up
# change TINCADDR to you lucky number
# create host key pair
tincd -n insitu -K
# get host public key to admin
cat /usr/local/etc/tinc/insitu/hosts/$HOSTNAME
# debug with
sudo tincd -c /usr/local/etc/tinc/insitu --pidfile=/var/run/tinc.pid -D -d3
# test
ping 10.0.0.106
# start with
sudo tincd -c /usr/local/etc/tinc/insitu --pidfile=/var/run/tinc.pid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment