Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.35 KB

README.rst

File metadata and controls

57 lines (41 loc) · 1.35 KB

tinc

Formula to set up tinc and manage keys.

Available states

Install tinc and related configuration. Add your network name to /etc/tinc/nets.boot to start on system startup.

Also manage /etc/hosts for easy accessing.

To allow multiple network to co-exist, it follows "hostname.netname" format

Example:

192.168.xxx.xxx         replaceWithYourServerName.replaceWithYourNetworkName

Example Pillar

tinc:
  replaceWithYourNetworkName:
    replaceWithYourServerName:
      RSAPublicKey: |
        -----BEGIN RSA PUBLIC KEY-----
        -----END RSA PUBLIC KEY-----
      RSAPrivateKey: |
        -----BEGIN RSA PRIVATE KEY-----
        -----END RSA PRIVATE KEY-----
      host_config:
        Subnet: "192.168.xxx.xxx/xx"
      tinc_config:
        Name: "ifEmptyDefaultTo_replaceWithYourServerName"
        ConnectTo: [ "server1", "server2", "server3" ]
      tinc_up: |
        ifconfig $INTERFACE 192.168.xxx.xxx netmask 255.255.255.0
      tinc_down: |
        ifconfig $INTERFACE down