Tinc: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
Line 1: Line 1:
== Client ==
== Client (Raspberry Pi / laptop ) ==
===Install===
Install dependencies
sudo apt install build-essential automake libssl-dev liblzo2-dev libbz2-dev zlib1g-dev libncurses5-dev libreadline-dev


Compile Tinc 1.1pre for the RPi:
 
Compile Tinc 1.1pre :


  cd /usr/src/
  cd /usr/src/
  wget https://www.tinc-vpn.org/packages/tinc-1.1pre17.tar.gz
  wget https://www.tinc-vpn.org/packages/tinc-1.1pre17.tar.gz
  tar xvf tinc-1.1pre17.tar.gz
  tar xvf tinc-1.1pre17.tar.gz
  cd tinc-1.1pre17
  cd tinc-1.1pre17
sudo apt install libncurses5-dev libreadline-dev liblzo2-dev libssl-dev
 
  (if needed search for more libraries: apt search <library name>)
  ./configure
  ./configure
make
 
make install
make
 
  sudo make install
 




tmux: attaches shell to the pi and running without your ssh connection
<s>tmux: attaches shell to the pi and running without your ssh connection</s>


Adding clients
Adding clients

Revision as of 11:39, 28 April 2019

Client (Raspberry Pi / laptop )

Install

Install dependencies

sudo apt install build-essential automake libssl-dev liblzo2-dev libbz2-dev zlib1g-dev libncurses5-dev libreadline-dev 


Compile Tinc 1.1pre :

cd /usr/src/
wget https://www.tinc-vpn.org/packages/tinc-1.1pre17.tar.gz
tar xvf tinc-1.1pre17.tar.gz
cd tinc-1.1pre17
./configure
make
 sudo make install


tmux: attaches shell to the pi and running without your ssh connection

Adding clients On the server:

    tinc -n hub invite $CLIENTHOSTNAME

On the client:

   tinc join $INVITEURL
   tinc -n hub add subnet 10.11.11.1XX
   tincd -n hub -D -d3



Category:Cookbook