Created
November 5, 2020 16:27
-
-
Save huehnerhose/6869ff22a50a7a087d263de3208312f9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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