Git Product home page Git Product logo

tinc-install's Introduction

Task

Install tinc and set up a network using host variables.

  • Install tinc
  • Set configured tinc networks to start at boot.
  • Create network configurations.
  • Generate key pairs or use existing keys
  • Create host configurations.
  • Synchronize host configurations between participants

Dependencies

Supported distributions and operating systems:

  • Linux
    • Debian (Jessie, Stretch)
    • Gentoo
  • *BSD
    • FreeBSD

Linux hosts

  • Python 2

BSD hosts

  • Python 2

Variables

Gentoo specific configurations are in Gentoo.yml.

  • tinc_service: Name of the tinc service.
    • Default: "tinc"
    • Gentoo: "tincd"
  • tinc_switch_net_address_vpn_*interface*: Address of the tinc network in switched mode.
    • Default: "192.168.3.0/24"
  • tinc_router_net_cidr_vpn_*interface)*: Netmask of the tinc network in routed mode.
    • Default: "32"
  • tinc_key_bits: Bits to use when geneating the key.
    • Default: "4096"
  • tinc_conf_dir: Where to store tinc configuration files.
    • Default: "/etc/tinc"
    • FreeBSD: "/usr/local/etc/tinc"

Hosts

Each hosts tinc configuration is created using host variables. A configuration for a host connecting to two tinc networks, one of them using bridge br0 looks like this:

tinc_interfaces:
  tun0:
    hostname: "laptop"
    ip4: "192.168.3.30"
    netmask4: "255.255.255.0"
    name: "vps1"
    onboot: true
    master: false
    mode: "switch"
    bridge: "br0"
  tun1:
    hostname: "laptop"
    ip4: "192.168.2.30"
    netmask4: "255.255.255.0"
    name: "cg"
    onboot: false
    master: false
    mode: "router"
  • name: Name of the tinc network.
  • mode: switch or router network mode. See the tinc manual
  • master: If set to true, this host used as a connection point for other hosts.
  • bridge: If set to the name of a bridge interface, the tinc tunnel interface is added to that bridge.

tinc-install's People

Contributors

deadbok avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.