Difference between revisions of "Tinc"

From Tmplab
(Configuration Directory Structure)
(Yet Another Help For Basic tinc-vpn setup)
Line 20: Line 20:
 
== tinc.conf ==
 
== tinc.conf ==
  
  Name=Client1
+
  Name=client1
 
  Device=/dev/net/tun
 
  Device=/dev/net/tun
 
  ConnectTo=TincServer
 
  ConnectTo=TincServer
Line 35: Line 35:
 
  ifconfig $INTERFACE down
 
  ifconfig $INTERFACE down
  
== Client1 ==
+
== client1 ==
  
 
  Name=client1
 
  Name=client1
Line 43: Line 43:
 
  -----END RSA PUBLIC KEY-----
 
  -----END RSA PUBLIC KEY-----
  
== Client2 ==
+
== client2 ==
  
 
  Name=client2
 
  Name=client2

Revision as of 01:21, 25 May 2016

Yet Another Help For Basic tinc-vpn setup

Configuration Directory Structure

/etc/tinc/
          nets.boot
          networkname/
                      tinc.conf
                      tinc-up
                      tinc-down
                      hosts/
                            client1
                            client2
                            tincserver

nets.boot

networkname

tinc.conf

Name=client1
Device=/dev/net/tun
ConnectTo=TincServer
AddressFamily = ipv4

tinc-up

#!/bin/bash
ifconfig $INTERFACE 192.168.22.20 netmask 255.255.255.0

tinc-down

#!/bin/bash
ifconfig $INTERFACE down

client1

Name=client1
Subnet=192.168.22.2
-----BEGIN RSA PUBLIC KEY-----
....
-----END RSA PUBLIC KEY-----

client2

Name=client2
Subnet=192.168.22.3
-----BEGIN RSA PUBLIC KEY-----
....
-----END RSA PUBLIC KEY-----