Tinc: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "Client Compile Tinc 1.1pre for the RPi 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 sudo apt i...")
 
No edit summary
 
(30 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 tunneling and encryption to create a secure private network between hosts on the Internet.''


cd /usr/src/
And is used in XPUB to create the [[HUB]] VPN - an electronic learning enviroment, server playground, web publishing platform, consisting of local machines (mainly raspberry pi's) that sit behind firewalls,
wget https://www.tinc-vpn.org/packages/tinc-1.1pre17.tar.gz
but through Tinc are accessible from outside the firewall.
tar xvf tinc-1.1pre17.tar.gz
 
cd tinc-1.1pre17
To add a machine to the HUB, we install Tinc from source. This is because it is required to have all the machines running the same version of Tinc.
  sudo apt install libncurses5-dev libreadline-dev liblzo2-dev libssl-dev
 
  (if needed search for more libraries: apt search <library name>)
==Install Tinc Client ==
./configure
 
make
'''On RaspberryPi / machine that will be joining [[HUB]].'''
make install
 
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 ~


wget https://www.tinc-vpn.org/packages/tinc-1.1pre18.tar.gz


tmux: attaches shell to the pi and running without your ssh connection
tar xvf tinc-1.1pre18.tar.gz


Adding clients
cd tinc-1.1pre18
On the server:
    tinc -n hub invite $CLIENTHOSTNAME
On the client


    tinc join $INVITEURL
./configure


    tinc -n hub add subnet 10.11.11.1XX
make


    tincd -n hub -D -d3
  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==


10.11.11.11  - xvm/xpub KVM
Follow [[XPUB_HUB_New_Nodes]].
10.11.11.100 - Angeliki (screaming)
10.11.11.101 - Tash (warnet)




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

Latest revision as of 09:53, 1 October 2024

tinclogo.png

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

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

To add a machine to the HUB, we install Tinc from source. This is because it is required to have all the machines running the same version of Tinc.

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.1pre18.tar.gz
tar xvf tinc-1.1pre18.tar.gz
cd tinc-1.1pre18
./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.