Tinc: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
(23 intermediate revisions by 5 users not shown)
Line 1: Line 1:
== Client ==
https://tinc-vpn.org/images/tinclogo.png


Compile Tinc 1.1pre for the RPi:
''[https://tinc-vpn.org/ tinc] is a Virtual Private Network (VPN) daemon that uses tunnelling and encryption to create a secure private network between hosts on the Internet.''
 
And is used in XPUB to create the [[HUB]] VPN - aelectronic learning enviroment, server playground, web publishing platform, consisting of local machines (mainly raspberry pis) that sit behind firewalls,
but through tinc are accessible from outside the firewall.
 
==Install Tinc Client ==
 
'''On RaspberryPi / machine that will be joining [[HUB]].'''
 
Install dependencies:
 
sudo apt install build-essential automake libssl-dev liblzo2-dev libbz2-dev zlib1g-dev libncurses5-dev libreadline-dev
 
Compile <code>Tinc 1.1pre</code>:
 
cd ~


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
tmux: attaches shell to the pi and running without your ssh connection


Adding clients
make
On the server:
    tinc -n hub invite $CLIENTHOSTNAME
On the client:


    tinc join $INVITEURL
  sudo make install


    tinc -n hub add subnet 10.11.11.1XX
Once installed create configuration dir:
sudo mkdir -p /usr/local/etc/tinc/


    tincd -n hub -D -d3
And tinc is installed in
/usr/local/sbin/tinc


==Next steps==


Follow [[XPUB_HUB_New_Nodes]].




[[:Category:Cookbook]]
[[Category:Cookbook]]
[[Category:Tinc]]

Revision as of 17:19, 20 September 2021

tinclogo.png

tinc is a Virtual Private Network (VPN) daemon that uses tunnelling and encryption to create a secure private network between hosts on the Internet.

And is used in XPUB to create the HUB VPN - aelectronic learning enviroment, server playground, web publishing platform, consisting of local machines (mainly raspberry pis) that sit behind firewalls, but through tinc are accessible from outside the firewall.

Install Tinc Client

On RaspberryPi / machine that will be joining HUB.

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 ~
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

Once installed create configuration dir:

sudo mkdir -p /usr/local/etc/tinc/

And tinc is installed in

/usr/local/sbin/tinc

Next steps

Follow XPUB_HUB_New_Nodes.