Now even more simplified

Compile & Install Tinc

  • sudo apt-get install -y build-essential libncurses5-dev libreadline6-dev libzlcore-dev zlib1g-dev liblzo2-dev libssl-dev
  • wget http://tinc-vpn.org/packages/tinc-1.1pre15.tar.gz
  • tar zxvf tinc-1.1pre15.tar.gz && cd tinc-1.1pre15 && ./configure && make
  • sudo make install

Open firewall

  • sudo ufw allow 655

setting tinc up (server)

  • sudo mkdir /usr/local/var/run/
  • sudo tinc -n vpn init server
  • sudo tincd -n vpn
  • sudo tinc -n vpn add subnet 10.0.1.1
  • sudo su
  • echo 'ip addr add 10.0.1.1/24 dev $INTERFACE' > /usr/local/etc/tinc/vpn/tinc-up
  • echo 'ip link set $INTERFACE up' >> /usr/local/etc/tinc/vpn/tinc-up
  • exit
  • sudo tinc -n vpn invite client1
  • sudo tincd -n vpn to daemonize (need to run for join command to work)
  • sudo tincd -n vpn -D -d3 to debug

setting tinc up (client1)

  • sudo mkdir /usr/local/var/run/
  • sudo tinc join <invite-url>
  • sudo tincd -n vpn
  • sudo tinc -n vpn add subnet 10.0.1.2
  • sudo su
  • echo 'ip addr add 10.0.1.2/24 dev $INTERFACE' > /usr/local/etc/tinc/vpn/tinc-up
  • echo 'ip link set $INTERFACE up' >> /usr/local/etc/tinc/vpn/tinc-up
  • exit
  • sudo pkill -9 tincd
  • sudo tincd -n vpn -D -d3 to debug
  • sudo tincd -n vpn to daemonize