Skip to content

Instantly share code, notes, and snippets.

@jordancrawfordnz
Last active August 26, 2017 10:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jordancrawfordnz/677afa2af1cdb6e1e5079b0a8c75a774 to your computer and use it in GitHub Desktop.
tinc configuration for a computer at home and in the cloud
Name = cloud
AddressFamily = ipv4
Interface = tun0
Name = home
AddressFamily = ipv4
Interface = tun0
ConnectTo = cloud
Address = [the hostname or IP address of the cloud server]
Subnet = 10.0.0.1/32
-----BEGIN RSA PUBLIC KEY-----
[the generated public key for the cloud server]
-----END RSA PUBLIC KEY-----
Subnet = 10.0.0.2/32
-----BEGIN RSA PUBLIC KEY-----
[the generated public key for the home server]
-----END RSA PUBLIC KEY-----
ifconfig $INTERFACE down
ifconfig $INTERFACE 10.0.0.1 netmask 255.255.255.0
ifconfig $INTERFACE 10.0.0.2 netmask 255.255.255.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment